DriveParams

class DriveParams(val logoFacingDirection: RevHubOrientationOnRobot.LogoFacingDirection = LogoFacingDirection.UP, val usbFacingDirection: RevHubOrientationOnRobot.UsbFacingDirection = UsbFacingDirection.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 the robot's mecanum drive.

Constructors

Link copied to clipboard
constructor(logoFacingDirection: RevHubOrientationOnRobot.LogoFacingDirection = LogoFacingDirection.UP, usbFacingDirection: RevHubOrientationOnRobot.UsbFacingDirection = UsbFacingDirection.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 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

the track width in ticks

Link copied to clipboard
val usbFacingDirection: RevHubOrientationOnRobot.UsbFacingDirection

the direction the Control Hub's USB port is facing