Skip to content

Commit

Permalink
AP_NavEKF: correct initialisation of ekf_imu_buffer
Browse files Browse the repository at this point in the history
this init() call can be called on an existing buffer, in which case we clear the object.

Presumably since we've just zeroed all the elements its safe to say that we should mark the object as having never-been-filled
  • Loading branch information
peterbarker committed Apr 10, 2024
1 parent 8452f5f commit 99f5e74
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/AP_NavEKF/EKF_Buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ bool ekf_imu_buffer::init(uint32_t size)
_size = size;
_youngest = 0;
_oldest = 0;
_filled = 0;
return true;
}

Expand Down

0 comments on commit 99f5e74

Please sign in to comment.