Skip to content

Commit

Permalink
Sub: handle common GPS messages in base GCS_MAVLINK class
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker authored and OXINARF committed Jul 25, 2017
1 parent 87af817 commit 2aaaba8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ArduSub/GCS_Mavlink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions ArduSub/GCS_Mavlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class GCS_MAVLINK_Sub : public GCS_MAVLINK {
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;

Expand Down

0 comments on commit 2aaaba8

Please sign in to comment.