diff --git a/libraries/AP_Vehicle/AP_Vehicle.h b/libraries/AP_Vehicle/AP_Vehicle.h index f68350c8ca..e1ec483203 100644 --- a/libraries/AP_Vehicle/AP_Vehicle.h +++ b/libraries/AP_Vehicle/AP_Vehicle.h @@ -176,6 +176,8 @@ public: virtual bool start_takeoff(const float alt) { return false; } // Method to control vehicle position for use by external control virtual bool set_target_location(const Location& target_loc) { return false; } + // Get target location for use by external control + virtual bool get_target_location(Location& target_loc) { return false; } #endif // AP_SCRIPTING_ENABLED || AP_EXTERNAL_CONTROL_ENABLED #if AP_SCRIPTING_ENABLED /* @@ -195,8 +197,6 @@ public: virtual void set_rudder_offset(float rudder_pct, bool run_yaw_rate_controller) {} virtual bool nav_scripting_enable(uint8_t mode) {return false;} - // 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)