Thread: Ok one problem
View Single Post
  #1   Spotlight this post!  
Unread 12-02-2003, 22:53
cantwell03's Avatar
cantwell03 cantwell03 is offline
Registered User
#0651 (Schuylkillbotics)
 
Join Date: Feb 2003
Location: Schuylkill County, PA
Posts: 1
cantwell03 is an unknown quantity at this point
Send a message via AIM to cantwell03
Ok one problem

When creating my code for the Autonomous mode, i'm running into a problem with making a counter of some sort so i can change directions or perform actions during the mode. I thought i'd try setting up one like most other languages time = time + 1 << thats how i know how to do it, its plan and simple. I've not had too much experiene with PBASIC but there must be another way.

Also my if statments sorta go like this, are they the problem?

if time < (a certain time) then do_a_turn

do_a_turn:
"turn code"

if theres something wrong with that lemme know too. I'm probly doing something really dumb, but its a big problem we're having.
thanks!