Thread: Autonomous code
View Single Post
  #1   Spotlight this post!  
Unread 14-01-2003, 03:41
PBoss PBoss is offline
Registered User
#1212
 
Join Date: Jan 2003
Location: Nowhere
Posts: 9
PBoss is an unknown quantity at this point
Autonomous code

Hi,
I was just trying to make my robot controller run forward for some time, and then backward. I have tried so hard but the thing acts so wierd.
I started with the following code, before the serout statement:
count VAR byte
FOR count=1 TO 100
p1_y=150
debug ? count
NEXT
I can see the counter going from 1 to 100 and repeating infinitely in the debug screen, but the p1_y doesn't go to 150, and the operator interface says BASIC ERROR

I'm a newbie, so please tell me what is wrong with this code, and help me write code for making the robot just move forward for some time, and then backwards for some time
THANKS