Plane: integrate ahrs::get_variances change

offset is no longer returned
This commit is contained in:
Randy Mackay 2020-10-20 13:24:39 +09:00
parent 248d80eb37
commit 0362895720

View File

@ -110,8 +110,7 @@ bool Plane::ekf_over_threshold()
// A value above 1.0 means the EKF has rejected that sensor data // A value above 1.0 means the EKF has rejected that sensor data
float position_variance, vel_variance, height_variance, tas_variance; float position_variance, vel_variance, height_variance, tas_variance;
Vector3f mag_variance; Vector3f mag_variance;
Vector2f offset; if (!ahrs.get_variances(vel_variance, position_variance, height_variance, mag_variance, tas_variance)) {
if (!ahrs.get_variances(vel_variance, position_variance, height_variance, mag_variance, tas_variance, offset)) {
return false; return false;
}; };