Skip to content
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

Radians to Degrees for multi-tag pose #1027

Merged
merged 2 commits into from
Nov 28, 2023

Conversation

MrRedness
Copy link
Contributor

@MrRedness MrRedness commented Nov 26, 2023

@MrRedness MrRedness reopened this Nov 26, 2023
<td>
{{
(
useStateStore().currentPipelineResults?.multitagResult?.bestTransform.angle_z *
Copy link
Contributor

Choose a reason for hiding this comment

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

If this angle ends up being undefined, what's the output of the rest of this function? Should we just do angle_z || 0?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In what situation would multitagResult be valid but bestTransform.angle_z undefined?

Copy link
Contributor

Choose a reason for hiding this comment

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

Should be never, actually? I'm actually not super familiar with how ?. works in JavaScript so I may need enlightning

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I built this code and saw no issues with multi pnp but I can add the || 0 if you prefer

Copy link
Member

Choose a reason for hiding this comment

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

Go ahead and add that to all multitarget props as all of them may be undefined

@srimanachanta srimanachanta merged commit 7b49570 into PhotonVision:master Nov 28, 2023
14 checks passed
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.

Reported field-relative rotation appears to be in units other than degrees
3 participants