Skip to content

Explicitly handle Sim Camera params in milliseconds#2375

Open
cswilson252 wants to merge 3 commits intoPhotonVision:mainfrom
cswilson252:unitErrorsInLatencySignatures
Open

Explicitly handle Sim Camera params in milliseconds#2375
cswilson252 wants to merge 3 commits intoPhotonVision:mainfrom
cswilson252:unitErrorsInLatencySignatures

Conversation

@cswilson252
Copy link
Contributor

Description

What changed? Why? (the code + comments should speak for itself on the "how")

Closes #2003, converts seconds to milliseconds in Python's simCameraProperties.py. These were always supposed to be in ms, this just explicitly specifies that in order to cause less confusion.

Meta

Merge checklist:

  • Pull Request title is short, imperative summary of proposed changes
  • The description documents the what and why, including events that led to this PR
  • If this PR addresses a bug, a regression test for it is added

@cswilson252 cswilson252 requested a review from a team as a code owner February 24, 2026 06:27
@github-actions github-actions bot added the photonlib Things related to the PhotonVision library label Feb 24, 2026
* published) a frame should have
* published) in milliseconds a frame should have
*/
void SetAvgLatency(units::second_t avgLatency) {
Copy link
Member

Choose a reason for hiding this comment

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

looks like this function here is still in seconds?

@cswilson252
Copy link
Contributor Author

cswilson252 commented Feb 25, 2026 via email

*
* @param avgLatency The average latency (from image capture to data
* published) a frame should have
* published) in milliseconds a frame should have
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* published) in milliseconds a frame should have
* published) a frame should have

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

photonlib Things related to the PhotonVision library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python Simulation Units

3 participants