diff --git a/AntennaTracker/GCS_Tracker.h b/AntennaTracker/GCS_Tracker.h index ea37c945fb..df879f5ae5 100644 --- a/AntennaTracker/GCS_Tracker.h +++ b/AntennaTracker/GCS_Tracker.h @@ -14,6 +14,7 @@ public: // return GCS link at offset ofs GCS_MAVLINK_Tracker &chan(const uint8_t ofs) override { return _chan[ofs]; }; + const GCS_MAVLINK_Tracker &chan(const uint8_t ofs) const override { return _chan[ofs]; }; void setup_uarts(AP_SerialManager &serial_manager) override; diff --git a/AntennaTracker/system.cpp b/AntennaTracker/system.cpp index b6ac384772..8ad4982662 100644 --- a/AntennaTracker/system.cpp +++ b/AntennaTracker/system.cpp @@ -165,7 +165,7 @@ void Tracker::set_home(struct Location temp) { set_home_eeprom(temp); current_loc = temp; - GCS_MAVLINK::send_home_all(temp); + gcs().send_home(temp); } void Tracker::arm_servos()