mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Instead of calculating time offsets between samples, it is easier just to assume a constant sampling time. Then all samples can be integrated, and published every forth time the FIFO buffer has been emptied. The sampling in the sensor happens at 8kHz, the driver empties the buffer at 1kHz, and publishes (and resets the integration) at 250 Hz.