Package-level declarations

Properties

Link copied to clipboard

Multiplier applied to all drive input; re-read live each loop so it can be adjusted mid-match (e.g. slow-mode).

Functions

Link copied to clipboard
fun arcadeDrive(frontLeft: NextMotor, frontRight: NextMotor, backLeft: NextMotor, backRight: NextMotor, gamepad: Gamepad, kinematics: TankKinematics = TankKinematics()): Command

Command that drives a differential drivetrain arcade-style (one stick controls drive, one stick controls turn) from gamepad's sticks.

Link copied to clipboard
fun mecanumDrive(frontLeft: NextMotor, frontRight: NextMotor, backLeft: NextMotor, backRight: NextMotor, gamepad: Gamepad, kinematics: MecanumKinematics = MecanumKinematics()): Command

Command that drives a mecanum drivetrain from gamepad's sticks.

Link copied to clipboard
fun mecanumDriveFieldCentric(frontLeft: NextMotor, frontRight: NextMotor, backLeft: NextMotor, backRight: NextMotor, gamepad: Gamepad, heading: Supplier<Double>, kinematics: MecanumKinematics = MecanumKinematics()): Command

Command that drives a mecanum drivetrain from gamepad's sticks, field-centric.

Link copied to clipboard
fun tankDrive(frontLeft: NextMotor, frontRight: NextMotor, backLeft: NextMotor, backRight: NextMotor, gamepad: Gamepad): Command

Command that drives a differential drivetrain tank-style (one stick controls left wheels, one stick controls right wheels) from gamepad's sticks.