Commit Graph

6 Commits

Author SHA1 Message Date
Peter Barker cd8f081611 AP_NavEKF: correct setting of _filled
Co-authored-by: luweiagi <luweiagi@163.com>
2024-04-10 21:53:54 +10:00
Peter Barker 99f5e74a8e AP_NavEKF: correct initialisation of ekf_imu_buffer
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
2024-04-10 21:53:54 +10:00
Andrew Tridgell a941e4cd41 AP_NavEKF: re-implemented EKF ring buffer
this fixes a bug where elemnts being pushed into the buffer more
slowly than we recall can be lost

for example, if you push a single element in then try a recall it will
fail
2022-06-24 20:25:39 +10:00
Andrew Tridgell ab917ed92e AP_NavEKF: add more protections on ring buffer code
declare an internal error if we try to access an element when not
initialised
2020-12-01 10:53:08 +11:00
Andrew Tridgell fe81387433 AP_NavEKF: allow init twice
this can happen if setup_core() fails with low mem and is called again
2020-11-20 21:56:32 +11:00
Andrew Tridgell e4a9497942 AP_NavEKF: added common EKF buffer classes 2020-11-20 21:56:32 +11:00