mirror of https://github.com/ArduPilot/ardupilot
Copter: eliminate global static GCS_MAVLINK::send_home_all
This commit is contained in:
parent
579a1da2c5
commit
a4d167affe
|
@ -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:
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue