# Find the steering endpoint on the left and right. # The middle is in between. left_end = steer.run_until_stalled(-200, then=Stop.HOLD) right_end = steer.run_until_stalled(200, then=Stop.HOLD) # We ...
# If you have a motor with encoders, use the Motor class instead. train = DCMotor(Port.A) # Initialize the tilt sensor. sensor = TiltSensor(Port.B) # Measure the tilt while the train is on a flat ...