mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 00:23:33 +08:00
LandDetector: use a 64bit counter for total system flight time
The previous 32bit counter wrapped in ~1.19h, this switches to 2 32bit counters, wrapping in 584942 years.
This commit is contained in:
@@ -166,8 +166,9 @@ private:
|
||||
bool _taskShouldExit;
|
||||
bool _taskIsRunning;
|
||||
|
||||
param_t _p_total_flight_time;
|
||||
int32_t _total_flight_time;
|
||||
param_t _p_total_flight_time_high;
|
||||
param_t _p_total_flight_time_low;
|
||||
uint64_t _total_flight_time; ///< in microseconds
|
||||
hrt_abstime _takeoff_time;
|
||||
|
||||
struct work_s _work;
|
||||
|
||||
Reference in New Issue
Block a user