mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
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); }
|
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:
|
private:
|
||||||
void handleMessage(mavlink_message_t * msg);
|
void handleMessage(mavlink_message_t * msg);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user