PR: add optical flow arming check (#24375)

* add optical flow arming check

* removed deprecated mavlink_log_critical

* change SYS_HAS_NUM_OF description, keep max sensor at 1 since multiple instances are currently not support.

* restructure if/else blocks
This commit is contained in:
Marco Hauswirth
2025-02-26 08:41:12 +01:00
committed by GitHub
parent 0cb7b8b525
commit 2169ea561b
5 changed files with 140 additions and 0 deletions
+12
View File
@@ -240,6 +240,18 @@ PARAM_DEFINE_INT32(SYS_HAS_NUM_ASPD, 0);
*/
PARAM_DEFINE_INT32(SYS_HAS_NUM_DIST, 0);
/**
* Number of optical flow sensors required to be available
*
* The preflight check will fail if fewer than this number of optical flow sensors with valid data are present.
*
* @group System
* @min 0
* @max 1
*/
PARAM_DEFINE_INT32(SYS_HAS_NUM_OF, 0);
/**
* Enable factory calibration mode
*