mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-04 08:28:53 +08:00
FlighttaskManualAlititude: replace SENS_FLOW_MINRNG with hagl_min
This commit is contained in:
committed by
Lorenz Meier
parent
4af9d79986
commit
c907e7a9dc
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user