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