AP_Vehicle: move handling of DO_SET_HOME up to GCS_MAVLink base class

This commit is contained in:
Peter Barker 2024-04-03 21:40:30 +11:00 committed by Andrew Tridgell
parent ecf93f6d86
commit d78e96cc6b

View File

@ -289,6 +289,11 @@ public:
*/
virtual bool get_rate_ef_targets(Vector3f& rate_ef_targets) const { return false; }
#if AP_AHRS_ENABLED
virtual bool set_home_to_current_location(bool lock) WARN_IF_UNUSED = 0;
virtual bool set_home(const Location& loc, bool lock) WARN_IF_UNUSED = 0;
#endif
protected:
virtual void init_ardupilot() = 0;