Skip to content

Commit

Permalink
Merge branch 'main' into oving_3
Browse files Browse the repository at this point in the history
  • Loading branch information
martaron authored Sep 30, 2025
2 parents 1bc8f3c + 38a783d commit 79b3d29
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions oving_2/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@

leftMotor = Motor(port=Port.A)
rightMotor = Motor(port=Port.C)
robotDriveBase = DriveBase(leftMotor, rightMotor, wheel_diameter=56, axle_track=180)

robotDriveBase = DriveBase(leftMotor, rightMotor, wheel_diameter=56, axle_track=160)

startBtn = TouchSensor(port=Port.S1)
usSensor = UltrasonicSensor(port=Port.S3)
Expand All @@ -44,7 +45,7 @@
isPressed = False
break

elif(usSensor.distance() >= 75):
elif(usSensor.distance() >= 150):
robotDriveBase.drive(-250, 0)
else:
robotDriveBase.turn(90 * next_turn)
Expand Down

0 comments on commit 79b3d29

Please sign in to comment.