DriveParams

class DriveParams(val logoFacingDirection: RevHubOrientationOnRobot.LogoFacingDirection = LogoFacingDirection.UP, val usbFacingDirection: RevHubOrientationOnRobot.UsbFacingDirection = UsbFacingDirection.FORWARD, val leftFrontName: String = "lf", val leftFrontDirection: DcMotorSimple.Direction = DcMotorSimple.Direction.FORWARD, val leftBackName: String = "lr", val leftBackDirection: DcMotorSimple.Direction = DcMotorSimple.Direction.FORWARD, val rightBackName: String = "rr", val rightBackDirection: DcMotorSimple.Direction = DcMotorSimple.Direction.FORWARD, val rightFrontName: String = "rf", val rightFrontDirection: DcMotorSimple.Direction = DcMotorSimple.Direction.FORWARD, val inPerTick: Double = 1.0, val lateralInPerTick: Double = inPerTick, 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 axialGain: Double = 0.0, val lateralGain: Double = 0.0, val headingGain: Double = 0.0, val axialVelGain: Double = 0.0, val lateralVelGain: Double = 0.0, val headingVelGain: Double = 0.0)

Parameters for MecanumRoadRunnerDrivetrain.

Constructors

Link copied to clipboard
constructor(logoFacingDirection: RevHubOrientationOnRobot.LogoFacingDirection = LogoFacingDirection.UP, usbFacingDirection: RevHubOrientationOnRobot.UsbFacingDirection = UsbFacingDirection.FORWARD, leftFrontName: String = "lf", leftFrontDirection: DcMotorSimple.Direction = DcMotorSimple.Direction.FORWARD, leftBackName: String = "lr", leftBackDirection: DcMotorSimple.Direction = DcMotorSimple.Direction.FORWARD, rightBackName: String = "rr", rightBackDirection: DcMotorSimple.Direction = DcMotorSimple.Direction.FORWARD, rightFrontName: String = "rf", rightFrontDirection: DcMotorSimple.Direction = DcMotorSimple.Direction.FORWARD, inPerTick: Double = 1.0, lateralInPerTick: Double = inPerTick, trackWidthTicks: Double = 0.0, kS: Double = 0.0, kV: Double = 0.0, kA: Double = 0.0, maxWheelVel: Double = 50.0, minProfileAccel: Double = -30.0, maxProfileAccel: Double = 50.0, maxAngVel: Double = Math.PI, maxAngAccel: Double = Math.PI, axialGain: Double = 0.0, lateralGain: Double = 0.0, headingGain: Double = 0.0, axialVelGain: Double = 0.0, lateralVelGain: Double = 0.0, headingVelGain: Double = 0.0)

Properties

Link copied to clipboard

the axial gain

Link copied to clipboard

the axial velocity gain

Link copied to clipboard

the heading gain

Link copied to clipboard

the heading velocity gain

Link copied to clipboard

the inches per tick

Link copied to clipboard
val kA: Double

the acceleration gain

Link copied to clipboard
val kS: Double

the static gain

Link copied to clipboard
val kV: Double

the velocity gain

Link copied to clipboard

the lateral gain

Link copied to clipboard

the lateral inches per tick

Link copied to clipboard

the lateral velocity gain

Link copied to clipboard
val leftBackDirection: DcMotorSimple.Direction

the direction of the left back motor

Link copied to clipboard

the name of the left back motor

Link copied to clipboard
val leftFrontDirection: DcMotorSimple.Direction

the direction of the left front motor

Link copied to clipboard

the name of the left front motor

Link copied to clipboard
val logoFacingDirection: RevHubOrientationOnRobot.LogoFacingDirection

the direction the Control Hub's logo is facing

Link copied to clipboard

the maximum angular acceleration

Link copied to clipboard

the maximum angular velocity

Link copied to clipboard

the maximum profile acceleration

Link copied to clipboard

the maximum wheel velocity

Link copied to clipboard

the minimum profile acceleration

Link copied to clipboard
val rightBackDirection: DcMotorSimple.Direction

the direction of the right back motor

Link copied to clipboard

the name of the right back motor

Link copied to clipboard
val rightFrontDirection: DcMotorSimple.Direction

the direction of the right front motor

Link copied to clipboard

the name of the right front motor

Link copied to clipboard

the track width in ticks

Link copied to clipboard
val usbFacingDirection: RevHubOrientationOnRobot.UsbFacingDirection

the direction the Control Hub's USB port is facing