mavtables  0.2.1
MAVLink router and firewall.
Classes | Functions
MAVLink Library and Helpers

Classes

struct  mavlink::v1_header
 
struct  mavlink::v2_header
 

Functions

std::string mavlink::name (unsigned long id)
 
unsigned long mavlink::id (std::string name)
 

Detailed Description

MAVLink utility macros, defines, types and functions.

Including this file also includes the main MAVLink C library. This will be the reference implementation using the ArduPilot dialect by default.

The dialect can be changed by setting the DIALECT environment variable. The default is ardupilotmega.

The MAVLink library can be changed with the MDIR environement variable which should point to the directory where the DIALECT directory can be found.

Function Documentation

◆ id()

unsigned long mavlink::id ( std::string  name)

Get message ID from message name.

Parameters
nameThe name of the MAVLink message to get the numeric ID of.
Returns
The numeric ID of the message.
Exceptions
std::invalid_argumentif the given message name is not valid.

Definition at line 57 of file mavlink.cpp.

References name().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ name()

std::string mavlink::name ( unsigned long  id)

Get message name from numeric ID.

Parameters
idThe ID of the MAVLink message to get the name of.
Returns
The name of the message.
Exceptions
std::invalid_argumentif the given id is not valid.

Definition at line 35 of file mavlink.cpp.

Here is the caller graph for this function: