Skip to content

Conversation

@ButterscotchV
Copy link
Member

@ButterscotchV ButterscotchV commented Oct 24, 2025

Our current reset code is a mess, we can absolutely annihilate gyroFix and leave it to yawFix to handle the yaw offset. The yaw calculation for isolating attachment pitch/roll is now using YXZ euler angle order so that roll does not affect the yaw (at the sacrifice of pitch, but it's one I'm willing to make). This also fixes changes to manual mounting orientation causing your calibration to be annihilated.

I tested this lightly and it works for IMUs, unsure about with HMD or computed trackers. I left most other jank the same because I don't want to break things, but there is a lot that can be improved. Notably, the way we handle computed trackers (which btw only means that it doesn't need mounting) is kinda weird and tposeDownFix is super weird and jank?

I would also like to make more unit tests, I spent way too much time figuring out all the logic behind the reset code so I'm prepared to actually write some new ones for computed trackers and maybe things like t-pose.

Replaces #1321

@ButterscotchV ButterscotchV self-assigned this Oct 24, 2025
@ButterscotchV ButterscotchV added Type: Bug Something isn't working Priority: Normal The default priority Type: Enhancement Adds or improves a feature Area: Server Related to the server labels Oct 24, 2025
@Eirenliel
Copy link
Member

I don't think this should be merged when we're preparing 0.16.4, and before unit tests.

@github-actions github-actions bot added the Area: Hardware Protocol Related to communication with hardware/software trackers label Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Hardware Protocol Related to communication with hardware/software trackers Area: Server Related to the server Priority: Normal The default priority Type: Bug Something isn't working Type: Enhancement Adds or improves a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants