MotorVelocityConstants

data class MotorVelocityConstants(pidConstants: PIDCoefficients = PIDCoefficients(0.0, 0.0, 0.0), ffCoefficients: SimpleFFCoefficients = SimpleFFCoefficients(0.0, 0.0, 0.0))

Tuning constants for velocity control.

Exposes PID gains (kP, kI, kD) and feedforward gains (kS, kV, kA).

Parameters

pidConstants

The underlying PID coefficient holder.

ffCoefficients

The underlying feedforward coefficient holder.

Constructors

Link copied to clipboard
constructor(pidConstants: PIDCoefficients = PIDCoefficients(0.0, 0.0, 0.0), ffCoefficients: SimpleFFCoefficients = SimpleFFCoefficients(0.0, 0.0, 0.0))

Properties

Link copied to clipboard
var kA: Double

Acceleration feedforward gain for velocity control.

Link copied to clipboard
var kD: Double

Derivative gain for velocity PID.

Link copied to clipboard
var kI: Double

Integral gain for velocity PID.

Link copied to clipboard
var kP: Double

Proportional gain for velocity PID.

Link copied to clipboard
var kS: Double

Static friction compensation for velocity control.

Link copied to clipboard
var kV: Double

Velocity feedforward gain for velocity control.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard