|
Page 1 of 1
|
[ 8 posts ] |
|
| Author |
Message |
|
ShinigamiCooper
Rookie
Joined: Wed Dec 30, 2009 7:11 pm Posts: 4
|
 Robotc bug?
I hope this is in the right place. When I try to load a code onto my vex robot, it downloads about halfway then the program shuts down. Also, the program is displaying problems with any code, and its giving me bizzare things.
**Severe*:Internal: Intrinsic variable declaration 'servo' is memory variable **Error**:Expected->'Identifier'. Found 'StartTask' **Error**:Unexpected scanner token-> 'void' **Severe*:Constant Expression Expected **Error**:Invalid task identifier parameter. 'void' is not a valid task **Error**:Executable statements not valid in 'main' declaration block **Error**:Unexpected scanner token-> 'asm' **Error**:Unexpected scanner token-> '(' **Error**:Expected->';'. Found ','
oh and the line that those are on are 6.559....ummm help me? if you want to see the code im trying even though i don't think it's that here you go.
task main() { bMotorFlippedMode[port1] = 1;
while(1 == 1) { motor(port1) = vexRT(Ch2); motor(port2) = vexRT(Ch4);
motor(port3) = vexRT(Ch5);
if(SensorValue(in1) == 1) { motor(port1) = -127; motor(port2) = -127; wait1Msec(1000); } } }
|
| Wed Dec 30, 2009 7:16 pm |
|
 |
|
Jon_T
Rookie
Joined: Fri Oct 09, 2009 9:21 am Posts: 28
|
 Re: Robotc bug?
I see a couple things. The motor and SensorValue commands need to be folloed by [] rathar than (). Also did you run the motor ans sensor setup from the robot menu?
_________________ Jon Thompson Coach - Twisted Bots VRC 177
|
| Thu Dec 31, 2009 3:25 pm |
|
 |
|
ShinigamiCooper
Rookie
Joined: Wed Dec 30, 2009 7:11 pm Posts: 4
|
 Re: Robotc bug?
Would that explain the error messages though? Because it's not giving me errors with my program, its just saying that there are errors
|
| Thu Dec 31, 2009 8:28 pm |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2906 Location: Rotterdam, The Netherlands
|
 Re: Robotc bug?
Well, did you try the suggestions to see if the errors went away? If they did then you've got the answer to your question  Xander
_________________| Some people, when confronted with a problem, think, "I know, I'll use threads," | and then two they hav erpoblesms. (@nedbat)| My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
| Fri Jan 01, 2010 5:01 am |
|
 |
|
ShinigamiCooper
Rookie
Joined: Wed Dec 30, 2009 7:11 pm Posts: 4
|
 Re: Robotc bug?
Yes I did. Im pretty sure my code isnt the problem. Why would it be telling me there is a problem with assembly if it was?
**Error**:Unexpected scanner token-> 'asm'
|
| Sat Jan 02, 2010 3:10 pm |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2906 Location: Rotterdam, The Netherlands
|
 Re: Robotc bug?
Do the error message give you a line number or a file name? The following words appear in your error codes but can't be found in the code: StartTask, void, or asm.
You could try deleting all the registry values pertaining to ROBOTC. You can do that in the "View" menu if you are in expert mode.
Xander
_________________| Some people, when confronted with a problem, think, "I know, I'll use threads," | and then two they hav erpoblesms. (@nedbat)| My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
| Sat Jan 02, 2010 3:21 pm |
|
 |
|
ShinigamiCooper
Rookie
Joined: Wed Dec 30, 2009 7:11 pm Posts: 4
|
 Re: Robotc bug?
That's what I'm trying to say is wierd. The line number it gives me is 6.559 and it displays no X's with my code.
|
| Sun Jan 03, 2010 1:36 am |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2906 Location: Rotterdam, The Netherlands
|
 Re: Robotc bug?
I would recommend you send a mail to support@robotc.net with an explanation of your problem and the url for this thread. Xander
_________________| Some people, when confronted with a problem, think, "I know, I'll use threads," | and then two they hav erpoblesms. (@nedbat)| My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
| Sun Jan 03, 2010 4:58 pm |
|
|
|
Page 1 of 1
|
[ 8 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 3 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
|
|