Class MoveSteering

Controls a pair of motors simultaneously, via a single "steering" value and a speed.

Declaration

class MoveSteering(MoveTank)
source link

Documentation

steering [-100, 100]:
  • -100 means turn left on the spot (right motor at 100% forward, left motor at 100% backward),

  • 0 means drive in a straight line, and

  • 100 means turn right on the spot (left motor at 100% forward, right motor at 100% backward).

"steering" can be any number between -100 and 100.

Example:

steering_drive = MoveSteering(OUTPUT_A, OUTPUT_B)
# drive in a turn for 10 rotations of the outer motor
steering_drive.on_for_rotations(-20, SpeedPercent(75), 10)

Methods

Inherited methods