Thread: Ok one problem
View Single Post
  #4   Spotlight this post!  
Unread 13-02-2003, 07:28
RoboCoder RoboCoder is offline
Registered User
#1002 (Circuit Runner)
 
Join Date: Jan 2003
Location: Wheeler High School, Marietta Ga
Posts: 65
RoboCoder is on a distinguished road
Send a message via AIM to RoboCoder Send a message via Yahoo to RoboCoder
PBASIC 2.5

If you are using PBASIC 2.5, then try using the select / case statements like so:

select (timer)
case 0 to 300
'code to make robot go straight
case 301 to 500
'turning code
'.....etc
endselect


that way it will go to the section of code you want, and it stays neat, orderly, and you dont have to mess with a ton and a half of labels
__________________
You might be an Engineering Major....

if you'll assume that a "horse" is a "sphere" in order to make the math easier

if you know vector calculus but you cant remember how to do long division

if it is sunny and 70 degrees outside, and you are working on a computer