This program should see the robot be able to turn 90 degrees to the left and 90 degrees to the right.
Program
---
Basic 90 degrees Turn Program
This program should see the robot be able to turn
90 degrees to the left and 90 degrees to the right.
---
prog_vars =
d/count 0
prog_vars.
prog_start =
pclear
print "Basic Drive Program Start"
stop
prog_start.
prog_loop =
left_turn_90deg
-- right_turn_90deg
exitnow
prog_loop.
left_turn_90deg =
-- The robot should turn 90 degrees to the left.
-- Adjust the delay value in the dly command to
-- make the robot turn to the left by 90 degrees.
stop
rms 50
dly 250 -- change this delay to make the turn work
stop
left_turn_90deg.
right_turn_90deg =
-- The robot should turn 90 degrees to the right
-- adjust the delay value in the dly command to
-- make the robot turn to the right by 90 degrees.
stop
lms 50
dly 250 -- change this delay to make the turn work
stop
right_turn_90deg.
prog_stop =
print "Bye"
prog_stop.