FlighttaskManualAlititude: replace SENS_FLOW_MINRNG with hagl_min

This commit is contained in:
Dennis Mannhart
2018-07-20 09:26:18 +02:00
committed by Lorenz Meier
parent 4af9d79986
commit c907e7a9dc
3 changed files with 15 additions and 10 deletions
+3 -2
View File
@@ -96,12 +96,13 @@ bool FlightTask::_evaluateVehicleLocalPosition()
// distance to bottom
_dist_to_bottom = NAN;
if (_sub_vehicle_local_position->get().dist_bottom_valid) {
if (_sub_vehicle_local_position->get().dist_bottom_valid
&& PX4_ISFINITE(_sub_vehicle_local_position->get().dist_bottom)) {
_dist_to_bottom = _sub_vehicle_local_position->get().dist_bottom;
}
// estimator specified vehicle limits
// We don't check here if states are valid or not.
// Validity checks are done in the sub-classes.