From 3e2098192bc9ee43a5182b569a88b6f39ef822d0 Mon Sep 17 00:00:00 2001 From: Tom Pittenger Date: Mon, 12 Dec 2016 00:44:33 -0800 Subject: [PATCH] AP_Landing: add is_complete() accessor --- libraries/AP_Landing/AP_Landing.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_Landing/AP_Landing.h b/libraries/AP_Landing/AP_Landing.h index 32ce1338e6..14cc9a23cc 100644 --- a/libraries/AP_Landing/AP_Landing.h +++ b/libraries/AP_Landing/AP_Landing.h @@ -91,9 +91,11 @@ public: int8_t get_flap_percent(void) const { return flap_percent; } int8_t get_throttle_slewrate(void) const { return throttle_slewrate; } bool is_commanded_go_around(void) const { return commanded_go_around; } + bool is_complete(void) const { return complete; } void set_initial_slope() { initial_slope = slope; } + // Flag to indicate if we have landed. // Set land_complete if we are within 2 seconds distance or within 3 meters altitude of touchdown bool complete;