From b1ad2be8979eb803c2fd09711b545cc3099263cc Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 20 Mar 2014 07:57:01 +1100 Subject: [PATCH] AP_SpdHgtControl: added get_target_airspeed() interface --- libraries/AP_SpdHgtControl/AP_SpdHgtControl.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_SpdHgtControl/AP_SpdHgtControl.h b/libraries/AP_SpdHgtControl/AP_SpdHgtControl.h index 9c563a495a..9332ffddeb 100644 --- a/libraries/AP_SpdHgtControl/AP_SpdHgtControl.h +++ b/libraries/AP_SpdHgtControl/AP_SpdHgtControl.h @@ -58,6 +58,9 @@ public: // log data on internal state of the controller. Called at 10Hz virtual void log_data(DataFlash_Class &dataflash, uint8_t msgid) = 0; + // return current target airspeed + virtual float get_target_airspeed(void) const = 0; + // add new controllers to this enum. Users can then // select which controller to use by setting the // SPDHGT_CONTROLLER parameter