|
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).
|