From 07ac5370d8324c809117fe3a41f9d36b95168881 Mon Sep 17 00:00:00 2001 From: Prateek Machiraju Date: Sat, 17 Oct 2020 19:44:55 -0400 Subject: [PATCH] [wpimath] Fix m_nextR instantiation in LinearSystemLoop ctor (#2783) --- .../java/edu/wpi/first/wpilibj/system/LinearSystemLoop.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpimath/src/main/java/edu/wpi/first/wpilibj/system/LinearSystemLoop.java b/wpimath/src/main/java/edu/wpi/first/wpilibj/system/LinearSystemLoop.java index 92357b39e0..f972dec170 100644 --- a/wpimath/src/main/java/edu/wpi/first/wpilibj/system/LinearSystemLoop.java +++ b/wpimath/src/main/java/edu/wpi/first/wpilibj/system/LinearSystemLoop.java @@ -131,7 +131,7 @@ public class LinearSystemLoop(new SimpleMatrix(controller.getK().getNumCols(), 0)); + m_nextR = new Matrix<>(new SimpleMatrix(controller.getK().getNumCols(), 1)); reset(m_nextR); }