User Manual

Table Of Contents
80
return
if command == 'no':
'''
When the speed is positive, the robot moves forward. When the speed is negative, the robot move
s backward.
'''
right_I(step_I, speed, 0)
left_II(step_I, speed, 0)
right_III(step_I, speed, 0)
left_I(step_II, speed, 0)
right_II(step_II, speed, 0)
left_III(step_II, speed, 0)
elif command == 'left':
right_I(step_I, speed, 0)
left_II(step_I, -speed, 0)
right_III(step_I, speed, 0)
left_I(step_II, -speed, 0)
right_II(step_II, speed, 0)
left_III(step_II, -speed, 0)
elif command == 'right':
right_I(step_I, -speed, 0)
left_II(step_I, speed, 0)
right_III(step_I, -speed, 0)
left_I(step_II, speed, 0)
right_II(step_II, -speed, 0)
left_III(step_II, speed, 0)
#Slow gait
def dove(step_input, speed, timeLast, dpi, command):
step_I = step_input
step_II = step_input + 2
if step_II > 4:
step_II = step_II - 4
if speed > 0:
if step_input == 1:
for speed_I in range(0, (speed+int(speed/dpi)), int(speed/dpi)):
if move_stu and command == 'no':
speed_II = speed_I