Copter: eliminate global static GCS_MAVLINK::send_home_all

This commit is contained in:
Peter Barker 2017-07-08 14:42:22 +10:00 committed by Francisco Ferreira
parent 579a1da2c5
commit a4d167affe
2 changed files with 4 additions and 1 deletions

View File

@ -16,6 +16,9 @@ public:
GCS_MAVLINK_Copter &chan(const uint8_t ofs) override {
return _chan[ofs];
};
const GCS_MAVLINK_Copter &chan(const uint8_t ofs) const override {
return _chan[ofs];
};
private:

View File

@ -95,7 +95,7 @@ bool Copter::set_home(const Location& loc, bool lock)
Log_Write_Home_And_Origin();
// send new home location to GCS
GCS_MAVLINK::send_home_all(loc);
gcs().send_home(loc);
// return success
return true;