mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
[sim] Use plant output to retrieve simulated position (#3043)
Using the plant output means that measurement noise can be incorporated. SingleJointedArmSim (in C++ and Java) and ElevatorSim (in C++) used the state instead of the measurement. Closes #3042
This commit is contained in:
committed by
GitHub
parent
78147aa342
commit
1e9c79c587
@@ -199,7 +199,7 @@ public class SingleJointedArmSim extends LinearSystemSim<N2, N1, N1> {
|
||||
* @return The current arm angle.
|
||||
*/
|
||||
public double getAngleRads() {
|
||||
return m_x.get(0, 0);
|
||||
return m_y.get(0, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user