mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
[wpimath] Remove redundant column index from vectors (#4116)
This commit is contained in:
@@ -173,7 +173,7 @@ class LinearQuadraticRegulatorImpl {
|
||||
*
|
||||
* @return The row of the reference vector.
|
||||
*/
|
||||
double R(int i) const { return m_r(i, 0); }
|
||||
double R(int i) const { return m_r(i); }
|
||||
|
||||
/**
|
||||
* Returns the control input vector u.
|
||||
@@ -189,7 +189,7 @@ class LinearQuadraticRegulatorImpl {
|
||||
*
|
||||
* @return The row of the control input vector.
|
||||
*/
|
||||
double U(int i) const { return m_u(i, 0); }
|
||||
double U(int i) const { return m_u(i); }
|
||||
|
||||
/**
|
||||
* Resets the controller.
|
||||
|
||||
Reference in New Issue
Block a user