Skip to content

Commit

Permalink
[wpimath] Remove dead code from C++ PoseEstimator.GetEstimatedPosition()
Browse files Browse the repository at this point in the history
This also makes it match Java.
  • Loading branch information
calcmogul committed Oct 14, 2024
1 parent bedfc09 commit f197c40
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,6 @@ template <typename WheelSpeeds, typename WheelPositions>
Pose2d PoseEstimator<WheelSpeeds, WheelPositions>::GetEstimatedPosition()
const {
return m_poseEstimate;
if (m_visionUpdates.empty()) {
return m_odometry.GetPose();
}
auto visionUpdate = m_visionUpdates.rbegin()->second;
return visionUpdate.Compensate(m_odometry.GetPose());
}

template <typename WheelSpeeds, typename WheelPositions>
Expand Down

0 comments on commit f197c40

Please sign in to comment.