Land detector: Accumulate total flight time between flights

This commit is contained in:
Lorenz Meier 2017-01-29 11:40:52 +01:00
parent 35efe651ac
commit 1c131f2523
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ void LandDetector::_cycle()
_takeoff_time = now;
} else if (_takeoff_time != 0 && !landDetected && _landDetected.landed) {
_total_flight_time = now - _takeoff_time;
_total_flight_time += now - _takeoff_time;
_takeoff_time = 0;
param_set(_p_total_flight_time, &_total_flight_time);
}