Skip to content

feat(tools): add DroneCAN sensor latency calibration scripts#26946

Open
dakejahl wants to merge 1 commit intomainfrom
feat/dronecan-latency-calibration-scripts
Open

feat(tools): add DroneCAN sensor latency calibration scripts#26946
dakejahl wants to merge 1 commit intomainfrom
feat/dronecan-latency-calibration-scripts

Conversation

@dakejahl
Copy link
Copy Markdown
Contributor

@dakejahl dakejahl commented Apr 1, 2026

Summary

  • Add Tools/dronecan_calibration/range_sensor_latency.py — estimates range sensor CAN pipeline delay by cross-correlating range rate with IMU-derived vertical velocity
  • Add Tools/dronecan_calibration/flow_sensor_latency.py — estimates optical flow CAN pipeline delay by cross-correlating the flow sensor's onboard gyro with the FC's gyro
  • Both generate PDF reports with raw data, cross-correlation plots, before/after alignment overlay, and a methodology page documenting the topics used, their logged rates, and the analysis accuracy

@dakejahl dakejahl requested a review from AlexKlimaj April 1, 2026 19:55
Cross-correlation scripts to measure CAN transport delay from flight
logs. Compares CAN sensor signals against the FC's directly-connected
IMU to estimate the total pipeline latency.

- range_sensor_latency.py: cross-correlates range rate with IMU-derived
  vertical velocity
- flow_sensor_latency.py: cross-correlates flow sensor gyro with FC gyro
@dakejahl dakejahl force-pushed the feat/dronecan-latency-calibration-scripts branch from 2682a2c to 2c8a3e9 Compare April 1, 2026 19:56
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.

2 participants