Go to the source code of this file.
|
static void | mavlink_msg_timesync_decode (const mavlink_message_t *msg, mavlink_timesync_t *timesync) |
| Decode a timesync message into a struct. More...
|
|
static uint16_t | mavlink_msg_timesync_encode (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_timesync_t *timesync) |
| Encode a timesync struct. More...
|
|
static uint16_t | mavlink_msg_timesync_encode_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_timesync_t *timesync) |
| Encode a timesync struct on a channel. More...
|
|
static int64_t | mavlink_msg_timesync_get_tc1 (const mavlink_message_t *msg) |
| Send a timesync message. More...
|
|
static int64_t | mavlink_msg_timesync_get_ts1 (const mavlink_message_t *msg) |
| Get field ts1 from timesync message. More...
|
|
static uint16_t | mavlink_msg_timesync_pack (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, int64_t tc1, int64_t ts1) |
| Pack a timesync message. More...
|
|
static uint16_t | mavlink_msg_timesync_pack_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, int64_t tc1, int64_t ts1) |
| Pack a timesync message on a channel. More...
|
|
#define MAVLINK_MESSAGE_INFO_TIMESYNC |
#define MAVLINK_MSG_ID_111_CRC 34 |
#define MAVLINK_MSG_ID_111_LEN 16 |
#define MAVLINK_MSG_ID_TIMESYNC 111 |
#define MAVLINK_MSG_ID_TIMESYNC_CRC 34 |
#define MAVLINK_MSG_ID_TIMESYNC_LEN 16 |
static void mavlink_msg_timesync_decode |
( |
const mavlink_message_t * |
msg, |
|
|
mavlink_timesync_t * |
timesync |
|
) |
| |
|
inlinestatic |
Decode a timesync message into a struct.
- Parameters
-
msg | The message to decode |
timesync | C-struct to decode the message contents into |
Definition at line 225 of file mavlink_msg_timesync.h.
static uint16_t mavlink_msg_timesync_encode |
( |
uint8_t |
system_id, |
|
|
uint8_t |
component_id, |
|
|
mavlink_message_t * |
msg, |
|
|
const mavlink_timesync_t * |
timesync |
|
) |
| |
|
inlinestatic |
Encode a timesync struct.
- Parameters
-
system_id | ID of this system |
component_id | ID of this component (e.g. 200 for IMU) |
msg | The MAVLink message to compress the data into |
timesync | C-struct to read the message contents from |
Definition at line 107 of file mavlink_msg_timesync.h.
static uint16_t mavlink_msg_timesync_encode_chan |
( |
uint8_t |
system_id, |
|
|
uint8_t |
component_id, |
|
|
uint8_t |
chan, |
|
|
mavlink_message_t * |
msg, |
|
|
const mavlink_timesync_t * |
timesync |
|
) |
| |
|
inlinestatic |
Encode a timesync struct on a channel.
- Parameters
-
system_id | ID of this system |
component_id | ID of this component (e.g. 200 for IMU) |
chan | The MAVLink channel this message will be sent over |
msg | The MAVLink message to compress the data into |
timesync | C-struct to read the message contents from |
Definition at line 121 of file mavlink_msg_timesync.h.
static int64_t mavlink_msg_timesync_get_tc1 |
( |
const mavlink_message_t * |
msg | ) |
|
|
inlinestatic |
Send a timesync message.
- Parameters
-
chan | MAVLink channel to send the message |
tc1 | Time sync timestamp 1 |
ts1 | Time sync timestamp 2 Get field tc1 from timesync message |
- Returns
- Time sync timestamp 1
Definition at line 204 of file mavlink_msg_timesync.h.
static int64_t mavlink_msg_timesync_get_ts1 |
( |
const mavlink_message_t * |
msg | ) |
|
|
inlinestatic |
static uint16_t mavlink_msg_timesync_pack |
( |
uint8_t |
system_id, |
|
|
uint8_t |
component_id, |
|
|
mavlink_message_t * |
msg, |
|
|
int64_t |
tc1, |
|
|
int64_t |
ts1 |
|
) |
| |
|
inlinestatic |
Pack a timesync message.
- Parameters
-
system_id | ID of this system |
component_id | ID of this component (e.g. 200 for IMU) |
msg | The MAVLink message to compress the data into |
tc1 | Time sync timestamp 1 |
ts1 | Time sync timestamp 2 |
- Returns
- length of the message in bytes (excluding serial stream start sign)
Definition at line 38 of file mavlink_msg_timesync.h.
static uint16_t mavlink_msg_timesync_pack_chan |
( |
uint8_t |
system_id, |
|
|
uint8_t |
component_id, |
|
|
uint8_t |
chan, |
|
|
mavlink_message_t * |
msg, |
|
|
int64_t |
tc1, |
|
|
int64_t |
ts1 |
|
) |
| |
|
inlinestatic |
Pack a timesync message on a channel.
- Parameters
-
system_id | ID of this system |
component_id | ID of this component (e.g. 200 for IMU) |
chan | The MAVLink channel this message will be sent over |
msg | The MAVLink message to compress the data into |
tc1 | Time sync timestamp 1 |
ts1 | Time sync timestamp 2 |
- Returns
- length of the message in bytes (excluding serial stream start sign)
Definition at line 73 of file mavlink_msg_timesync.h.