mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
AHRS_NavEKF: integrate INS use_accel
This commit is contained in:
parent
7f46cc9059
commit
a7569e3a61
@ -133,7 +133,7 @@ void AP_AHRS_NavEKF::update(void)
|
||||
}
|
||||
}
|
||||
|
||||
if(_ins.get_accel_health(0) && _ins.get_accel_health(1)) {
|
||||
if(_ins.use_accel(0) && _ins.use_accel(1)) {
|
||||
float IMU1_weighting;
|
||||
EKF.getIMU1Weighting(IMU1_weighting);
|
||||
_accel_ef_ekf_blended = _accel_ef_ekf[0] * IMU1_weighting + _accel_ef_ekf[1] * (1.0f-IMU1_weighting);
|
||||
|
Loading…
Reference in New Issue
Block a user