FlightTasks: small refactor for review comments

This commit is contained in:
Matthias Grob
2017-11-28 18:17:39 +01:00
committed by Beat Küng
parent 1906b5b635
commit e44733a03c
2 changed files with 5 additions and 6 deletions

View File

@@ -26,8 +26,7 @@ int FlightTask::update()
_time = (_time_stamp_current - _time_stamp_activate) / 1e6f;
_deltatime = math::min((_time_stamp_current - _time_stamp_last), _timeout) / 1e6f;
_time_stamp_last = _time_stamp_current;
int ret = _evaluate_vehicle_position();
return ret;
return _evaluate_vehicle_position();
}
int FlightTask::_evaluate_vehicle_position()