[wpilib] Rename LinearSystemSim's ResetState() to SetState() (#2750)

This makes it more consistent with all other simulation classes,
including the differential drive simulation class.
This commit is contained in:
Tyler Veness
2020-09-27 15:26:50 -07:00
committed by GitHub
parent c3b3fb8b74
commit 693daafe29
4 changed files with 11 additions and 8 deletions

View File

@@ -14,7 +14,7 @@ TEST(SingleJointedArmTest, Disabled) {
frc::sim::SingleJointedArmSim sim(frc::DCMotor::Vex775Pro(2), 100, 10_kg,
9.5_in, -180_deg, 0_deg, false, {0.0},
true);
sim.ResetState(frc::MakeMatrix<2, 1>(0.0, 0.0));
sim.SetState(frc::MakeMatrix<2, 1>(0.0, 0.0));
for (size_t i = 0; i < 12 / 0.02; ++i) {
sim.SetInput(frc::MakeMatrix<1, 1>(0.0));