EKF: Provide external reset of event records

This commit is contained in:
Paul Riseborough 2021-03-02 19:52:51 +11:00 committed by Daniel Agar
parent 9d51ab079a
commit c2b86cdb20

View File

@ -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; }