Fix trivial errorprone warnings (NFC) (#6135)

This commit is contained in:
David Vo
2024-01-20 15:46:38 +11:00
committed by GitHub
parent d198605562
commit a274e297cd
22 changed files with 33 additions and 36 deletions

View File

@@ -181,7 +181,7 @@ public class ControlAffinePlantInversionFeedforward<States extends Num, Inputs e
* @return The calculated feedforward.
*/
public Matrix<Inputs, N1> calculate(Matrix<States, N1> r, Matrix<States, N1> nextR) {
var rDot = (nextR.minus(r)).div(m_dt);
var rDot = nextR.minus(r).div(m_dt);
// ṙ = f(r) + Bu
// Bu = ṙ f(r)