Mecanum Road Runner Drive
RoadRunner implementation for a 4-wheel Mecanum drive on REV hardware.
This class directly extends the base SampleMecanumDrive
found in the RoadRunner v0.5 quickstart, and is wrapped to be a BunyipsSubsystem via MecanumDrive. Use the MecanumDrive class to use this drive in a BunyipsOpMode. This class requires you pass in an instance of DriveConstants, which has been adapted to allow multiple configurations for any drive.
Since
1.0.0-pre
Constructors
Link copied to clipboard
constructor(constants: DriveConstants, coefficients: MecanumCoefficients, voltageSensor: HardwareMap.DeviceMapping<VoltageSensor>, @Nullable imu: IMU, fl: DcMotor, fr: DcMotor, bl: DcMotor, br: DcMotor)
Constructor for the MecanumRoadRunnerDrive class.
constructor(@Nullable telemetry: DualTelemetry, constants: DriveConstants, coefficients: MecanumCoefficients, voltageSensor: HardwareMap.DeviceMapping<VoltageSensor>, @Nullable imu: IMU, fl: DcMotor, fr: DcMotor, bl: DcMotor, br: DcMotor)
Constructor for the MecanumRoadRunnerDrive class.
Functions
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
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
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
Set a drive power with axial weights.
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
Get a trajectory builder for the drive.
Link copied to clipboard
Get a trajectory sequence builder for the drive.
Link copied to clipboard
Run current trajectory blocking until it is complete.
Inherited functions
Link copied to clipboard
Get an acceleration constraint for the drive.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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
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
Assert the position of the robot.
Link copied to clipboard
Link copied to clipboard
Set a remembered pose from memory in another OpMode.