Commander: add wind speed warning

Publishes periodically (max every 1 min) a warning if the current wind estimate
is above COM_WIND_WARN.

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
Silvan Fuhrer
2021-10-06 11:31:13 -04:00
committed by Daniel Agar
parent 1a4ce136f3
commit eeb6244c6b
3 changed files with 51 additions and 0 deletions
+17
View File
@@ -1025,3 +1025,20 @@ PARAM_DEFINE_INT32(COM_ARM_ARSP_EN, 1);
* @value 2 Enforce SD card presence
*/
PARAM_DEFINE_INT32(COM_ARM_SDCARD, 1);
/**
* Wind speed warning threshold
*
* A warning is triggered if the currently estimated wind speed is above this value.
* Warning is sent periodically (every 1min).
*
* A negative value disables the feature.
*
* @min -1
* @max 30
* @decimal 1
* @increment 0.1
* @group Commander
* @unit m/s
*/
PARAM_DEFINE_FLOAT(COM_WIND_WARN, -1.f);