left_motor = Motor(Port.A, Direction.COUNTERCLOCKWISE)
right_motor = Motor(Port.B)
# Basic setup
robot = DriveBase(left_motor, right_motor, wheel_diameter=56, axle_track=112)
# With gyro for better turning accuracy (recommended for FLL)
robot = DriveBase(left_motor, right_motor, wheel_diameter=56, axle_track=112)
robot.use_gyro(True) # Enable gyro for more accurate turns
# Configure DriveBase settings
robot.settings(
straight_speed=200, # mm/s for straight driving
straight_acceleration=100, # mm/s² acceleration
turn_rate=90, # deg/s for turning
turn_acceleration=200 # deg/s² turn acceleration
)