mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 04:43:33 +08:00
Compute the timestamp of average sample correctly
This commit is contained in:
@@ -550,8 +550,9 @@ protected:
|
||||
uint64_t _mag_timestamp_sum {0};
|
||||
|
||||
// Used to down sample barometer data
|
||||
float _baro_alt_sum {0.0f}; ///< summed pressure altitude readings (m)
|
||||
uint8_t _baro_sample_count {0}; ///< number of barometric altitude measurements summed
|
||||
float _baro_alt_sum {0.0f}; // summed pressure altitude readings (m)
|
||||
uint8_t _baro_sample_count {0}; // number of barometric altitude measurements summed
|
||||
uint64_t _baro_timestamp_sum {0}; // summed timestamp to provide the timestamp of the averaged sample
|
||||
|
||||
fault_status_u _fault_status{};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user