-
Hi, When I instantiate a DriveBase for Advanced Driving Base core model straight startes to turn, while turn goes straight - as if either A or E motor would be in opposite direction. left_motor = Motor(Port.A)
right_motor = Motor(Port.E)
robot = DriveBase(left_motor, right_motor, wheel_diameter=88, axle_track=145)
robot.straight(100)
#robot.turn(90) Any hints for me? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi Attila! You will need to change the direction of one of the motors so that the positive direction of each motor matches how the motors are mounted on your drive base. # for example
left_motor = Motor(Port.A, positive_direction=Direction.COUNTERCLOCKWISE) See docs for the default positive motor rotations. |
Beta Was this translation helpful? Give feedback.
Hi Attila! You will need to change the direction of one of the motors so that the positive direction of each motor matches how the motors are mounted on your drive base.
See docs for the default positive motor rotations.