AP_NavEKF: Use better type for array index

This commit is contained in:
Paul Riseborough 2020-04-18 10:04:35 +10:00 committed by Andrew Tridgell
parent 4b3952bd15
commit 51b62a34b9

View File

@ -226,7 +226,7 @@ void EKFGSF_yaw::predictAHRS(const uint8_t mdl_idx)
if (spinRate < 0.175f) {
AHRS[mdl_idx].gyro_bias -= tilt_error_gyro_correction * (EKFGSF_gyroBiasGain * angle_dt);
for (int i = 0; i < 3; i++) {
for (uint8_t i = 0; i < 3; i++) {
AHRS[mdl_idx].gyro_bias[i] = constrain_float(AHRS[mdl_idx].gyro_bias[i], -gyro_bias_limit, gyro_bias_limit);
}
}