"EKF Bad" warning from autopilot

I’ve raised an issue for this and we’ve had some relevant discussion on the apparent problem, and are considering a potential solution :slight_smile:

Will try to implement Eliot’s solution!

Worst dive thus far, could partially be due to the change of key bind as per this thread - but that is only guessing, and hopefully the logs will assist in pointing to the exact issues.

Cockpit logs are attached below, Ill add the .BIN logs to the dropbox as too big to be dropped here.

Along with the usual “EKF BAD, or F-BAD” I had a lot of messages in Cockpit saying "mission download failed - I am uncertain what this relates to, as I have created no missions.

I notice on both ROVs that Cerulean Sonarview shows long/lat location even though no global start point has been entered - something the ChatGPT report uncovered.

The biggest issue I had today, ontop of the constatn ‘EKF Bad’ was the ROV disarming, landing on the lake bed, and refusing to re-arm. I rebooted the autopilot, I did full ROV reboot, I removed the pitch Datalake and Java scripts (that had been inputted as per previously linked forum thread), I re-installed Cockpit back to the last stable release, eventually once installing Cockpit 1.19.0beta13 the ROV would finally arm and I was able to nurse it back home. Once I pulled the ROV out of the water and sat it down on a level case, I noticed that the pitch/roll HUD in Cockpit had the roll displaying at an incorrect very steep angle (see screen record from 25:20, most roll at 26:52).

Calibrations:

Compass - earlier this week

Gyros - earlier this week

Accelerometers - earlier this week

After it refused to arm on the lakebed, I started screen recording, which can be found here.

Cockpit_System_Logs_2026-10-09_12-50-39.zip (14.0 MB)

This dialog appeared because Cockpit automatically asks the vehicle if it has any missions stored, and in this case it didn’t receive an answer. I have already opened a PR that replaces the usage of this (intrusive) middle-screen dialog with a snackbar, so it doesn’t cause troubles.

The alert appeared most probably because the vehicle was running low on resources (and thus unable to answer in time) or the connection was bad (thus dropping the answer).

There seems other be radio silence from everyone on both the AI report, as well as my post about the dive on 9th October, with only @rafael.lehmkuhl replying to only a small segment, so I have spent the weekend going through more tests, along with more AI analysis. The tests performed and results are documented in the following report.

Poppy_Blue_Robotics_Engineering_Update_Evidence_Only_REVISED_2026-10-12.pdf (92.1 KB)

Further from this, the ROV has had a new Pi, leaving the Navigator board, the 5v 6A Power supply, and the ESCs as potential hardware pieces leading to fault.

Speaking hypothetically;

  1. As most of the EKF errors have resulted during higher thruster power draw, IF the power supply was faulty, could this cause momentary voltage drop to the Pi and Navigator, and could a voltage drop cause navigator sensor misinformation?

  2. Could a faulty ESC cause magnetic interference to only one of the magnetometers in the Navigator, causing the EKF errors?

  3. Could a faulty Navigator be the cause?

I do not know the cause, but I do know that I have a very sick ROV, and some assistance from BR would be much appreciated.

Hi @3dMB -
Apologies for the delayed response. @williangalvani reviewed your logs and calibration and it seems there are some easy things to address- the mot_compass parameters have the wrong sign primarily. I’m mystified how that happened given they were generated in the online ArduPilot tool. Maybe this report is helpful to your AI analysis.

poppy_response.zip.zip (5.8 KB)

None of your hypotheticals seem likely to me!

Many thanks @tony-white & @williangalvani. I will make these recommended parameter modifications, however, (if I am reading this correctly - which I may well not be) assuming these modifications were as a result of the following parameter changes…

…it does not explain the issues before the implementation of these. This ROV has been running stock parameters, bar the Cerulean DVL recommendations.

The next chance for this ROV to be in the water is next week, so will report back then. Thank you :folded_hands:

Hi @3dMB -
I suspect earlier logs, prior to the magfit correction, had EK3_MAG_CAL = 4, which can lead to issues in an environment with magnetic interference.

Set EK3_MAG_CAL = 2 (heading-only fusion, reboot required). This stops EKF3 learning body bias states from interference and from nearby ferrous structures such as rebar, Bailey bridge steel and quarry walls. The trade-off is that compass calibration and alignment errors become harder for the EKF to detect

I required a new Navigator for a different project, so decided to swap out the Navigator in the problem ROV for the new one, to see if it made a difference. I then ran the data logs back through ChatGPT, with a much deeper forensic analysis. The analysis has found sensor spikes immediately before EKF bad events. The analysis has compared old vs new Navigator .BIN logs, as well as my other BR2 logs. The new Navigator also had the Autopilot parameters as per @williangalvani response quoted below.

Attached below is the latest analysis report. Although this does have some recommended next tests, I am away for a week so unable to perform any of them, but I also wanted to ask the Blue Robotics boffins if these tests will be of assistance, or going off on a tangent?

Poppy_Sensor_Acquisition_Forensics.pdf (1.4 MB)

BIN 75 is in the existing dropbox folder, direct link to the subfolder HERE.

Hi @3dMB -
That report reads as AI slop to me…I don’t see anything useful!

Generally, our recommendation was to disable the magnetometer with the poor calibration. Because we haven’t seen this issue occurring elsewhere, I believe it is due to the environment you’re operating in, and potentially something specific about the power wiring around the Navigator on your particular unit.

Thanks @tony-white

I could appreciate the switching off the poorly calibrated magnetometer, but with the new Navigator with completely different magnetometers?

Environment: This latest dive was a completely different site, still fresh water, but limestone quarry this time, as opposed to Granite, also the area of use had very little iron.

The power wiring is exactly as it was built at BR, although I have replaced the Pi and the Navigator, the wiring around these has remained exactly as originally built.

Ref the “AI slop” - I had never used AI until your comment above, hence why I have ben exploring this way.

Hi @3dMB -
AI is definitely a very useful tool! My slop comment was directed only to that latest report - it didn’t say anything particularly sensical, at least to my reading of it.
When you swapped Navigators, did you re-do all your calibrations? Each device requires its own calibration…

Your EKF Bad is likely coming from thruster current interfering with things. The motor correction can help this, but is only setup for motor load, not the opposite case, when a motor slows down and energy is returned to the battery. Are you still applying motor current compass calibration, in the fixed direction mentioned previously? Generally we haven’t tested motor current compensation on ArduSub much - but your issue seems to correlate with high current moments.

We’ll examing your log 75 and let you know what we find!

Absolutely, full re-calibration. Compass calibration was also performed at the dive site.