mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-13 10:03:57 -03:00
AP_NavEKF2: fixed build with IMU_BUFFER_LENGTH change
This commit is contained in:
parent
af3507ef3c
commit
08ef00b431
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user