GCS_MAVLink: static find_by_mavtype method

This commit is contained in:
Randy Mackay 2015-07-24 20:52:56 +09:00
parent e092902613
commit e7df54ca75
1 changed files with 6 additions and 0 deletions

View File

@ -160,6 +160,12 @@ public:
*/
static void send_to_components(const mavlink_message_t* msg) { routing.send_to_components(msg); }
/*
search for a component in the routing table with given mav_type and retrieve it's sysid, compid and channel
returns if a matching component is found
*/
static bool find_by_mavtype(uint8_t mav_type, uint8_t &sysid, uint8_t &compid, mavlink_channel_t &channel) { return routing.find_by_mavtype(mav_type, sysid, compid, channel); }
private:
void handleMessage(mavlink_message_t * msg);