MecanumDrive
open class MecanumDrive @JvmOverloads constructor(val motors: MotorGroup, trackWidth: Double = 1.0, wheelBase: Double = trackWidth, lateralMultiplier: Double = 1.0, externalHeadingSensor: AngleSensor? = null) : AbstractMecanumDrive, DriveComponent
A Component implementation of a mecanum drive.
Constructors
Link copied to clipboard
constructor(motors: MotorGroup, constraints: MecanumConstraints, externalHeadingSensor: AngleSensor? = null)
Constructs a mecanum drive using constraints.
constructor(frontLeft: Motor, backLeft: Motor, backRight: Motor, frontRight: Motor, externalHeadingSensor: AngleSensor? = null, constraints: MecanumConstraints = MecanumConstraints(1.0, 1.0, 1.0, 1.0))
Constructs a mecanum drive from its individual motors.
constructor(motors: MotorGroup, trackWidth: Double = 1.0, wheelBase: Double = trackWidth, lateralMultiplier: Double = 1.0, externalHeadingSensor: AngleSensor? = null)
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun setMotorPowers(frontLeft: Double, backLeft: Double, backRight: Double, frontRight: Double)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard