_________________A.K.A. inxt-generationSelf-proclaimed genius, and future world dominator.My Brickshelf Folder"Don't they teach recreational mathematics anymore?" - The Tenth DoctorBow down to Nikola Tesla, King of the Geek Gods.

ya i can run the program from the NXT once its downloaded. After it downloads RobotC crashes

Interesting. Very.

_________________ string Robored = "Awesome"~~Neil Balch~~

Sun Aug 11, 2013 12:08 am

RobotMaster98

Rookie

Joined: Wed Jun 19, 2013 5:57 pmPosts: 25

Re: RobotC crashing after download

Ernest3.14 wrote:

Could you post your code? Maybe it's corrupted?

well any code (including blank code) crashes RobotC. Here is the code that started the whole thing:

Code:

#pragma config(Sensor, S1, DIMU, sensorI2CCustomFastSkipStates)

#include "drivers/dexterind-imu.h"

//float accelread = 0;

float A = 0;

float D = 0;

float T = 0;

float V = 0;

int X = 0;

int Y = 0;

int Z = 0;

task main(){

DIMUconfigGyro(DIMU, DIMU_GYRO_RANGE_500);

ClearTimer(T2);

while(nNxtButtonPressed != 3)

{

ClearTimer(T1);

V = D + V;

T = time1[T1] / 1000;

T = V * T;

DIMUreadAccelAxes8Bit(DIMU, X, Y, Z);

A = X /* + 10 */;

A = A * 4.584;

T = T * T;

A = A * T;

A = A / 2;

D = D + D;

D = T + A;

nxtDisplayCenteredTextLine(5, "%f", D );

}

nxtDisplayCenteredTextLine(5, "%f", D ); wait1Msec(3000);

}

When I downloaded this code it froze the NXT, and had to reset it. I did this 2 times with the same result. The third time after the reset, the FW wouldn't download. After a few more tries I got it downloaded, but since then any program I download crashes RobotC. I have also tried reinstalling the FW to see if would help but it still crashes. Note that it happens on other NXTs not just mine.

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum