mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-07-27 00:48:23 +08:00
The FC-side DroneCAN sensor bridges (accel, gyro, rangefinder) used hrt_absolute_time() in the receive callback as timestamp_sample, adding ~3-16ms of systematic CAN transport delay. For messages with a uavcan.Timestamp field, the cannode can publish the actual sample time via UAVCAN GlobalTimeSync. The RawIMU publisher already did this for IMU data; apply the same pattern to the range sensor publisher, and update all three FC bridges to prefer the message timestamp with a fallback to hrt_absolute_time() for nodes that don't set it.