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

Add support for all external Mag orientations #86

Closed
piposa opened this issue Feb 20, 2016 · 3 comments
Closed

Add support for all external Mag orientations #86

piposa opened this issue Feb 20, 2016 · 3 comments
Milestone

Comments

@piposa
Copy link

piposa commented Feb 20, 2016

Align_sensors() has just support for mag orientations if mag is mounted on board. Missing is support if the flight controller board is mounted perpendicular to Mag/GPS board and external mag is used.
Extend align_mag with additional orientations.

@digitalentity
Copy link
Member

That's rather exotic configuration. I'm not sure if it's worth the effort. I'll keep the issue open for the time being to keep track of the idea.

@piposa
Copy link
Author

piposa commented Mar 13, 2016

I you limit your view to copters, I agree it is a quite exotic configuration.
I use a FLIP mini in flying wing and I have mounted it verticaly in the wing to have easy access to the usb port.
For airplanes the fuselage often allows easier mounting below the cockpit canopy so that the usb port is accessable from the top. Avoids extension cords or additional openings in the fuselage.
I solve that for now by hand modifying the code prior to compile. I agree extending the switch () statement for all possibilities is too much. Right now I lack a better idea, but could it be done as a kind of matrix? The human readable configuration should be done in the configurator... Not exactly sure how....

fiam added a commit that referenced this issue Feb 24, 2018
Introduce 3 new variables which allow setting the decidegrees
for the mag sensor alignment. When any of these 3 variables
are non-zero, mag is assumed to be mounted off-board and
"align_mag" as well as the board alignment are ignored.

Settings are named align_mag_roll, align_mag_pitch and
align_mag_yaw.

Fixes #86
Fixes #1029
fiam added a commit that referenced this issue Feb 24, 2018
Introduce 3 new variables which allow setting the decidegrees
for the mag sensor alignment. When any of these 3 variables
are non-zero, mag is assumed to be mounted off-board and
"align_mag" as well as the board alignment are ignored.

Settings are named align_mag_roll, align_mag_pitch and
align_mag_yaw.

Fixes #86
Fixes #1029
fiam added a commit that referenced this issue Mar 15, 2018
Introduce 3 new variables which allow setting the decidegrees
for the mag sensor alignment. When any of these 3 variables
are non-zero, mag is assumed to be mounted off-board and
"align_mag" as well as the board alignment are ignored.

Settings are named align_mag_roll, align_mag_pitch and
align_mag_yaw.

Fixes #86
Fixes #1029
@fiam fiam added this to the 1.9.1 milestone Mar 23, 2018
@fiam fiam closed this as completed Mar 23, 2018
shellixyz pushed a commit to shellixyz/inav that referenced this issue May 6, 2018
Introduce 3 new variables which allow setting the decidegrees
for the mag sensor alignment. When any of these 3 variables
are non-zero, mag is assumed to be mounted off-board and
"align_mag" as well as the board alignment are ignored.

Settings are named align_mag_roll, align_mag_pitch and
align_mag_yaw.

Fixes iNavFlight#86
Fixes iNavFlight#1029
@brainbubblersbest
Copy link

brainbubblersbest commented Feb 14, 2020

Can you post a short howto?
eg if i use a BN880 with cw270 mounted compass
What Values do i need to set if the BN880 is mounted with arrow pointing forward.

And now in addition: Tilt it Backwards because it is mounted on a 30 Degree Cam mount.

Does "as well as the board alignment are ignored" mean Orientation is relative to Flight Direction and not FC Position now?

This Example is seen a few Times and Users are Confused what is to set here.
Thank you.

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

No branches or pull requests

4 participants