diff --git a/libraries/AP_Follow/AP_Follow.h b/libraries/AP_Follow/AP_Follow.h index 4612a63767..5784c8f2d3 100644 --- a/libraries/AP_Follow/AP_Follow.h +++ b/libraries/AP_Follow/AP_Follow.h @@ -38,6 +38,9 @@ public: // constructor AP_Follow(); + // returns true if library is enabled + bool enabled() const { return _enabled; } + // set which target to follow void set_target_sysid(uint8_t sysid) { _sysid = sysid; } @@ -73,9 +76,6 @@ public: // parameter list static const struct AP_Param::GroupInfo var_info[]; - // returns true if library is enabled - bool enabled() const { return _enabled; } - private: // get velocity estimate in m/s in NED frame using dt since last update