View Single Post
  #3   Spotlight this post!  
Unread 19-01-2003, 11:07
ChrisA's Avatar
ChrisA ChrisA is offline
Registered User
#0857 (Superior Roboworks)
Team Role: College Student
 
Join Date: Feb 2002
Location: Michigan Tech
Posts: 157
ChrisA is on a distinguished road
Send a message via AIM to ChrisA
Relays have 2 variables to control them. So if your other variable (relay1_rev) isnt set to 0 then nothing will happen. If you switch directions elsewhere in the code and you don't change relay1_fwd to 1 there, then you will have both of the 2 relay variables set to 1 which is an error.

Also, the : after skip in the if then statement line is not necessary.

Why don't you try a different word than skip. There are some words that you cannot use for labels. Apparently this is one of them. I'm sure you could go look in the manual and find that skip is a different command. I took your code and loaded it into the editor and changed skip and added a random letter after it and the code tokenized.

If the code does not tokenize then I would not run it on the Robot Controller.
__________________
Programmer
----------------
Team#857
Superior Roboworks

WildStang Alum

Last edited by ChrisA : 19-01-2003 at 11:18.