Sub: eliminate global static GCS_MAVLINK::send_home_all

This commit is contained in:
Peter Barker 2017-07-08 14:46:48 +10:00 committed by Francisco Ferreira
parent 1be52495f1
commit e9845fd593
2 changed files with 4 additions and 1 deletions

View File

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

View File

@ -91,7 +91,7 @@ bool Sub::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;