-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect pose estimation vision correction java example #1634
Labels
bug
Something isn't working
Comments
i forgot to add the bug label |
Yeah agreed that that example looks like an anti pattern. Good catch! |
Yee. The example design predates |
Fyi some overlap with #1632 |
spacey-sooty
added a commit
to spacey-sooty/photonvision
that referenced
this issue
Jan 11, 2025
Resolves PhotonVision#1634 Signed-off-by: Jade Turner <[email protected]>
spacey-sooty
added a commit
to spacey-sooty/photonvision
that referenced
this issue
Jan 15, 2025
Resolves PhotonVision#1634 Signed-off-by: Jade Turner <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the PhotonLib pose estimation java example, old vision measurements are being ignored and only the most recent measurement from
getAllUnreadResults()
is being added to the WPILib pose estimator:getEstimatedGlobalPose()
method (the issue is in this method):photonvision/photonlib-java-examples/poseest/src/main/java/frc/robot/Vision.java
Lines 86 to 114 in e8efef4
SwerveDrivePoseEstimator
vision update call using thegetEstimatedGlobalPose()
method:photonvision/photonlib-java-examples/poseest/src/main/java/frc/robot/Robot.java
Lines 64 to 73 in e8efef4
The text was updated successfully, but these errors were encountered: