-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
preflight failed mag sensors inconsistent #8475
Comments
What's your physical setup? Where are the compasses relative to sources of high current? If you change logging to start at boot (SDLOG_MODE 2), log sensor comparison (SDLOG_PROFILE see screenshot), and go through the full calibration again we can look at the log to find the issue. |
this morning, i calibrated it again with all the six positions, and all te necessary pre steps, now it works fine, if something wrong, i will reopen it again |
@dagar here is the calibrate logging data here is the later ones Now even right after i calibrated them ,i can get the warning of mag inconsisitent, can i turn it off? or do i have to downgrade the firmware to avoid this pre arm check? |
i have checked #7327 just now, then i list my dev here nsh> ls /dev i think there must be something wrong with my mag devices. so i type lsm303d start then arm pixhawk with rc, while the mag inconsisitent error disappears, so will it be such a software error? or a bug? if you need anything that i can help, just @me, i am willing to help |
The mag inconsistency check is new, but your problem was probably always there. You can silence it by increasing COM_ARM_MAG, however that doesn't resolve the underlying problem With the additionally logging enabled (all mags) can you try this.
Then we can look at the look and see just how different your mags are. I would guess there's a problem with how you've mounted everything. If one of the mags is definitely not usable you can disable it via param (CAL_MAGX_EN 0). You can then plot each sensor_mag in FlightPlot like this. Unfortunately your second log is only 9 seconds long and doesn't show much. |
I am facing the same problem with the MindPX flight controller. So far, I have been doing the test indoor. I am using a customized 3D printed quadcopter where the flight controller, companion computer, and all the wiring are inside a hub and close to each other. I flew it indoor and outdoor using v1.6.5 and it flew nicely. After upgrading to v1.7, I started to get the My conclusion is that, most probably that the internal magnetometers are highly affected by the surrounding wiring. However, it was working fine using 1.6.5 which is weird to me! |
@mzahana your mags were likely always inconsistent, you just weren't getting the error. If you're interested you should try the logging I described above and we can see how much they actually differ. Then you can decide if the internal should be disabled (CAL_MAGX_EN) or if the the inconsistency check should be relaxed. |
I am also gettin the exact same error. 1.6.5 I had no problems,1.7.0 now this problem comes up. Also I believe that my problem wasnt there as @dagar says, because now my compass readings have a consistent 45 degrees error. I will follow the logging steps that you have mentioned and will be sharing a log here |
@dagar Sorry for being away for such a long time, right now it seems i can't make it right by just calibrating it, i have been doing this for quite a few times, maybe it is just because i do it near my PC, luckily, by increasing the COM_ARM_MAG value, i can make it, maybe not the best way to solve this though. thank you any way, if i got something new, i will post it here again. |
I have the same problem on a Pixracer R14 with Px4 R1.7.3 stable. I have tried to recalibrate compass at different location without success. Shutting of the external compass eliminates the error "Mag sensors inconsistent". Also raising the COM_ARM_MAG value to 0.20 from 0.15 seems to eliminate the problem but then "EKF high imu accel bias" pops up instead. Rising the COM_ARM_EKF_AB from 0.0024 to 0.0030 eliminates this (0.0028 also works but not consistently). Whether these changes are within a reasonable tolerance level or not is beyond my knowledge so any comments will be appreciated. Might also be that the controller is of low quality. Both the preflight errors mentioned above does not stop the quadro from arming. |
One thing you may want to check... on my Flamewheel clone I didn't have the arrows on the GPS unit and the PX4 lined up. Once I lined them up, things went much smoother. |
Dear:
here are the log files.
https://logs.px4.io/plot_app?log=b11cdad4-8c8a-47c9-a83f-72c11df0df22
https://logs.px4.io/plot_app?log=7d3eac38-1274-451f-9d89-d1f44462aa91
https://logs.px4.io/plot_app?log=50c58947-0613-4c6f-b599-f814727564ca
i am not sure all of these three are the right files. but at least one of them is.
i cannot arm pixhawk at all, it keep telling me mag sensros inconsistent. i have placed ublox m8n with the same direction as pixhawk, and calibrate them 2 times, and i still got those msgs. what can i do?
The text was updated successfully, but these errors were encountered: