Skip to content

Store calibration units in mm#2480

Open
thatcomputerguy0101 wants to merge 1 commit into
PhotonVision:mainfrom
thatcomputerguy0101:mm-calibration
Open

Store calibration units in mm#2480
thatcomputerguy0101 wants to merge 1 commit into
PhotonVision:mainfrom
thatcomputerguy0101:mm-calibration

Conversation

@thatcomputerguy0101
Copy link
Copy Markdown
Contributor

Description

Extension of #2479 that also changes the backend to use millimeters instead of inches.

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 changes behavior or adds a feature, user documentation is updated
  • If this PR touches photon-serde, all messages have been regenerated and hashes have not changed unexpectedly
  • If this PR touches configuration, this is backwards compatible with all settings going back to the previous seasons's last release (seasons end after champs ends)
  • If this PR touches pipeline settings or anything related to data exchange, the frontend typing is updated
  • If this PR addresses a bug, a regression test for it is added
  • If this PR adds a dependency, the license has been checked for compatibility and steps taken to follow it

@thatcomputerguy0101 thatcomputerguy0101 requested a review from a team as a code owner May 10, 2026 11:09
@github-actions github-actions Bot added frontend Having to do with PhotonClient and its related items backend Things relating to photon-core and photon-server labels May 10, 2026
break;

case CalibrationBoardTypes.Charuco:
// TODO: Dynamically generate ChArUco using opencv
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I forgot I left this TODO in here. Dynamic ChArUco generation might be the topic of another PR though.

@thatcomputerguy0101 thatcomputerguy0101 changed the title Store calibration units in mm, UI input of either inches or mm Store calibration units in mm May 11, 2026
@@ -110,32 +110,32 @@ watchEffect(() => {
uniqueVideoResolutionIndex.value = currentIndex;
});
const dimensionUnit = ref<"in" | "mm">("in");
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Which unit do we want to be the default?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I only kept it as inches since that's the existing behaviour.

I reckon whatever the default is should match whatever's in the board PDF.

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

Labels

backend Things relating to photon-core and photon-server frontend Having to do with PhotonClient and its related items

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants