Skip to content

Commit

Permalink
fix: accept tags when disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
rutmanz authored Oct 19, 2024
1 parent e1fddf2 commit 9c6b5f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ public void addVisionMeasurement(EstimatedVisionPose visionPose) {
Matrix<N3, N1> stdDevs = visionPose.getStdDevs();
visionPoseEstimator.setVisionMeasurementStdDevs(stdDevs);
visionPoseEstimator.addVisionMeasurement(visionPose.poseMeters.toPose2d(), visionPose.timestampSecs);
if (!blockTags && (!RobotState.isAutonomous() || getSpeakerDistanceMeters() < 4.5)) {
if (!blockTags && (!RobotState.isAutonomous() || RobotState.isDisabled() || getSpeakerDistanceMeters() < 4.5)) {
poseEstimator.setVisionMeasurementStdDevs(stdDevs);
poseEstimator.addVisionMeasurement(visionPose.poseMeters.toPose2d(), visionPose.timestampSecs);
}
Expand Down

0 comments on commit 9c6b5f7

Please sign in to comment.