From 711ecb45ab620c6e7ff2867fec88a4a186f939c9 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 8 Jan 2022 14:37:05 +1100 Subject: [PATCH] AP_Vehicle: added update_target_location() --- libraries/AP_Vehicle/AP_Vehicle.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/AP_Vehicle/AP_Vehicle.h b/libraries/AP_Vehicle/AP_Vehicle.h index 4df022eb8b..8cc1a3ed7a 100644 --- a/libraries/AP_Vehicle/AP_Vehicle.h +++ b/libraries/AP_Vehicle/AP_Vehicle.h @@ -210,6 +210,7 @@ public: // get target location (for use by scripting) virtual bool get_target_location(Location& target_loc) { return false; } + virtual bool update_target_location(const Location &old_loc, const Location &new_loc) { return false; } // circle mode controls (only used by scripting with Copter) virtual bool get_circle_radius(float &radius_m) { return false; } @@ -225,6 +226,9 @@ public: virtual bool nav_script_time(uint16_t &id, uint8_t &cmd, float &arg1, float &arg2) { return false; } virtual void nav_script_time_done(uint16_t id) {} + // allow for VTOL velocity matching of a target + virtual bool set_velocity_match(const Vector2f &velocity) { return false; } + // control outputs enumeration enum class ControlOutput {