MecanumDriverControlled

class MecanumDriverControlled @JvmOverloads constructor(motors: Array<out Controllable>, val driveSupplier: () -> Float, val strafeSupplier: () -> Float, val turnSupplier: () -> Float, robotCentric: Boolean = true, imu: IMU? = null) : Command

Drives a mecanum drivetrain

Parameters

motors

an array of your drive motors in the following order: left front, right front, left back, right back

driveSupplier

a float supplier for the drive (forward/backward) signal

strafeSupplier

a float supplier for the strafe (left/right) signal

turnSupplier

a float supplier for the turn signal

robotCentric

whether to use robot centric or field centric movement

Constructors

Link copied to clipboard
constructor(motors: Array<out Controllable>, driveJoystick: Joystick, turnJoystick: Joystick, robotCentric: Boolean = true, imu: IMU? = null)
constructor(motors: Array<out Controllable>, gamepad: GamepadEx, robotCentric: Boolean = true, imu: IMU? = null)
constructor(motors: Array<out Controllable>, driveSupplier: () -> Float, strafeSupplier: () -> Float, turnSupplier: () -> Float, robotCentric: Boolean = true, imu: IMU? = null)

Properties

Link copied to clipboard
val driveSupplier: () -> Float
Link copied to clipboard
Link copied to clipboard
open override val isDone: Boolean = false
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val subsystems: Set<Subsystem>
Link copied to clipboard
val turnSupplier: () -> Float

Functions

Link copied to clipboard
Link copied to clipboard
fun and(vararg commands: Command): ParallelGroup
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
operator fun invoke()
Link copied to clipboard
Link copied to clipboard
fun raceWith(vararg commands: Command): ParallelRaceGroup
Link copied to clipboard
open override fun start()
Link copied to clipboard
open fun stop(interrupted: Boolean)
Link copied to clipboard
fun then(vararg commands: Command): SequentialGroup
Link copied to clipboard
Link copied to clipboard
open override fun update()
Link copied to clipboard