From 98d5aa91a875fa7a9587f6e6c09a62588c5927fd Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Mon, 1 Jun 2020 00:30:02 +0100 Subject: [PATCH] AP_Vehicle: add scripting guided mode set angle --- libraries/AP_Vehicle/AP_Vehicle.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Vehicle/AP_Vehicle.h b/libraries/AP_Vehicle/AP_Vehicle.h index ec56e3a9dd..01a26d5eb4 100644 --- a/libraries/AP_Vehicle/AP_Vehicle.h +++ b/libraries/AP_Vehicle/AP_Vehicle.h @@ -170,10 +170,12 @@ public: virtual bool start_takeoff(float alt) { return false; } virtual bool set_target_location(const Location& target_loc) { return false; } virtual bool set_target_velocity_NED(const Vector3f& vel_ned) { return false; } + virtual bool set_target_angle_and_climbrate(float roll_deg, float pitch_deg, float yaw_deg, float climb_rate_ms, bool use_yaw_rate, float yaw_rate_degs) { return false; } + // get target location (for use by scripting) virtual bool get_target_location(Location& target_loc) { return false; } - + protected: virtual void init_ardupilot() = 0;