mirror of https://github.com/ArduPilot/ardupilot
GCS_MAVLink: static find_by_mavtype method
This commit is contained in:
parent
e092902613
commit
e7df54ca75
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue