Skip to content

Conversation

@rokadias
Copy link
Contributor

@rokadias rokadias commented Apr 1, 2025

This might be worth getting in before the next competition as it might be a reason that we relied on old data, but just a hypothesis at the moment.

Heads up that I have an auto-formatter that usually cleans up files.

Why are we doing this?

Seeing if this helps avoid issues where we think we might be getting new camera target and pose data, but really we just have an old camera frame.

Whats changing?

Two new fields on TargetObservation to keep track of when the camera data was added.

Questions/notes for reviewers

How this was tested

  • unit tests updated
  • tested on robot

new Rotation2d(), new Transform3d(), 1, true);
// Using same heartbeat bounce as photonvision:
// https://github.com/PhotonVision/photonvision/blob/3c332db4bfe9083fc0311ae71cff92de588939ad/photon-lib/src/main/java/org/photonvision/PhotonCamera.java#L107
private static final double HEARTBEAT_DEBOUNCE_SEC = 0.5;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe make this public, so the next time we need to reference it we don't need a copy-paste (I wish PV folks had made this a public constant)

@stephenjust stephenjust merged commit 05c27b6 into main Apr 2, 2025
1 check passed
@stephenjust stephenjust deleted the saqib/pv-status branch April 2, 2025 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants