|
Page 1 of 1
|
[ 14 posts ] |
|
NXT error message: wait for start
Author |
Message |
peskychipmonk
Rookie
Joined: Mon Jan 04, 2010 4:44 pm Posts: 1
|
 NXT error message: wait for start
Whenever I try to run a program I get an error message. Its something like this. Wait for Start Ext Batt: OFF NXT Batt: 7.2 V FMS Msgs: 0 Teleop FileName: AwesomeSauseDem Any ideas on how to fix? 
|
Mon Jan 04, 2010 4:51 pm |
|
 |
mightor
Site Admin
Joined: Wed Mar 05, 2008 8:14 am Posts: 3654 Location: Rotterdam, The Netherlands
|
 Re: NXT error message: wait for start
Including the program would go a long way towards helping us to help you. Describe your setup, etc, etc.
We're really short on psychics on these forums, so we're having to make do with the mere mortals that frequent this place.
Regards, Xander
_________________| Professional Conduit of Reasonableness| (Title bestowed upon on the 8th day of November, 2013) | My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
Mon Jan 04, 2010 5:37 pm |
|
 |
Dick Swan
Creator
Joined: Fri Feb 09, 2007 9:21 am Posts: 616
|
 Re: NXT error message: wait for start
You're running a program that you've built for the FTC FIRST Competition. You likely started with a "Template" for this competition rather than a "new file". These messages are expected.
In the FTC Competition, your program execution consists of a Autonomous Phase and a User-Controlled Phase. Messages are received over Bluetooth to progress through the various phases of the competition. When you see "Wait for Start" the program is waiting for the BT message that says the competition has started.
You should copy your code into a new file without all the FTC Template stuff. And then it should work -- always assuming there are no programming errors.
|
Mon Jan 04, 2010 7:07 pm |
|
 |
hsarobtix
Rookie
Joined: Fri Nov 22, 2013 11:15 am Posts: 4
|
 Re: NXT error message: wait for start
Hey guys, I know this thread has been dead for a while. We too are having a similar problem. Anytime we try to run our program, our NXT brick says: Wait for start ext batt: off nxt batt: 8.5v fms msgs: 0 teleop filename: We tried to copy our code into a new file, and run it again, but the same message showed up. This is our code[Mind the idea that the code might not work even under ideal situations. We are currently just trying to fix the above error]:  |  |  |  | Code: #pragma config(Hubs, S1, HTMotor, HTServo, none, none) #pragma config(Sensor, S1, Cont, sensorNone) #pragma config(Motor, mtr_S1_C1_1, motorD, tmotorTetrix, PIDControl, encoder) #pragma config(Motor, mtr_S1_C1_2, motorE, tmotorTetrix, PIDControl, encoder) #pragma config(Servo, srvo_S1_C2_1, servo1, tServoNone) #pragma config(Servo, srvo_S1_C2_2, servo2, tServoNone) #pragma config(Servo, srvo_S1_C2_3, servo3, tServoNone) #pragma config(Servo, srvo_S1_C2_4, servo4, tServoNone) #pragma config(Servo, srvo_S1_C2_5, servo5, tServoNone) #pragma config(Servo, srvo_S1_C2_6, servo6, tServoNone) //*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//
#include "JoystickDriver.c" task main() { while (true) { getJoystickSettings(joystick);
motor[motorD] = joystick.joy1_x1; motor[motorD] = joystick.joy1_y1; motor[motorE] = joystick.joy1_x2; motor[motorE] = joystick.joy1_y2; } } |  |  |  |  |
Any help would be appreciated. -HsaRobtix
Last edited by hsarobtix on Tue Nov 26, 2013 11:11 am, edited 1 time in total.
|
Fri Nov 22, 2013 11:22 am |
|
 |
Ernest3.14
Professor
Joined: Sat May 18, 2013 1:24 pm Posts: 271 Location: Olympia, WA
|
 Re: NXT error message: wait for start
If you want the robot to not wait for a signal from the FCS before starting, then remove the statement "waitForStart();".
_________________FTC Team 6424, the 'Oly Cow - Chief programmer. FRC Team 4450, Olympia Robotics Federation (ORF). and also quadrotors. Quadrotors!
|
Fri Nov 22, 2013 6:55 pm |
|
 |
hsarobtix
Rookie
Joined: Fri Nov 22, 2013 11:15 am Posts: 4
|
 Re: NXT error message: wait for start
There is no waitforstart(); command in our program. Any other advice? -HsaRobtix
|
Mon Nov 25, 2013 11:11 am |
|
 |
Ford Prefect
Guru
Joined: Sat Mar 01, 2008 12:52 pm Posts: 1030
|
 Re: NXT error message: wait for start
what is the code like in "JoystickDriver.c" ? ps: would you pls put the code into code tags? it will make it more readable  )
_________________ regards, HaWe aka Ford #define S sqrt(t+2*i*i)<2 #define F(a,b) for(a=0;a<b;++a) float x,y,r,i,s,j,t,n;task main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PutPixel(x,y);}}}while(1)}
|
Mon Nov 25, 2013 11:49 am |
|
 |
hsarobtix
Rookie
Joined: Fri Nov 22, 2013 11:15 am Posts: 4
|
 Re: NXT error message: wait for start
"JoystickDriver.c" tells the program to add the variables for programming the joysticks. -HsaRobtix
|
Tue Nov 26, 2013 11:09 am |
|
 |
Ford Prefect
Guru
Joined: Sat Mar 01, 2008 12:52 pm Posts: 1030
|
 Re: NXT error message: wait for start
sure, I know that, but I need to know what exactly: maybe there is the wait command somewhere in the JoystickDriver source code we are wondering about - or in any 2ndary addtional depending files. So we need to get to know how the exact code looks like !  (another strange thing is that this is a .c file you are #including (i.e., executable code) - header libraries normally are declared in a .h file...)
_________________ regards, HaWe aka Ford #define S sqrt(t+2*i*i)<2 #define F(a,b) for(a=0;a<b;++a) float x,y,r,i,s,j,t,n;task main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PutPixel(x,y);}}}while(1)}
|
Tue Nov 26, 2013 11:42 am |
|
 |
MHTS
Guru
Joined: Sun Nov 15, 2009 5:46 am Posts: 1523
|
 Re: NXT error message: wait for start
joystickDriver.c is provided by RobotC. You can find the source code in "c:\Program Files (x86)\Robomatter Inc\ROBOTC Development Environment\Includes\JoystickDriver.c"
|
Tue Nov 26, 2013 3:46 pm |
|
 |
MHTS
Guru
Joined: Sun Nov 15, 2009 5:46 am Posts: 1523
|
 Re: NXT error message: wait for start
This message is displayed by the displayDiagnostics() task. To get rid of it, insert a couple lines at the beginning of your program.
|
Tue Nov 26, 2013 3:55 pm |
|
 |
Ford Prefect
Guru
Joined: Sat Mar 01, 2008 12:52 pm Posts: 1030
|
 Re: NXT error message: wait for start
haha, what did I say?! I think one could also patch the displayDiagnostics source code manually to avoid waiting for the "start signal". hsarobtix simply should have provided the source  (I don't have it on my PC)
_________________ regards, HaWe aka Ford #define S sqrt(t+2*i*i)<2 #define F(a,b) for(a=0;a<b;++a) float x,y,r,i,s,j,t,n;task main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PutPixel(x,y);}}}while(1)}
|
Tue Nov 26, 2013 4:09 pm |
|
 |
hsarobtix
Rookie
Joined: Fri Nov 22, 2013 11:15 am Posts: 4
|
 Re: NXT error message: wait for start
So, I have no idea what I'm doing. This is a high school class, that I just joined. Two days in, the teacher made me program lead... I have no experience or anything. I just google stuff, which is how I found this forum. Thank you guys or all the help you're providing. HsaRobtix
|
Wed Nov 27, 2013 11:09 am |
|
 |
Ford Prefect
Guru
Joined: Sat Mar 01, 2008 12:52 pm Posts: 1030
|
 Re: NXT error message: wait for start
In very general terms, if a program makes unintelligible things then you have to look through all of your code. If it is composed of several parts you have to look through all of the parts. If you don't find the reason in what's obvious, you must look through the parts which are obscured. So if you don't find the reason for the message "wait for start" you have to search for the code which causes this, a program won't give such a message just because it sort of feels like that: if you don't find it in your own code then it must be localized in any included or linked code. And finally, if you want people to help you with your program then you must provide literally all of your code, so that we also can check all the things I mentioned above, especially when you're asked to do so. In this case I asked you "what is the code like in "JoystickDriver.c" ? (would you pls put the code into code tags? it will make it more readable)" your reply was:""JoystickDriver.c" tells the program to add the variables for programming the joysticks." This is not what I asked for. Your reply instead should have been:
_________________ regards, HaWe aka Ford #define S sqrt(t+2*i*i)<2 #define F(a,b) for(a=0;a<b;++a) float x,y,r,i,s,j,t,n;task main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PutPixel(x,y);}}}while(1)}
|
Wed Nov 27, 2013 2:30 pm |
|
|
|
Page 1 of 1
|
[ 14 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 2 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|