mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
[wpimath] Fix C++ feedforward constructors and add tests (#6873)
This commit is contained in:
@@ -139,3 +139,9 @@ TEST(ArmFeedforwardTest, AchievableAcceleration) {
|
||||
.value(),
|
||||
-5.25, 0.002);
|
||||
}
|
||||
|
||||
TEST(ArmFeedforwardTest, NegativeGains) {
|
||||
frc::ArmFeedforward armFF{Ks, Kg, -Kv, -Ka};
|
||||
EXPECT_EQ(armFF.GetKv().value(), 0);
|
||||
EXPECT_EQ(armFF.GetKa().value(), 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user