mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_NavEKF : add INIT_GYRO_BIAS_UNCERTAINTY definition
This commit is contained in:
parent
ddb8796d2c
commit
fecad46336
@ -102,6 +102,9 @@ extern const AP_HAL::HAL& hal;
|
|||||||
// assume 3m/s to start
|
// assume 3m/s to start
|
||||||
#define STARTUP_WIND_SPEED 3.0f
|
#define STARTUP_WIND_SPEED 3.0f
|
||||||
|
|
||||||
|
// initial gyro bias uncertainty (deg/sec)
|
||||||
|
#define INIT_GYRO_BIAS_UNCERTAINTY 0.1f
|
||||||
|
|
||||||
// Define tuning parameters
|
// Define tuning parameters
|
||||||
const AP_Param::GroupInfo NavEKF::var_info[] PROGMEM = {
|
const AP_Param::GroupInfo NavEKF::var_info[] PROGMEM = {
|
||||||
|
|
||||||
@ -2816,7 +2819,7 @@ void NavEKF::resetGyroBias(void)
|
|||||||
state.gyro_bias.zero();
|
state.gyro_bias.zero();
|
||||||
zeroRows(P,10,12);
|
zeroRows(P,10,12);
|
||||||
zeroCols(P,10,12);
|
zeroCols(P,10,12);
|
||||||
P[10][10] = sq(radians(0.1f * dtIMU));
|
P[10][10] = sq(radians(INIT_GYRO_BIAS_UNCERTAINTY * dtIMU));
|
||||||
P[11][11] = P[10][10];
|
P[11][11] = P[10][10];
|
||||||
P[12][12] = P[10][10];
|
P[12][12] = P[10][10];
|
||||||
|
|
||||||
@ -2938,7 +2941,7 @@ void NavEKF::CovarianceInit()
|
|||||||
P[8][8] = P[7][7];
|
P[8][8] = P[7][7];
|
||||||
P[9][9] = sq(5.0f);
|
P[9][9] = sq(5.0f);
|
||||||
// delta angle biases
|
// delta angle biases
|
||||||
P[10][10] = sq(radians(0.1f * dtIMU));
|
P[10][10] = sq(radians(INIT_GYRO_BIAS_UNCERTAINTY * dtIMU));
|
||||||
P[11][11] = P[10][10];
|
P[11][11] = P[10][10];
|
||||||
P[12][12] = P[10][10];
|
P[12][12] = P[10][10];
|
||||||
// Z delta velocity bias
|
// Z delta velocity bias
|
||||||
|
Loading…
Reference in New Issue
Block a user