Commit 9799c723 authored by Cédric Bonhomme's avatar Cédric Bonhomme

Fine-tune 90 degree rotations.

parent a7d55ddb
......@@ -44,4 +44,7 @@ except Exception as e:
print e
pass#raise Exception('You must run the application on the EV3.')
right_wheel.position = 0
left_wheel.position = 0
from web import views
......@@ -79,7 +79,7 @@ def move(direction="forward", speed=800):
speed = 600
forever = request.args.get("forever", None)
if None is forever:
movements.rotate(left_wheel, right_wheel, -340, 340, 90, 0)
movements.rotate(left_wheel, right_wheel, -300, 300, 90, 0)
else:
left_wheel.run_forever(speed * -1, regulation_mode=False)
right_wheel.run_forever(speed, regulation_mode=False)
......@@ -88,7 +88,7 @@ def move(direction="forward", speed=800):
speed = 600
forever = request.args.get("forever", None)
if None is forever:
movements.rotate(left_wheel, right_wheel, 340, -340, 0, 90)
movements.rotate(left_wheel, right_wheel, 300, -300, 0, 90)
else:
left_wheel.run_forever(speed, regulation_mode=False)
right_wheel.run_forever(speed * -1, regulation_mode=False)
......
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