Sub: handle common GPS messages in base GCS_MAVLINK class

This commit is contained in:
Peter Barker 2017-07-25 17:09:08 +10:00 committed by Francisco Ferreira
parent 87af817893
commit 2aaaba8397
2 changed files with 6 additions and 0 deletions

View File

@ -1713,6 +1713,11 @@ AP_Mission *GCS_MAVLINK_Sub::get_mission()
return &sub.mission;
}
AP_GPS *GCS_MAVLINK_Sub::get_gps() const
{
return &sub.gps;
}
AP_ServoRelayEvents *GCS_MAVLINK_Sub::get_servorelayevents() const
{
return &sub.ServoRelayEvents;

View File

@ -18,6 +18,7 @@ protected:
AP_Mission *get_mission() override;
AP_Rally *get_rally() const override;
AP_ServoRelayEvents *get_servorelayevents() const override;
AP_GPS *get_gps() const override;
uint8_t sysid_my_gcs() const override;