TankRoadRunnerDrivetrain
abstract class TankRoadRunnerDrivetrain(hardwareMap: HardwareMap, params: TankRoadRunnerDrivetrain.DriveParams = DriveParams()) : RoadRunnerDrivetrain<TankKinematics>
A tank drivetrain integrated with the RoadRunner library.
Parameters
hardwareMap
the hardware map
params
the drive parameters
Inheritors
Types
Link copied to clipboard
class DriveParams(val logoFacingDirection: RevHubOrientationOnRobot.LogoFacingDirection = LogoFacingDirection.UP, val usbFacingDirection: RevHubOrientationOnRobot.UsbFacingDirection = UsbFacingDirection.FORWARD, val leftMotorNames: List<String> = listOf("left"), val leftMotorDirections: List<DcMotorSimple.Direction> = listOf(DcMotorSimple.Direction.FORWARD), val rightMotorNames: List<String> = listOf("right"), val rightMotorDirections: List<DcMotorSimple.Direction> = listOf(DcMotorSimple.Direction.FORWARD), val inPerTick: Double = 1.0, val trackWidthTicks: Double = 0.0, val kS: Double = 0.0, val kV: Double = 0.0, val kA: Double = 0.0, val maxWheelVel: Double = 50.0, val minProfileAccel: Double = -30.0, val maxProfileAccel: Double = 50.0, val maxAngVel: Double = Math.PI, val maxAngAccel: Double = Math.PI, val ramseteZeta: Double = 0.7, val ramseteBBar: Double = 2.0, val turnGain: Double = 0.0, val turnVelGain: Double = 0.0)
Parameters for TankRoadRunnerDrivetrain.
Link copied to clipboard
Link copied to clipboard
Properties
Functions
Link copied to clipboard
Create a new trajectory action builder.
Link copied to clipboard
Ensures the attachment is in the Idle state, throwing an exception if not.
Link copied to clipboard
Set the drive powers.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun trajectory(from: Pose2d = localizer.pose, block: TrajectoryActionBuilder.() -> TrajectoryActionBuilder): Action
Build a trajectory action.
Link copied to clipboard