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

Problem with internal magnetic sensors PIXHAWK 3 PRO #9160

Closed
CediBosshard opened this issue Mar 26, 2018 · 5 comments
Closed

Problem with internal magnetic sensors PIXHAWK 3 PRO #9160

CediBosshard opened this issue Mar 26, 2018 · 5 comments

Comments

@CediBosshard
Copy link

CediBosshard commented Mar 26, 2018

Firmware v1.7.3 & QGC v3.3.0
During test flights I noticed that the drone does not fly the route I specified, but always flies in any other direction. Several times I recalibrated all sensor systems with QGroundControl and still got the following warining: preflight failed mag sensors inconsistent

I have read the following forum posts:

After a few searches, I found the cause:
One internal magnetic sensor provided data that differed greatly from the other internal magnetic sensor and the magnetic sensor of the external GPS compass module. I created plots in all three axes using FlightPlot.

Internal magnetic sensor (sensor_mag_0 & sensor_mag_1):

External magnetic sensor (sensor_mag_2):

I can’t tell which sensor is exactly mag_0 and which is mag_1.

mag x
mag y
mag z

In the X-axis the magnetic sensor 1 has an offset, in the Y- & Z-axis it looks as if the signal is mirrored.

First tried to change the orientation of the sensor (CAL_MAG1_ROT), but after the QGC after the fifth time, set the value back to Internal mag, we left this.
As a result, I have deactivated the magnetic sensor in QGroundControl, which has a systematic deviation (CAL_MAG1_EN set to Disabled).

cal_mag

Since that moment, the drone has been flying exactly as planned!

My questions are this now:

  • Where could the error come from with the wrong signal?
  • How can you fix it yourself?

Thanks for your help!
Regards Cédi

@xdwgood
Copy link
Contributor

xdwgood commented Apr 3, 2018

Just personal advice: you can set CAL_MAG2_ROT = Internal mag

@CediBosshard
Copy link
Author

What is the point if I set CAL_MAG2_ROT = Internal?

@stale
Copy link

stale bot commented Jan 26, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

1 similar comment
@stale
Copy link

stale bot commented Jun 24, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale
Copy link

stale bot commented Jul 8, 2019

Closing as stale.

@stale stale bot closed this as completed Jul 8, 2019
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

2 participants