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

Stdev-UI: Handle angle wrapping #1061

Merged
merged 2 commits into from
Dec 28, 2023

Conversation

mcm001
Copy link
Contributor

@mcm001 mcm001 commented Dec 20, 2023

Closes #1013

@mcm001 mcm001 marked this pull request as ready for review December 20, 2023 18:28
@mcm001 mcm001 requested a review from a team as a code owner December 20, 2023 18:28
@@ -3,12 +3,32 @@ import { useCameraSettingsStore } from "@/stores/settings/CameraSettingsStore";
import { PipelineType } from "@/types/PipelineTypes";
import { useStateStore } from "@/stores/StateStore";

const wrapToPi = (delta: number): number => {
Copy link
Member

Choose a reason for hiding this comment

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

I feel like this should be renamed to angleModulus to match the method in MathUtils, I feel like that name is more indicative of what the method does than wrapToPi.

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 think both are fine, but I actually think this is more descriptive? IDK

@srimanachanta srimanachanta merged commit 282e1bb into PhotonVision:master Dec 28, 2023
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.

Add pose standard deviation to Web UI
2 participants