Hi,
I posted yesterday about moving forward using Okapi Chassis being kind of jerky. We have mitigated that to an extent by modifying the gains (essentially tuning our PID), but it’s still not smooth. Additionally, when we move the drive forwards (chassis->moveDistance(1_ft); ), it lurches forwards rather than smoothly accelerating. Additionally, it abruptly stops, and I don’t think that a PID drive is supposed to. We used the motion from okapi, and it seems it has parameters for maximum jerk, acceleration, that sort of thing. We tried moving with that, and it was extremely smooth. Is there a way to replicate those parameters, i.e. maximum jerk, acceleration, etc. within the Okapi chassis? If not, how could I adjust my PID in order to eliminate the jerk (oscillation I think it’s called). Thanks in advance! For reference, here are our current gains and such-
> {0.00034, 0.001, 0}, // Distance controller gains
> {0.003, 0.0009, 0.00008}, // Turn controller gains
> {0.00038, 0.00080, 0.00008} // Angle controller gains