Tracker: move handling of incoming statutext messages up

This commit is contained in:
Peter Barker 2017-07-12 17:51:08 +10:00 committed by Francisco Ferreira
parent 7aff4c6ab9
commit abce338076
2 changed files with 6 additions and 0 deletions

View File

@ -492,6 +492,11 @@ void Tracker::mavlink_check_target(const mavlink_message_t* msg)
target_set = true;
}
uint8_t GCS_MAVLINK_Tracker::sysid_my_gcs() const
{
return tracker.g.sysid_my_gcs;
}
void GCS_MAVLINK_Tracker::handleMessage(mavlink_message_t* msg)
{
switch (msg->msgid) {

View File

@ -17,6 +17,7 @@ protected:
uint32_t telem_delay() const override { return 0; }
AP_Mission *get_mission() override { return nullptr; };
uint8_t sysid_my_gcs() const override;
private: