AP_Landing: add is_complete() accessor

This commit is contained in:
Tom Pittenger 2016-12-12 00:44:33 -08:00
parent 4b683edac9
commit 3e2098192b

View File

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