mavtables
0.2.1
MAVLink router and firewall.
|
Classes | |
struct | mavlink::v1_header |
struct | mavlink::v2_header |
Functions | |
std::string | mavlink::name (unsigned long id) |
unsigned long | mavlink::id (std::string name) |
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.
unsigned long mavlink::id | ( | std::string | name | ) |
Get message ID from message name.
name | The name of the MAVLink message to get the numeric ID of. |
std::invalid_argument | if the given message name is not valid. |
Definition at line 57 of file mavlink.cpp.
References name().
std::string mavlink::name | ( | unsigned long | id | ) |
Get message name from numeric ID.
id | The ID of the MAVLink message to get the name of. |
std::invalid_argument | if the given id is not valid. |
Definition at line 35 of file mavlink.cpp.