Automatic Feedforward Tuner
Op mode for computing kV, kStatic, and kA from various drive routines. For the curious, here's an outline of the procedure: 1. Slowly ramp the motor power and record encoder values along the way. 2. Run a linear regression on the encoder velocity vs. motor power plot to obtain a slope (kV) and an optional intercept (kStatic). 3. Accelerate the robot (apply constant power) and record the encoder counts. 4. Adjust the encoder data based on the velocity tuning data and find kA with another linear regression.
Since
4.0.0