diff --git a/oving_2/main.py b/oving_2/main.py index fd996a8..96a3268 100644 --- a/oving_2/main.py +++ b/oving_2/main.py @@ -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) @@ -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)