Go to the source code of this file.
|
static void | mavlink_msg_actuator_control_target_decode (const mavlink_message_t *msg, mavlink_actuator_control_target_t *actuator_control_target) |
| Decode a actuator_control_target message into a struct. More...
|
|
static uint16_t | mavlink_msg_actuator_control_target_encode (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_actuator_control_target_t *actuator_control_target) |
| Encode a actuator_control_target struct. More...
|
|
static uint16_t | mavlink_msg_actuator_control_target_encode_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_actuator_control_target_t *actuator_control_target) |
| Encode a actuator_control_target struct on a channel. More...
|
|
static uint16_t | mavlink_msg_actuator_control_target_get_controls (const mavlink_message_t *msg, float *controls) |
| Get field controls from actuator_control_target message. More...
|
|
static uint8_t | mavlink_msg_actuator_control_target_get_group_mlx (const mavlink_message_t *msg) |
| Get field group_mlx from actuator_control_target message. More...
|
|
static uint64_t | mavlink_msg_actuator_control_target_get_time_usec (const mavlink_message_t *msg) |
| Send a actuator_control_target message. More...
|
|
static uint16_t | mavlink_msg_actuator_control_target_pack (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint64_t time_usec, uint8_t group_mlx, const float *controls) |
| Pack a actuator_control_target message. More...
|
|
static uint16_t | mavlink_msg_actuator_control_target_pack_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint64_t time_usec, uint8_t group_mlx, const float *controls) |
| Pack a actuator_control_target message on a channel. More...
|
|
#define MAVLINK_MESSAGE_INFO_ACTUATOR_CONTROL_TARGET |
#define MAVLINK_MSG_ACTUATOR_CONTROL_TARGET_FIELD_CONTROLS_LEN 8 |
#define MAVLINK_MSG_ID_140_CRC 181 |
#define MAVLINK_MSG_ID_140_LEN 41 |
#define MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET 140 |
#define MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET_CRC 181 |
#define MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET_LEN 41 |
Decode a actuator_control_target message into a struct.
- Parameters
-
msg | The message to decode |
actuator_control_target | C-struct to decode the message contents into |
Definition at line 240 of file mavlink_msg_actuator_control_target.h.
static uint16_t mavlink_msg_actuator_control_target_encode |
( |
uint8_t |
system_id, |
|
|
uint8_t |
component_id, |
|
|
mavlink_message_t * |
msg, |
|
|
const mavlink_actuator_control_target_t * |
actuator_control_target |
|
) |
| |
|
inlinestatic |
Encode a actuator_control_target 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 |
actuator_control_target | C-struct to read the message contents from |
Definition at line 111 of file mavlink_msg_actuator_control_target.h.
static uint16_t mavlink_msg_actuator_control_target_encode_chan |
( |
uint8_t |
system_id, |
|
|
uint8_t |
component_id, |
|
|
uint8_t |
chan, |
|
|
mavlink_message_t * |
msg, |
|
|
const mavlink_actuator_control_target_t * |
actuator_control_target |
|
) |
| |
|
inlinestatic |
Encode a actuator_control_target 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 |
actuator_control_target | C-struct to read the message contents from |
Definition at line 125 of file mavlink_msg_actuator_control_target.h.
static uint16_t mavlink_msg_actuator_control_target_get_controls |
( |
const mavlink_message_t * |
msg, |
|
|
float * |
controls |
|
) |
| |
|
inlinestatic |
Get field controls from actuator_control_target message.
- Returns
- Actuator controls. Normed to -1..+1 where 0 is neutral position. Throttle for single rotation direction motors is 0..1, negative range for reverse direction. Standard mapping for attitude controls (group 0): (index 0-7): roll, pitch, yaw, throttle, flaps, spoilers, airbrakes, landing gear. Load a pass-through mixer to repurpose them as generic outputs.
Definition at line 229 of file mavlink_msg_actuator_control_target.h.
static uint8_t mavlink_msg_actuator_control_target_get_group_mlx |
( |
const mavlink_message_t * |
msg | ) |
|
|
inlinestatic |
Get field group_mlx from actuator_control_target message.
- Returns
- Actuator group. The "_mlx" indicates this is a multi-instance message and a MAVLink parser should use this field to difference between instances.
Definition at line 219 of file mavlink_msg_actuator_control_target.h.
static uint64_t mavlink_msg_actuator_control_target_get_time_usec |
( |
const mavlink_message_t * |
msg | ) |
|
|
inlinestatic |
Send a actuator_control_target message.
- Parameters
-
chan | MAVLink channel to send the message |
time_usec | Timestamp (micros since boot or Unix epoch) |
group_mlx | Actuator group. The "_mlx" indicates this is a multi-instance message and a MAVLink parser should use this field to difference between instances. |
controls | Actuator controls. Normed to -1..+1 where 0 is neutral position. Throttle for single rotation direction motors is 0..1, negative range for reverse direction. Standard mapping for attitude controls (group 0): (index 0-7): roll, pitch, yaw, throttle, flaps, spoilers, airbrakes, landing gear. Load a pass-through mixer to repurpose them as generic outputs. Get field time_usec from actuator_control_target message |
- Returns
- Timestamp (micros since boot or Unix epoch)
Definition at line 209 of file mavlink_msg_actuator_control_target.h.
static uint16_t mavlink_msg_actuator_control_target_pack |
( |
uint8_t |
system_id, |
|
|
uint8_t |
component_id, |
|
|
mavlink_message_t * |
msg, |
|
|
uint64_t |
time_usec, |
|
|
uint8_t |
group_mlx, |
|
|
const float * |
controls |
|
) |
| |
|
inlinestatic |
Pack a actuator_control_target 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 |
time_usec | Timestamp (micros since boot or Unix epoch) |
group_mlx | Actuator group. The "_mlx" indicates this is a multi-instance message and a MAVLink parser should use this field to difference between instances. |
controls | Actuator controls. Normed to -1..+1 where 0 is neutral position. Throttle for single rotation direction motors is 0..1, negative range for reverse direction. Standard mapping for attitude controls (group 0): (index 0-7): roll, pitch, yaw, throttle, flaps, spoilers, airbrakes, landing gear. Load a pass-through mixer to repurpose them as generic outputs. |
- Returns
- length of the message in bytes (excluding serial stream start sign)
Definition at line 41 of file mavlink_msg_actuator_control_target.h.
static uint16_t mavlink_msg_actuator_control_target_pack_chan |
( |
uint8_t |
system_id, |
|
|
uint8_t |
component_id, |
|
|
uint8_t |
chan, |
|
|
mavlink_message_t * |
msg, |
|
|
uint64_t |
time_usec, |
|
|
uint8_t |
group_mlx, |
|
|
const float * |
controls |
|
) |
| |
|
inlinestatic |
Pack a actuator_control_target 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 |
time_usec | Timestamp (micros since boot or Unix epoch) |
group_mlx | Actuator group. The "_mlx" indicates this is a multi-instance message and a MAVLink parser should use this field to difference between instances. |
controls | Actuator controls. Normed to -1..+1 where 0 is neutral position. Throttle for single rotation direction motors is 0..1, negative range for reverse direction. Standard mapping for attitude controls (group 0): (index 0-7): roll, pitch, yaw, throttle, flaps, spoilers, airbrakes, landing gear. Load a pass-through mixer to repurpose them as generic outputs. |
- Returns
- length of the message in bytes (excluding serial stream start sign)
Definition at line 77 of file mavlink_msg_actuator_control_target.h.