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

src: lib: Change the sensor readings axes to navigator's standard #37

Merged
merged 1 commit into from
Jul 13, 2023

Conversation

RaulTrombin
Copy link
Member

The sensors readings now follows the aeronautical frame system, right-handed, Z-axis down.

https://www.mathworks.com/help/aeroblks/about-aerospace-coordinate-systems.html
image

image
image

Corrects the open milestone issue:

@RaulTrombin
Copy link
Member Author

RaulTrombin commented Jul 13, 2023

Just need to check/discuss the magnetic field,

For 9-DOF sensors, generally seems to use like this:
image
As it's tracking the north pole. Maybe makes sense.

But actually, with this PR it's using same reference as Accel.

@RaulTrombin
Copy link
Member Author

They are showing positive values when poiting to a magnetic south pole. According to the field vector.
image

src/lib.rs Outdated
// Change the axes to navigator's standard. Right-handed, Z-axis down (aeronautical frame, NED).
AxisData {
x: y,
y: ((-1.0) * x),
Copy link
Member

@patrickelectric patrickelectric Jul 13, 2023

Choose a reason for hiding this comment

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

why not just: x * -1.0 ?

@patrickelectric patrickelectric merged commit 4e5fd87 into bluerobotics:master Jul 13, 2023
2 checks passed
@RaulTrombin RaulTrombin deleted the axes_reference branch July 13, 2023 19:49
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