Repository navigation
Conversation
Previous review (2026-11-09)Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting. Reviewed at head This adds a useful missing-data warning, and interior gaps are reported correctly, but gaps at the edges of the analysis window are never counted. Should fix
Short batches that the FFT skips are counted as covered, but that is existing FFT behaviour, not missing data, so it is not raised as an issue. |
Clip to the time covered by all IMUs rather than this IMU's own data, so an IMU that starts late, stops early or has no data in the window is counted as missing.
|
Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting. Reviewed at head This PR now looks good to merge: the missing-data warning is correct for interior gaps and for gaps at the edges of the analysis window. Since the last review, 34bde32 clips to the shared Gyro_batch.start_time/end_time, which fixes the edge-of-window false negative (FilterReview/FilterReview.js:299). An IMU that starts late, stops early or has no data in the window now reports 50%/100% instead of 0%, and continuous data still shows 0%. The earlier note about short batches the FFT skips still stands as a non-issue. Not fully reviewed: tested only with synthetic gyro data, not with a real raw-IMU .bin log loaded in a browser. |
"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
GYRremoved 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.