mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-10 22:51:35 +08:00
Add EKF2_OF_QMIN_GND to handle 0 optical flow quality when on ground
This commit is contained in:
@@ -901,7 +901,7 @@ PARAM_DEFINE_FLOAT(EKF2_OF_N_MIN, 0.15f);
|
||||
PARAM_DEFINE_FLOAT(EKF2_OF_N_MAX, 0.5f);
|
||||
|
||||
/**
|
||||
* Optical Flow data will only be used if the sensor reports a quality metric >= EKF2_OF_QMIN.
|
||||
* Optical Flow data will only be used in air if the sensor reports a quality metric >= EKF2_OF_QMIN.
|
||||
*
|
||||
* @group EKF2
|
||||
* @min 0
|
||||
@@ -909,6 +909,15 @@ PARAM_DEFINE_FLOAT(EKF2_OF_N_MAX, 0.5f);
|
||||
*/
|
||||
PARAM_DEFINE_INT32(EKF2_OF_QMIN, 1);
|
||||
|
||||
/**
|
||||
* Optical Flow data will only be used on the ground if the sensor reports a quality metric >= EKF2_OF_QMIN_GND.
|
||||
*
|
||||
* @group EKF2
|
||||
* @min 0
|
||||
* @max 255
|
||||
*/
|
||||
PARAM_DEFINE_INT32(EKF2_OF_QMIN_GND, 0);
|
||||
|
||||
/**
|
||||
* Gate size for optical flow fusion
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user