20 lines
343 B
Python
20 lines
343 B
Python
from time import sleep
|
|
import robot
|
|
|
|
POWER = 70
|
|
TURN_T = 0.079 # 10 degrees turn at given power
|
|
|
|
def main():
|
|
turn_degrees = int(input(":"))
|
|
|
|
# Initializes the robot and runs the
|
|
arlo = robot.Robot()
|
|
|
|
arlo.go_diff(POWER, POWER, 0, 1)
|
|
sleep(TURN_T * (turn_degrees/10))
|
|
|
|
arlo.stop()
|
|
|
|
if __name__ == "__main__":
|
|
main()
|