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