From 510d979b79e4933e6a05ee30201c8a8cc290d324 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 17 Jan 2023 17:37:30 +1100 Subject: [PATCH] AP_Vehicle: added set_land_descent_rate scripting method --- libraries/AP_Vehicle/AP_Vehicle.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_Vehicle/AP_Vehicle.h b/libraries/AP_Vehicle/AP_Vehicle.h index 5e56e16414..f0f8ac0a7f 100644 --- a/libraries/AP_Vehicle/AP_Vehicle.h +++ b/libraries/AP_Vehicle/AP_Vehicle.h @@ -189,6 +189,9 @@ public: // returns true if the EKF failsafe has triggered virtual bool has_ekf_failsafed() const { return false; } + // allow for landing descent rate to be overridden by a script, may be -ve to climb + virtual bool set_land_descent_rate(float descent_rate) { return false; } + // control outputs enumeration enum class ControlOutput { Roll = 1,