Handles various aspect of mavlink protocol with periodic telemetry, message callback, and onboard parameters.
More...
#include <mavlink_communication.hpp>
List of all members.
Detailed Description
template<uint32_t N_TELEM, uint32_t N_MSG_CB, uint32_t N_CMD_CB, uint32_t N_PARAM>
class Mavlink_communication_T< N_TELEM, N_MSG_CB, N_CMD_CB, N_PARAM >
Handles various aspect of mavlink protocol with periodic telemetry, message callback, and onboard parameters.
Constructor & Destructor Documentation
template<uint32_t N_TELEM, uint32_t N_MSG_CB, uint32_t N_CMD_CB, uint32_t N_PARAM>
Initialisation of the module MAVLink communication.
- Parameters:
-
config | Configuration |
serial | Input/Output stream |
state | MAV state |
file_storage | File used to store parameters between files |
- Returns:
- True if the init succeed, false otherwise
Member Function Documentation
template<uint32_t N_TELEM, uint32_t N_MSG_CB, uint32_t N_CMD_CB, uint32_t N_PARAM>
Default configuration.
- Parameters:
-
sysid | System id (default value = 1) |
- Returns:
- Config structure
template<uint32_t N_TELEM, uint32_t N_MSG_CB, uint32_t N_CMD_CB, uint32_t N_PARAM>
Returns sysid of the underlying mavlink_stream.
- Returns:
- sysid of the underlying mavlink_stream
template<uint32_t N_TELEM, uint32_t N_MSG_CB, uint32_t N_CMD_CB, uint32_t N_PARAM>
Main update function.
- Returns:
- Success
template<uint32_t N_TELEM, uint32_t N_MSG_CB, uint32_t N_CMD_CB, uint32_t N_PARAM>
Main update function, static version.
- Parameters:
-
mavlink_communication | Pointer to the MAVLink communication structure |
- Returns:
- Success
The documentation for this class was generated from the following file: