This commit is contained in:
NikolajDanger
2022-09-07 11:39:59 +02:00
parent a85a2f0500
commit 6b11f70c85

View File

@ -4,6 +4,8 @@ import robot
DRIVE_A = 5.3 # 10 degrees turn at power 1 DRIVE_A = 5.3 # 10 degrees turn at power 1
TURN_A = 16 # 10 centimeter drive at power 1 TURN_A = 16 # 10 centimeter drive at power 1
RIGHT_WHEEL_OFFSET = 4
def main(): def main():
# Gets the power for the robot # Gets the power for the robot
power = input("Power (64):") power = input("Power (64):")
@ -18,7 +20,7 @@ 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 + RIGHT_WHEEL_OFFSET, 0, 1)
sleep(turn_t * 36) sleep(turn_t * 36)
arlo.stop() arlo.stop()