View unanswered posts | View active topics It is currently Thu Aug 21, 2014 2:19 am






Reply to topic  [ 8 posts ] 
Robotc bug? 
Author Message
Rookie

Joined: Wed Dec 30, 2009 7:11 pm
Posts: 4
Post 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
Profile
Rookie

Joined: Fri Oct 09, 2009 9:21 am
Posts: 28
Post 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
Profile
Rookie

Joined: Wed Dec 30, 2009 7:11 pm
Posts: 4
Post 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
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3188
Location: Rotterdam, The Netherlands
Post Re: Robotc bug?
ShinigamiCooper wrote:
Would that explain the error messages though? Because it's not giving me errors with my program, its just saying that there are errors

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

_________________
| 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]


Fri Jan 01, 2010 5:01 am
Profile WWW
Rookie

Joined: Wed Dec 30, 2009 7:11 pm
Posts: 4
Post 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
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3188
Location: Rotterdam, The Netherlands
Post 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

_________________
| 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]


Sat Jan 02, 2010 3:21 pm
Profile WWW
Rookie

Joined: Wed Dec 30, 2009 7:11 pm
Posts: 4
Post 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
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3188
Location: Rotterdam, The Netherlands
Post 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

_________________
| 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]


Sun Jan 03, 2010 4:58 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 8 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

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.