|
Still not working
We've changed the code from the previous bit to this:
IF rc_sw1 = 1 THEN motor_fwd
drive_L = drive_L
goto end_optics:
motor_fwd:
drive_L = 254
end_optics:
The point of all this is that when we have the optical sensor reflecting, indicated by the solid or rapidly blinking red LED on the top of the banner sensor, we want the robot to move forward. It isn't, to say the least. The problem either lies with our program, or our contact between the white sensor cable and SW1 on the EDU robot. Any suggestions?
|