Tri Deadwheel Mecanum Drive
MecanumDrive with three tracking dead wheels for localization. This is a convenience class to update the localizer on construction. It functions exactly as a MecanumDrive.
Author
Lucas Bubner, 2023
Since
1.0.0-pre
See also
Constructors
Link copied to clipboard
constructor(constants: DriveConstants, mecanumCoefficients: MecanumCoefficients, @Nullable imu: IMU, frontLeft: DcMotor, frontRight: DcMotor, backLeft: DcMotor, backRight: DcMotor, localizerCoefficients: ThreeWheelLocalizer.Coefficients, enc_left: Deadwheel, enc_right: Deadwheel, enc_x: Deadwheel, lastTrackingEncPositions: List<Integer>, lastTrackingEncVels: List<Integer>)
Create a new TriDeadwheelMecanumDrive
constructor(constants: DriveConstants, mecanumCoefficients: MecanumCoefficients, imu: IMU, frontLeft: DcMotor, frontRight: DcMotor, backLeft: DcMotor, backRight: DcMotor, localizerCoefficients: ThreeWheelLocalizer.Coefficients, enc_left: Deadwheel, enc_right: Deadwheel, enc_x: Deadwheel)
Create a new TriDeadwheelMecanumDrive
Functions
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
Cancel the current task immediately and return to the default task, if available.
Link copied to clipboard
Abort the current trajectory.
Link copied to clipboard
Follow a trajectory.
Link copied to clipboard
Follow a trajectory asynchronously.
Link copied to clipboard
Follow a trajectory sequence.
Link copied to clipboard
Follow a trajectory sequence asynchronously.
Link copied to clipboard
Get an acceleration constraint for the drive.
Link copied to clipboard
Link copied to clipboard
Get the drive constants related to this drive.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Get the last reported pose error from the drive.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Get the attached TrajectorySequenceRunner for this drive.
Link copied to clipboard
open fun getVelocityConstraint(maxVel: Double, maxAngularVel: Double, trackWidth: Double): TrajectoryVelocityConstraint
Get a velocity constraint for the drive.
Link copied to clipboard
Link copied to clipboard
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 a drive power.
Link copied to clipboard
Set a drive velocity and/or acceleration target.
Link copied to clipboard
Assert the heading of the robot.
Link copied to clipboard
Set the current task to the given task, overriding any current task.
Link copied to clipboard
Set the new localizer to use.
Link copied to clipboard
Set the motor powers for each motor on this drive.
Link copied to clipboard
Set the PIDF coefficients for the drive motors.
Link copied to clipboard
Assert the position of the robot.
Link copied to clipboard
Set a drive power with axial weights.
Link copied to clipboard
For continuity, keep setSpeedUsingController for setting drive speeds.
Link copied to clipboard
Set a drive power with axial weights.
Link copied to clipboard
Set the zero power behaviour of all motors.
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
Link copied to clipboard
Get a trajectory builder for the drive.
Link copied to clipboard
Get a trajectory sequence builder for the drive.
Link copied to clipboard
Update the pose estimate of the drive.
Link copied to clipboard
Set a remembered pose from memory in another OpMode.
Link copied to clipboard
Call to use the MecanumLocalizer as a backup localizer alongside the current localizer.
Call to set a fallback localizer that can be switched/tested to as part of the SwitchableLocalizer.
Link copied to clipboard
Run current trajectory blocking until it is complete.