mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-01 06:30:35 +08:00
295 lines
4.7 KiB
C
295 lines
4.7 KiB
C
#include <systemlib/param/param.h>
|
|
|
|
// 16 is max name length
|
|
|
|
|
|
/**
|
|
* Enable local position estimator.
|
|
*
|
|
* @unit boolean
|
|
* @group Local Position Estimator
|
|
*/
|
|
PARAM_DEFINE_INT32(LPE_ENABLED, 1);
|
|
|
|
/**
|
|
* Enable accelerometer integration for prediction.
|
|
*
|
|
* @unit boolean
|
|
* @group Local Position Estimator
|
|
*/
|
|
PARAM_DEFINE_INT32(LPE_INTEGRATE, 1);
|
|
|
|
/**
|
|
* Optical flow z offset from center
|
|
*
|
|
* @group Local Position Estimator
|
|
* @unit m
|
|
* @min -1
|
|
* @max 1
|
|
* @decimal 3
|
|
*/
|
|
PARAM_DEFINE_FLOAT(LPE_FLW_OFF_Z, 0.0f);
|
|
|
|
/**
|
|
* Optical flow xy standard deviation.
|
|
*
|
|
* @group Local Position Estimator
|
|
* @unit m
|
|
* @min 0.01
|
|
* @max 1
|
|
* @decimal 3
|
|
*/
|
|
PARAM_DEFINE_FLOAT(LPE_FLW_XY, 0.01f);
|
|
|
|
/**
|
|
* Optical flow minimum quality threshold
|
|
*
|
|
* @group Local Position Estimator
|
|
* @unit
|
|
* @min 0
|
|
* @max 255
|
|
* @decimal 0
|
|
*/
|
|
PARAM_DEFINE_INT32(LPE_FLW_QMIN, 75);
|
|
|
|
/**
|
|
* Sonar z standard deviation.
|
|
*
|
|
* @group Local Position Estimator
|
|
* @unit m
|
|
* @min 0.01
|
|
* @max 1
|
|
* @decimal 3
|
|
*/
|
|
PARAM_DEFINE_FLOAT(LPE_SNR_Z, 0.05f);
|
|
|
|
/**
|
|
* Sonar z offset from center of vehicle +down
|
|
*
|
|
* @group Local Position Estimator
|
|
* @unit m
|
|
* @min -1
|
|
* @max 1
|
|
* @decimal 3
|
|
*/
|
|
PARAM_DEFINE_FLOAT(LPE_SNR_OFF_Z, 0.00f);
|
|
|
|
/**
|
|
* Lidar z standard deviation.
|
|
*
|
|
* @group Local Position Estimator
|
|
* @unit m
|
|
* @min 0.01
|
|
* @max 1
|
|
* @decimal 3
|
|
*/
|
|
PARAM_DEFINE_FLOAT(LPE_LDR_Z, 0.03f);
|
|
|
|
/**
|
|
* Lidar z offset from center of vehicle +down
|
|
*
|
|
* @group Local Position Estimator
|
|
* @unit m
|
|
* @min -1
|
|
* @max 1
|
|
* @decimal 3
|
|
*/
|
|
PARAM_DEFINE_FLOAT(LPE_LDR_OFF_Z, 0.00f);
|
|
|
|
/**
|
|
* Accelerometer xy standard deviation
|
|
*
|
|
* Data sheet sqrt(Noise power) = 150ug/sqrt(Hz)
|
|
* std dev = (150*9.8*1e-6)*sqrt(1000 Hz) m/s^2
|
|
* Since accels sampled at 1000 Hz.
|
|
*
|
|
* should be 0.0464
|
|
*
|
|
* @group Local Position Estimator
|
|
* @unit m/s/s
|
|
* @min 0.00001
|
|
* @max 2
|
|
* @decimal 4
|
|
*/
|
|
PARAM_DEFINE_FLOAT(LPE_ACC_XY, 0.0454f);
|
|
|
|
/**
|
|
* Accelerometer z standard deviation
|
|
*
|
|
* (see Accel x comments)
|
|
*
|
|
* @group Local Position Estimator
|
|
* @unit m/s/s
|
|
* @min 0.00001
|
|
* @max 2
|
|
* @decimal 4
|
|
*/
|
|
PARAM_DEFINE_FLOAT(LPE_ACC_Z, 0.0454f);
|
|
|
|
/**
|
|
* Barometric presssure altitude z standard deviation.
|
|
*
|
|
* @group Local Position Estimator
|
|
* @unit m
|
|
* @min 0.01
|
|
* @max 3
|
|
* @decimal 2
|
|
*/
|
|
PARAM_DEFINE_FLOAT(LPE_BAR_Z, 1.0f);
|
|
|
|
/**
|
|
* GPS xy standard deviation.
|
|
*
|
|
* @group Local Position Estimator
|
|
* @unit m
|
|
* @min 0.01
|
|
* @max 5
|
|
* @decimal 2
|
|
*/
|
|
PARAM_DEFINE_FLOAT(LPE_GPS_XY, 2.0f);
|
|
|
|
/**
|
|
* GPS z standard deviation.
|
|
*
|
|
* @group Local Position Estimator
|
|
* @unit m
|
|
* @min 0.01
|
|
* @max 20
|
|
* @decimal 2
|
|
*/
|
|
PARAM_DEFINE_FLOAT(LPE_GPS_Z, 10.0f);
|
|
|
|
/**
|
|
* GPS xy velocity standard deviation.
|
|
*
|
|
* @group Local Position Estimator
|
|
* @unit m/s
|
|
* @min 0.01
|
|
* @max 2
|
|
* @decimal 3
|
|
*/
|
|
PARAM_DEFINE_FLOAT(LPE_GPS_VXY, 0.25f);
|
|
|
|
/**
|
|
* GPS z velocity standard deviation.
|
|
*
|
|
* @group Local Position Estimator
|
|
* @unit m/s
|
|
* @min 0.01
|
|
* @max 2
|
|
* @decimal 3
|
|
*/
|
|
PARAM_DEFINE_FLOAT(LPE_GPS_VZ, 0.25f);
|
|
|
|
/**
|
|
* GPS max eph
|
|
*
|
|
* @group Local Position Estimator
|
|
* @unit m
|
|
* @min 1.0
|
|
* @max 5.0
|
|
* @decimal 3
|
|
*/
|
|
PARAM_DEFINE_FLOAT(LPE_EPH_MAX, 3.0f);
|
|
|
|
/**
|
|
* Vision xy standard deviation.
|
|
*
|
|
* @group Local Position Estimator
|
|
* @unit m
|
|
* @min 0.01
|
|
* @max 1
|
|
* @decimal 3
|
|
*/
|
|
PARAM_DEFINE_FLOAT(LPE_VIS_XY, 0.5f);
|
|
|
|
/**
|
|
* Vision z standard deviation.
|
|
*
|
|
* @group Local Position Estimator
|
|
* @unit m
|
|
* @min 0.01
|
|
* @max 2
|
|
* @decimal 3
|
|
*/
|
|
PARAM_DEFINE_FLOAT(LPE_VIS_Z, 0.5f);
|
|
|
|
/**
|
|
* Circuit breaker to disable vision input.
|
|
*
|
|
* Set to the appropriate key (328754) to disable vision input.
|
|
*
|
|
* @group Local Position Estimator
|
|
* @unit
|
|
* @min 0
|
|
* @max 1
|
|
* @decimal 0
|
|
*/
|
|
PARAM_DEFINE_INT32(LPE_NO_VISION, 0);
|
|
|
|
/**
|
|
* Vicon position standard deviation.
|
|
*
|
|
* @group Local Position Estimator
|
|
* @unit m
|
|
* @min 0.01
|
|
* @max 1
|
|
* @decimal 3
|
|
*/
|
|
PARAM_DEFINE_FLOAT(LPE_VIC_P, 0.05f);
|
|
|
|
/**
|
|
* Position propagation process noise power (variance*sampling rate).
|
|
*
|
|
* @group Local Position Estimator
|
|
* @unit (m/s/s)-s
|
|
* @min 0
|
|
* @max 1
|
|
* @decimal 8
|
|
*/
|
|
PARAM_DEFINE_FLOAT(LPE_PN_P, 0.0f);
|
|
|
|
/**
|
|
* Velocity propagation process noise power (variance*sampling rate).
|
|
*
|
|
* @group Local Position Estimator
|
|
* @unit (m/s)-s
|
|
* @min 0
|
|
* @max 5
|
|
* @decimal 8
|
|
*/
|
|
PARAM_DEFINE_FLOAT(LPE_PN_V, 0.0f);
|
|
|
|
/**
|
|
* Accel bias propagation process noise power (variance*sampling rate).
|
|
*
|
|
* @group Local Position Estimator
|
|
* @unit (m/s)-s
|
|
* @min 0
|
|
* @max 1
|
|
* @decimal 8
|
|
*/
|
|
PARAM_DEFINE_FLOAT(LPE_PN_B, 1e-8f);
|
|
|
|
/**
|
|
* Terrain random walk noise power (variance*sampling rate).
|
|
*
|
|
* @group Local Position Estimator
|
|
* @unit m-s
|
|
* @min 0
|
|
* @max 1
|
|
* @decimal 3
|
|
*/
|
|
PARAM_DEFINE_FLOAT(LPE_PN_T, 1e-3f);
|
|
|
|
/**
|
|
* Flow gyro high pass filter cut off frequency
|
|
*
|
|
* @group Local Position Estimator
|
|
* @unit Hz
|
|
* @min 0
|
|
* @max 2
|
|
* @decimal 3
|
|
*/
|
|
PARAM_DEFINE_FLOAT(LPE_FGYRO_HP, 0.1f);
|