Commit e0cc7906 authored by Cédric Bonhomme's avatar Cédric Bonhomme

Inverse the speed of the motors...

parent 0ba0aeb4
...@@ -75,8 +75,8 @@ def move(direction="forward", speed=800): ...@@ -75,8 +75,8 @@ def move(direction="forward", speed=800):
result["message"] = movements.run_position_limited(left_wheel, result["message"] = movements.run_position_limited(left_wheel,
right_wheel, position) right_wheel, position)
else: else:
left_wheel.run_forever(speed * 1, regulation_mode=False) left_wheel.run_forever(speed * -1, regulation_mode=False)
right_wheel.run_forever(speed * 1, regulation_mode=False) right_wheel.run_forever(speed * -1, regulation_mode=False)
elif direction == 'backward': elif direction == 'backward':
nb_blocks = request.args.get("blocks", None) nb_blocks = request.args.get("blocks", None)
...@@ -85,8 +85,8 @@ def move(direction="forward", speed=800): ...@@ -85,8 +85,8 @@ def move(direction="forward", speed=800):
result["message"] = movements.run_position_limited(left_wheel, result["message"] = movements.run_position_limited(left_wheel,
right_wheel, position) right_wheel, position)
else: else:
left_wheel.run_forever(speed * -1, regulation_mode=False) left_wheel.run_forever(speed * 1, regulation_mode=False)
right_wheel.run_forever(speed * -1, regulation_mode=False) right_wheel.run_forever(speed * 1, regulation_mode=False)
elif direction == 'left': elif direction == 'left':
speed = 600 speed = 600
......
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