mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[wpilib] Clean up DifferentialDrivetrainSim API (#2747)
Co-authored-by: Tyler Veness <calcmogul@gmail.com>
This commit is contained in:
committed by
GitHub
parent
1320691eb4
commit
9725aff83b
@@ -65,7 +65,7 @@ class DifferentialDrivetrainSimTest {
|
||||
|
||||
for (double t = 0; t < traj.getTotalTimeSeconds(); t += 0.020) {
|
||||
var state = traj.sample(0.020);
|
||||
var ramseteOut = ramsete.calculate(sim.getEstimatedPosition(), state);
|
||||
var ramseteOut = ramsete.calculate(sim.getPose(), state);
|
||||
|
||||
var wheelSpeeds = kinematics.toWheelSpeeds(ramseteOut);
|
||||
|
||||
@@ -141,6 +141,6 @@ class DifferentialDrivetrainSimTest {
|
||||
sim.update(0.020);
|
||||
}
|
||||
|
||||
assertTrue(Math.abs(sim.getEstimatedPosition().getTranslation().getNorm()) < 100);
|
||||
assertTrue(Math.abs(sim.getPose().getTranslation().getNorm()) < 100);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user