DriverControlled

constructor(gamepad: GamepadEx, robotCentric: Boolean = true, invertDrive: Boolean = false, invertTurn: Boolean = false, invertStrafe: Boolean = false)

Parameters

gamepad

The gamepad to use the joysticks from

robotCentric

Whether to use robot centric or field centric movement

invertDrive

whether to invert the drive joystick

invertTurn

whether to invert the turn joystick

invertStrafe

whether to invert the strafe joystick


constructor(driveJoystick: Joystick, turnJoystick: Joystick, robotCentric: Boolean = true, invertDrive: Boolean = false, invertTurn: Boolean = false, invertStrafe: Boolean = false)

Parameters

driveJoystick

The joystick to use for forward and strafe movement

turnJoystick

The joystick to use for turning

robotCentric

Whether to use robot centric or field centric movement

invertDrive

whether to invert the drive joystick

invertTurn

whether to invert the turn joystick

invertStrafe

whether to invert the strafe joystick