Skip to content

FilterReview: warn if raw IMU data is missing for much of the analysis time - #376

Open
j-w9 wants to merge 2 commits into
ArduPilot:mainfrom
j-w9:filter-review-missing-data
Open

j-w9 wants to merge 2 commits into
ArduPilot:mainfrom
j-w9:filter-review-missing-data

Conversation

@j-w9

@j-w9 j-w9 commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

"Warn if lots of missing data" from #10.

For raw IMU logs, each gyro's info now shows "Missing data: N% of analysis time" when more than 10% of the analysis time has no usable data. Coverage comes from the batches the raw loader already splits at gaps (so dropped chunks of fewer than 64 samples also count as missing), clipped to the analysis time and to that gyro's data range. It updates on load and on every Calculate.

Batch logs are not checked. The batch sampler waits and retries when the log buffer is full rather than dropping data (BatchSampler.cpp, "maybe later"), so gaps there aren't lost data.

The 10% threshold is a guess (missing_data_warn_fraction), happy to change it.

Tested with a SITL raw IMU log, and a copy of it with 20 s of GYR removed mid hover to stand in for dropped messages. The original shows no warning. The copy shows 26% for the default analysis time and 37% for the 56 to 110 s hover (20 s of 54). No warning on batch logs.

Missing data warning

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant