ekf: add function to get in air status

This commit is contained in:
ChristophTobler 2017-10-03 17:44:11 +02:00 committed by Lorenz Meier
parent 705f93d0bf
commit 6cb99ce8a8
1 changed files with 3 additions and 0 deletions

View File

@ -183,6 +183,9 @@ public:
// set vehicle landed status data // set vehicle landed status data
void set_in_air_status(bool in_air) {_control_status.flags.in_air = in_air;} 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 // set vehicle is fixed wing status
void set_is_fixed_wing(bool is_fixed_wing) {_control_status.flags.fixed_wing = is_fixed_wing;} void set_is_fixed_wing(bool is_fixed_wing) {_control_status.flags.fixed_wing = is_fixed_wing;}