AP_NavEKF2: fixed build with IMU_BUFFER_LENGTH change

This commit is contained in:
Andrew Tridgell 2015-11-18 11:33:51 +11:00
parent af3507ef3c
commit 08ef00b431
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ void NavEKF2_core::ResetHeight(void)
} else if (onGround) {
stateStruct.velocity.z = 0.0f;
}
for (uint8_t i=0; i<IMU_BUFFER_LENGTH; i++) {
for (uint8_t i=0; i<imu_buffer_length; i++) {
storedOutput[i].velocity.z = stateStruct.velocity.z;
}
outputDataNew.velocity.z = stateStruct.velocity.z;