Skip to content

cellGem: add magnetometer support - #16439

Merged
Megamouse merged 2 commits into
RPCS3:masterfrom
Megamouse:cellCameraTest
Dec 21, 2024
Merged

Megamouse merged 2 commits into
RPCS3:masterfrom
Megamouse:cellCameraTest

Conversation

@Megamouse

@Megamouse Megamouse commented Dec 21, 2024 •

Copy link
Copy Markdown
Contributor
  • Read magnetometer value from input report (model ZCM1 only)
  • Pass magnetometer to fusion algorithm (if enabled)
  • Allow cellGem to enable or disable the magnetometer

NOTE: It's not clear yet how all of these sensors are used correctly, which is noticeable by the bad tracking.
This can be the fault of the used library or simply a misconfiguration.
During testing, I sometimes had fantastic results, while having obnoxious drift on the next try.

These values have high noise on my model and make it unusable.
@Megamouse
Megamouse merged commit ff0249d into RPCS3:master Dec 21, 2024
u8 magnetometer_y{}; // 0x28 1+ Z-axis magnetometer
u16 magnetometer_z{}; // 0x29 1- Y-axis magnetometer
u8 magnetometer_y{}; // 0x28 1+ Y-axis magnetometer
u8 magnetometer_yz{}; // 0x29 1 XZ-axis magnetometer

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

yz <=> XZ
Is this a typo?

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.

Yes

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants