mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-18 07:50:35 +08:00
land detector FW round get_max_altitude()
- this prevents constant land detector publications
This commit is contained in:
@@ -87,7 +87,7 @@ float FixedwingLandDetector::_get_max_altitude()
|
||||
// TODO
|
||||
// This means no altitude limit as the limit
|
||||
// is always current position plus 1000 meters
|
||||
return -_controlState.z_pos + 1000;
|
||||
return roundf(-_controlState.z_pos + 1000);
|
||||
}
|
||||
|
||||
bool FixedwingLandDetector::_get_freefall_state()
|
||||
|
||||
Reference in New Issue
Block a user