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

magnetometerCalibration: Structs for magd #543

Closed
wants to merge 5 commits into from
Closed

Conversation

nuwandavek
Copy link
Contributor

openpilot PR: commaai/openpilot#30216

@@ -1996,6 +1996,16 @@ struct LiveTorqueParametersData {
useParams @12 :Bool;
}

struct MagnetometerCalibrationData {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we want this in two parts: a SensorEventData for the calibrated measurements and perhaps another struct for the calibration data itself for debugging

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 maybe not. The final "calibrated measurements" are not the only information needed to get bearing. There is an additional step to adjust for offsets in angle-domain. So the final post-all-calculations value would be the magnetometer bearing. But that's not a sensor data - so maybe it is better as is.

@nuwandavek nuwandavek marked this pull request as ready for review November 9, 2023 21:19
@adeebshihadeh adeebshihadeh deleted the mag-calib branch December 5, 2023 03:29
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.

2 participants