Cartesian Field Centric Mecanum Drive
Variant of the Cartesian MecanumDrive that uses field-centric controls, accounting for robot heading.
This system is deprecated by RoadRunner, but remains for legacy/non-RoadRunner purposes. Coordinates used in Cartesian drives include a Cartesian speed mapping, where X is the horizontal axis, and Y is the forward axis. This is rotated differently within RoadRunner-derived drive bases.
Note: CFCMD no longer relies on an IMUOp subsystem, and can simply be used with a standard IMU from your config.
Author
Lucas Bubner, 2023
Since
1.0.0-pre
See also
Inherited functions
Link copied to clipboard
Utility function to run
NullSafety.assertComponentArgs()
on the given parameters, usually on the motors/hardware/critical objects passed into the constructor.Link copied to clipboard
Link copied to clipboard
Cancel the current task immediately and return to the default task, if available.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Set the default task for this subsystem, which will be run when no other task is running.
Link copied to clipboard
Set the current task to the given task, overriding any current task.
Link copied to clipboard
Set the drive system mode.
Link copied to clipboard
Link copied to clipboard
open fun setSpeedPolarR(speed: Double, direction: Measure<Angle>, rSpeed: Double): CartesianMecanumDrive
Set a polar speed at which the Mecanum drive assembly should move.
Link copied to clipboard
open fun setSpeedUsingController(left_stick_x: Double, left_stick_y: Double, right_stick_x: Double): CartesianMecanumDrive
Set a speed at which the Mecanum drive assembly should move using controller input.
Link copied to clipboard
Set the drive system to brake.
Link copied to clipboard
Set the drive system to float.
Link copied to clipboard
Call to delegate all updates of this subsystem to a thread that will begin execution on this method call.
Link copied to clipboard
Call to stop delegating updates of this subsystem to a thread.
Link copied to clipboard
Swap the priority of the drive system.
Link copied to clipboard