✨
This commit is contained in:
@ -3,6 +3,7 @@ import robot
|
|||||||
|
|
||||||
POWER = 70
|
POWER = 70
|
||||||
TURN_T = 0.079 # 10 degrees turn at given power
|
TURN_T = 0.079 # 10 degrees turn at given power
|
||||||
|
CLOCKWISE_OFFSET = 0.96
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
turn_degrees = int(input(":"))
|
turn_degrees = int(input(":"))
|
||||||
@ -10,8 +11,8 @@ def main():
|
|||||||
# Initializes the robot and runs the
|
# Initializes the robot and runs the
|
||||||
arlo = robot.Robot()
|
arlo = robot.Robot()
|
||||||
|
|
||||||
arlo.go_diff(POWER, POWER, 0, 1)
|
arlo.go_diff(POWER, POWER, 1, 0)
|
||||||
sleep(TURN_T * (turn_degrees/10))
|
sleep(TURN_T * (turn_degrees/10) * CLOCKWISE_OFFSET)
|
||||||
|
|
||||||
arlo.stop()
|
arlo.stop()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user