Navigator: re-introduce min loiter alt, but only apply it for Loiters w/o a specified altitude setpoint

Also applies to Loiters that are started due to the previous mode being over (Takeoff,
VTOL_Takeoff, Mission).

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
Silvan Fuhrer
2022-11-22 13:46:25 -05:00
committed by Daniel Agar
parent 8157d83bfc
commit 9cd3eae0aa
3 changed files with 29 additions and 1 deletions
+16
View File
@@ -161,3 +161,19 @@ PARAM_DEFINE_FLOAT(NAV_TRAFF_A_RADU, 10);
* @group Mission
*/
PARAM_DEFINE_INT32(NAV_FORCE_VT, 1);
/**
* Minimum Loiter altitude
*
* This is the minimum altitude above Home the system will always obey in Loiter (Hold) mode if switched into this
* mode without specifying an altitude (e.g. through Loiter switch on RC).
* Doesn't affect Loiters that are part of Missions or that are entered through a reposition setpoint ("Go to").
* Set to a negative value to disable.
*
* @unit m
* @min -1
* @decimal 1
* @increment 0.5
* @group Mission
*/
PARAM_DEFINE_FLOAT(NAV_MIN_LTR_ALT, -1.f);