TeleopDriveCommand

class TeleopDriveCommand(vForward: DoubleSupplier, vStrafe: DoubleSupplier, omega: DoubleSupplier, slowMode: DoubleSupplier) : Command

A command that controls the swerve drive using joystick inputs.

Parameters

vForward

The x velocity of the robot.

vStrafe

The y velocity of the robot.

omega

The angular velocity of the robot.

driveMode

Boolean supplier that returns true if the robot should drive in field-oriented mode.

slowMode

Boolean supplier that returns true if the robot should drive in slow mode.

See also

Constructors

Link copied to clipboard
constructor(vForward: DoubleSupplier, vStrafe: DoubleSupplier, omega: DoubleSupplier, slowMode: DoubleSupplier)