mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
The controller gain matrix K should be computed from the solution to the DARE, but this constructor does not do that. It effectively violates a postcondition enforced by the other constructors by letting the user throw in a controller gain matrix that didn't come from an LQR. Removing this constructor is a breaking change, but it never should have been included in the class in the first place. There's also no valid reason to use it. I assume it was originally added for debugging the class internals. This constructor does not exist in C++.