EKF2 Errors Mid-Mission

In about 1 of 5 flights the EKF solution errors and can’t recover. Below are some example logs. What are some suggestions as to why this is happening? Vibration? Data dropouts? Too much logging?

https://logs.px4.io/plot_app?log=02ff5a36-d344-46bb-8ca5-35f690b34f6b
https://logs.px4.io/plot_app?log=11fc0342-b2ed-4069-be34-5ea607c33b8e
https://logs.px4.io/plot_app?log=90d2c3bc-5dbd-49f1-929e-d076d19bd16a
https://logs.px4.io/plot_app?log=abf4c12b-5007-4181-b3f7-9905711fb68d

Here is another example.

https://logs.px4.io/plot_app?log=fe18cb15-96d9-4f34-ad40-3103e63634b5

I suspect something bad is happening with your GPS/magnetometer. Maybe bad wiring or maybe a bad GPS/Mag card? when I see drop-outs in the “GPS Noise & Jamming” data usually it is because the autopilot has stopped getting data from the GPS module.

1 Like

Thanks. I was also thinking bad communications. Do you suspect a bad physical connection or noise? It is kinda weird that only MAG_X dropped out but Y and Z did not. Also the GPS seems to go in and out which could be an intermittent connection. I have 3.3V level signaling across a 20 inch wire. Does that seem OK for noise immunity purposes?

yeah, that X mag is really weird. I’ve never seen anything like that before. certainly seems you have some sort of electrical/wiring issue though.

What do you think happened in this log? It looks like the IMU after a certain point becomes unstable.

https://logs.px4.io/plot_app?log=90d2c3bc-5dbd-49f1-929e-d076d19bd16a

Yeah that log is strange. Something strange happened halfway through the flight, but I’m not sure what. Can you describe your hardware setup?