From 558f60c6d837fd8e439274b3657adffde5f486f7 Mon Sep 17 00:00:00 2001 From: muramura Date: Sun, 2 Jun 2024 16:39:41 +0900 Subject: [PATCH] AP_Vehicle: Add a function to retrieve the LANDED_STATE --- libraries/AP_Vehicle/AP_Vehicle.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_Vehicle/AP_Vehicle.h b/libraries/AP_Vehicle/AP_Vehicle.h index 8b22c9395d73d4..e569a33fb5ca22 100644 --- a/libraries/AP_Vehicle/AP_Vehicle.h +++ b/libraries/AP_Vehicle/AP_Vehicle.h @@ -247,6 +247,8 @@ class AP_Vehicle : public AP_HAL::HAL::Callbacks { // returns true if vehicle is in the process of taking off virtual bool is_taking_off() const { return false; } + virtual uint8_t get_landed_state() const { return uint8_t(MAV_LANDED_STATE_UNDEFINED); } + // zeroing the RC outputs can prevent unwanted motor movement: virtual bool should_zero_rc_outputs_on_reboot() const { return false; }