From 6cb99ce8a8e768ae3cbe794f0182f9853fe953fe Mon Sep 17 00:00:00 2001 From: ChristophTobler Date: Tue, 3 Oct 2017 17:44:11 +0200 Subject: [PATCH] ekf: add function to get in air status --- EKF/estimator_interface.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/EKF/estimator_interface.h b/EKF/estimator_interface.h index b0dc5501e7..3d49c62f3e 100644 --- a/EKF/estimator_interface.h +++ b/EKF/estimator_interface.h @@ -183,6 +183,9 @@ public: // set vehicle landed status data void set_in_air_status(bool in_air) {_control_status.flags.in_air = in_air;} + // get vehicle landed status data + bool get_in_air_status() {return _control_status.flags.in_air;} + // set vehicle is fixed wing status void set_is_fixed_wing(bool is_fixed_wing) {_control_status.flags.fixed_wing = is_fixed_wing;}