mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[wpimath] Remove ImplicitModelFollower dt argument (#4119)
The math works just fine without model discretization.
This commit is contained in:
@@ -17,7 +17,7 @@ TEST(ImplicitModelFollowerTest, SameModel) {
|
||||
auto plant = LinearSystemId::IdentifyDrivetrainSystem(Kv_t{1.0}, Ka_t{1.0},
|
||||
Kv_t{1.0}, Ka_t{1.0});
|
||||
|
||||
ImplicitModelFollower<2, 2> imf{plant, plant, dt};
|
||||
ImplicitModelFollower<2, 2> imf{plant, plant};
|
||||
|
||||
Eigen::Vector<double, 2> x{0.0, 0.0};
|
||||
Eigen::Vector<double, 2> xImf{0.0, 0.0};
|
||||
@@ -66,7 +66,7 @@ TEST(ImplicitModelFollowerTest, SlowerRefModel) {
|
||||
auto plantRef = LinearSystemId::IdentifyDrivetrainSystem(
|
||||
Kv_t{1.0}, Ka_t{2.0}, Kv_t{1.0}, Ka_t{1.0});
|
||||
|
||||
ImplicitModelFollower<2, 2> imf{plant, plantRef, dt};
|
||||
ImplicitModelFollower<2, 2> imf{plant, plantRef};
|
||||
|
||||
Eigen::Vector<double, 2> x{0.0, 0.0};
|
||||
Eigen::Vector<double, 2> xImf{0.0, 0.0};
|
||||
|
||||
Reference in New Issue
Block a user