mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-07 17:35:22 +08:00
Fixed wing land detector: Fix RTL logic with a temporary altitude limit workaround
This commit is contained in:
committed by
Lorenz Meier
parent
b8e72789cd
commit
daf668e687
@@ -94,8 +94,10 @@ void FixedwingLandDetector::_update_params()
|
||||
|
||||
float FixedwingLandDetector::_get_max_altitude()
|
||||
{
|
||||
//ToDo
|
||||
return 0.0f;
|
||||
// TODO
|
||||
// This means no altitude limit as the limit
|
||||
// is always current position plus 1000 meters
|
||||
return -_controlState.z_pos + 1000;
|
||||
}
|
||||
|
||||
bool FixedwingLandDetector::_get_freefall_state()
|
||||
|
||||
Reference in New Issue
Block a user