View Single Post
  #5   Spotlight this post!  
Unread 11-01-2003, 23:33
Geoff_494 Geoff_494 is offline
Registered User
#0494 (Martians)
 
Join Date: Dec 2002
Location: Goodrich, MI
Posts: 7
Geoff_494 is an unknown quantity at this point
Send a message via AIM to Geoff_494
In the old PBASIC syntax, IF...THEN loops can only be directed to a label, you can't put a command after the THEN statement. Working could would be something along the lines of:

IF rc_sw1 = 1 THEN motor_fwd
*insert code here for the rc_sw1 <> 1 condition*
motor_fwd:
drive_L = 190

Also, what optical sensors are you using? If you're using the banner sensors from last year, the 7.2 volt battery pack that came with the EduBot won't be enough to power them. You'll have to use an external circuit that delivers 10-30 V (consider 2 9V batteries in series).