mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-10 15:11:35 +08:00
Commander: windCheck: add COM_WIND_MAX_ACT param to set high wind failsafe action (#21373)
Has options *None where the check is disabled, and *Warning, where only a warning is published (which replaces the high wind warning from the COM_WIND_WARN limit). Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
@@ -1052,14 +1052,10 @@ PARAM_DEFINE_FLOAT(COM_WIND_WARN, -1.f);
|
||||
PARAM_DEFINE_INT32(COM_FLT_TIME_MAX, -1);
|
||||
|
||||
/**
|
||||
* Wind speed RTL threshold
|
||||
* High wind speed failsafe threshold
|
||||
*
|
||||
* Wind speed threshold above which an automatic return to launch is triggered.
|
||||
* It is not possible to resume the mission or switch to any auto mode other than
|
||||
* RTL or Land if this threshold is exceeded. Taking over in any manual
|
||||
* mode is still possible.
|
||||
*
|
||||
* Set to -1 to disable.
|
||||
* Wind speed threshold above which an automatic failsafe action is triggered.
|
||||
* Failsafe action can be specified with COM_WIND_MAX_ACT.
|
||||
*
|
||||
* @min -1
|
||||
* @decimal 1
|
||||
@@ -1069,6 +1065,27 @@ PARAM_DEFINE_INT32(COM_FLT_TIME_MAX, -1);
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(COM_WIND_MAX, -1.f);
|
||||
|
||||
/**
|
||||
* High wind failsafe mode
|
||||
*
|
||||
* Action the system takes when a wind speed above the specified threshold is detected.
|
||||
* See COM_WIND_MAX to set the failsafe threshold.
|
||||
* If enabled, it is not possible to resume the mission or switch to any auto mode other than
|
||||
* RTL or Land if this threshold is exceeded. Taking over in any manual
|
||||
* mode is still possible.
|
||||
*
|
||||
* @group Commander
|
||||
*
|
||||
* @value 0 None
|
||||
* @value 1 Warning
|
||||
* @value 2 Hold
|
||||
* @value 3 Return
|
||||
* @value 4 Terminate
|
||||
* @value 5 Land
|
||||
* @increment 1
|
||||
*/
|
||||
PARAM_DEFINE_INT32(COM_WIND_MAX_ACT, 0);
|
||||
|
||||
/**
|
||||
* EPH threshold for RTL
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user