From c2b86cdb20f94d30f3d2c4f4d586d04aeb2edbd9 Mon Sep 17 00:00:00 2001 From: Paul Riseborough Date: Tue, 2 Mar 2021 19:52:51 +1100 Subject: [PATCH] EKF: Provide external reset of event records --- EKF/estimator_interface.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/EKF/estimator_interface.h b/EKF/estimator_interface.h index 7144acfb0e..2886c338e6 100644 --- a/EKF/estimator_interface.h +++ b/EKF/estimator_interface.h @@ -220,9 +220,11 @@ public: const warning_event_status_u &warning_event_status() const { return _warning_events; } const decltype(warning_event_status_u::flags) &warning_event_flags() const { return _warning_events.flags; } + void clear_warning_events() { _warning_events.value = 0; } const information_event_status_u &information_event_status() const { return _information_events; } const decltype(information_event_status_u::flags) &information_event_flags() const { return _information_events.flags; } + void clear_information_events() { _information_events.value = 0; } bool isVehicleAtRest() const { return _control_status.flags.vehicle_at_rest; }