mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +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
@@ -50,7 +50,7 @@ bool SingleJointedArmSim::HasHitUpperLimit(
|
||||
}
|
||||
|
||||
units::radian_t SingleJointedArmSim::GetAngle() const {
|
||||
return units::radian_t{m_x(0)};
|
||||
return units::radian_t{m_y(0)};
|
||||
}
|
||||
|
||||
units::radians_per_second_t SingleJointedArmSim::GetVelocity() const {
|
||||
|
||||
Reference in New Issue
Block a user