mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00: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