ArmController

open class ArmController : PIDF

A composite PID and Feedforward controller that represents an arm suspended at an angle from gravity. This class is similar to PIDFFController, but uses suppliers for angles to be used in calculating feedforward, allowing proper calculation of the feedforward cosine coefficient.

Author

Lucas Bubner, 2024

Since

4.0.0

See also

Constructors

Link copied to clipboard
constructor(pid: PIDController, ff: ArmFeedforward, setPointAngleProvider: Supplier<Measure<Angle>>, velocityAngleProvider: Supplier<Measure<Velocity<Angle>>>, accelerationAngleProvider: Supplier<Measure<Velocity<Velocity<Angle>>>>)
Construct a new ArmController.

Functions

Link copied to clipboard
open fun calculate(current: Double, target: Double): Double
Calculate the next output of this control algorithm.
Link copied to clipboard
Gets the current coefficients for this controller.
Link copied to clipboard
Link copied to clipboard
open fun reset()
Reset this controller back to an un-accumulated state, if applicable.
Link copied to clipboard
open fun setCoefficients(coeffs: Array<Double>)
Sets the coefficients for this controller.