mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[wpimath] Update Drake DARE solver to v0.29.0 (#3336)
This version incorporated the patch we were manually applying, so we're synced back up with upstream now except for some minor #include changes to reduce header bloat.
This commit is contained in:
@@ -63,12 +63,10 @@ GTEST_TEST(DARE, SolveDAREandVerify) {
|
||||
R3 << 1;
|
||||
SolveDAREandVerify(A3, B3, Q3, R3);
|
||||
// Test 4: A = B = Q = R = I_2 (2-by-2 identity matrix)
|
||||
int n4 = 2, m4 = 2;
|
||||
MatrixXd A4(n4, n4), B4(n4, m4), Q4(n4, n4), R4(m4, m4);
|
||||
A4 << 1, 0, 0, 1;
|
||||
B4 << 1, 0, 0, 1;
|
||||
Q4 << 1, 0, 0, 1;
|
||||
R4 << 1, 0, 0, 1;
|
||||
const Eigen::MatrixXd A4{Eigen::Matrix2d::Identity()};
|
||||
const Eigen::MatrixXd B4{Eigen::Matrix2d::Identity()};
|
||||
const Eigen::MatrixXd Q4{Eigen::Matrix2d::Identity()};
|
||||
const Eigen::MatrixXd R4{Eigen::Matrix2d::Identity()};
|
||||
SolveDAREandVerify(A4, B4, Q4, R4);
|
||||
}
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user