Adjust the position of the mortors for the direction forward and backward in...

Adjust the position of the mortors for the direction forward and backward in the framework of the 2015 Science Festival.
parent 48df4c24
......@@ -71,7 +71,7 @@ def move(direction="forward", speed=800):
if direction == 'forward':
nb_blocks = request.args.get("blocks", None)
if None is not nb_blocks:
position = int(nb_blocks) * -360
position = int(nb_blocks) * -1152
result["message"] = movements.run_position_limited(left_wheel,
right_wheel, position)
else:
......@@ -81,7 +81,7 @@ def move(direction="forward", speed=800):
elif direction == 'backward':
nb_blocks = request.args.get("blocks", None)
if None is not nb_blocks:
position = int(nb_blocks) * 360
position = int(nb_blocks) * 1152
result["message"] = movements.run_position_limited(left_wheel,
right_wheel, position)
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment