mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[wpilibj] Fix typo in ElevatorSim (#2895)
This caused an illegal argument exception whenever the simulated elevator velocity was retrieved.
This commit is contained in:
committed by
GitHub
parent
bc8f338771
commit
bdf5ba91a4
@@ -146,7 +146,7 @@ public class ElevatorSim extends LinearSystemSim<N2, N1, N1> {
|
||||
* @return The velocity of the elevator.
|
||||
*/
|
||||
public double getVelocityMetersPerSecond() {
|
||||
return m_x.get(0, 1);
|
||||
return m_x.get(1, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user