Files
Roboteksperimentarium/turn_test.py
NikolajDanger f61447c224
2022-09-07 13:07:40 +02:00

20 lines
338 B
Python

from time import sleep
import robot
POWER = 70
TURN_T = 0.079 # 10 degrees turn at given power
def main():
turn_degrees = 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()