From 049cb93cad92a232b433036f7dc1d55c3275b453 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Tue, 30 May 2023 19:58:30 +0900 Subject: [PATCH] AP_Vehicle: add get_steering_and_throttle --- libraries/AP_Vehicle/AP_Vehicle.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Vehicle/AP_Vehicle.h b/libraries/AP_Vehicle/AP_Vehicle.h index f0f8ac0a7f..bc7e50e31f 100644 --- a/libraries/AP_Vehicle/AP_Vehicle.h +++ b/libraries/AP_Vehicle/AP_Vehicle.h @@ -170,8 +170,9 @@ public: virtual bool get_circle_radius(float &radius_m) { return false; } virtual bool set_circle_rate(float rate_dps) { return false; } - // set steering and throttle (-1 to +1) (for use by scripting with Rover) + // get or set steering and throttle (-1 to +1) (for use by scripting with Rover) virtual bool set_steering_and_throttle(float steering, float throttle) { return false; } + virtual bool get_steering_and_throttle(float& steering, float& throttle) { return false; } // set turn rate in deg/sec and speed in meters/sec (for use by scripting with Rover) virtual bool set_desired_turn_rate_and_speed(float turn_rate, float speed) { return false; }