[wpilibj] Fix typo in ElevatorSim (#2895)

This caused an illegal argument exception whenever the simulated elevator velocity was retrieved.
This commit is contained in:
Prateek Machiraju
2020-11-30 01:28:11 -05:00
committed by GitHub
parent bc8f338771
commit bdf5ba91a4

View File

@@ -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);
}
/**