mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 07:23:34 +08:00
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:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user