Classes | Macros | Typedefs | Functions
mavlink_msg_scaled_pressure.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  __mavlink_scaled_pressure_t
 

Macros

#define MAVLINK_MESSAGE_INFO_SCALED_PRESSURE
 
#define MAVLINK_MSG_ID_29_CRC   115
 
#define MAVLINK_MSG_ID_29_LEN   14
 
#define MAVLINK_MSG_ID_SCALED_PRESSURE   29
 
#define MAVLINK_MSG_ID_SCALED_PRESSURE_CRC   115
 
#define MAVLINK_MSG_ID_SCALED_PRESSURE_LEN   14
 

Typedefs

typedef struct __mavlink_scaled_pressure_t mavlink_scaled_pressure_t
 

Functions

static void mavlink_msg_scaled_pressure_decode (const mavlink_message_t *msg, mavlink_scaled_pressure_t *scaled_pressure)
 Decode a scaled_pressure message into a struct. More...
 
static uint16_t mavlink_msg_scaled_pressure_encode (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_scaled_pressure_t *scaled_pressure)
 Encode a scaled_pressure struct. More...
 
static uint16_t mavlink_msg_scaled_pressure_encode_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_scaled_pressure_t *scaled_pressure)
 Encode a scaled_pressure struct on a channel. More...
 
static float mavlink_msg_scaled_pressure_get_press_abs (const mavlink_message_t *msg)
 Get field press_abs from scaled_pressure message. More...
 
static float mavlink_msg_scaled_pressure_get_press_diff (const mavlink_message_t *msg)
 Get field press_diff from scaled_pressure message. More...
 
static int16_t mavlink_msg_scaled_pressure_get_temperature (const mavlink_message_t *msg)
 Get field temperature from scaled_pressure message. More...
 
static uint32_t mavlink_msg_scaled_pressure_get_time_boot_ms (const mavlink_message_t *msg)
 Send a scaled_pressure message. More...
 
static uint16_t mavlink_msg_scaled_pressure_pack (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint32_t time_boot_ms, float press_abs, float press_diff, int16_t temperature)
 Pack a scaled_pressure message. More...
 
static uint16_t mavlink_msg_scaled_pressure_pack_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint32_t time_boot_ms, float press_abs, float press_diff, int16_t temperature)
 Pack a scaled_pressure message on a channel. More...
 

Macro Definition Documentation

#define MAVLINK_MESSAGE_INFO_SCALED_PRESSURE
Value:
{ \
"SCALED_PRESSURE", \
4, \
{ { "time_boot_ms", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_scaled_pressure_t, time_boot_ms) }, \
{ "press_abs", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_scaled_pressure_t, press_abs) }, \
{ "press_diff", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_scaled_pressure_t, press_diff) }, \
{ "temperature", NULL, MAVLINK_TYPE_INT16_T, 0, 12, offsetof(mavlink_scaled_pressure_t, temperature) }, \
} \
}
float temperature
Definition: ms4525.c:41
#define NULL
Definition: usbd_def.h:50

Definition at line 21 of file mavlink_msg_scaled_pressure.h.

#define MAVLINK_MSG_ID_29_CRC   115

Definition at line 17 of file mavlink_msg_scaled_pressure.h.

#define MAVLINK_MSG_ID_29_LEN   14

Definition at line 14 of file mavlink_msg_scaled_pressure.h.

#define MAVLINK_MSG_ID_SCALED_PRESSURE   29

Definition at line 3 of file mavlink_msg_scaled_pressure.h.

#define MAVLINK_MSG_ID_SCALED_PRESSURE_CRC   115

Definition at line 16 of file mavlink_msg_scaled_pressure.h.

#define MAVLINK_MSG_ID_SCALED_PRESSURE_LEN   14

Definition at line 13 of file mavlink_msg_scaled_pressure.h.

Typedef Documentation

Function Documentation

static void mavlink_msg_scaled_pressure_decode ( const mavlink_message_t *  msg,
mavlink_scaled_pressure_t scaled_pressure 
)
inlinestatic

Decode a scaled_pressure message into a struct.

Parameters
msgThe message to decode
scaled_pressureC-struct to decode the message contents into

Definition at line 271 of file mavlink_msg_scaled_pressure.h.

static uint16_t mavlink_msg_scaled_pressure_encode ( uint8_t  system_id,
uint8_t  component_id,
mavlink_message_t *  msg,
const mavlink_scaled_pressure_t scaled_pressure 
)
inlinestatic

Encode a scaled_pressure struct.

Parameters
system_idID of this system
component_idID of this component (e.g. 200 for IMU)
msgThe MAVLink message to compress the data into
scaled_pressureC-struct to read the message contents from

Definition at line 123 of file mavlink_msg_scaled_pressure.h.

static uint16_t mavlink_msg_scaled_pressure_encode_chan ( uint8_t  system_id,
uint8_t  component_id,
uint8_t  chan,
mavlink_message_t *  msg,
const mavlink_scaled_pressure_t scaled_pressure 
)
inlinestatic

Encode a scaled_pressure struct on a channel.

Parameters
system_idID of this system
component_idID of this component (e.g. 200 for IMU)
chanThe MAVLink channel this message will be sent over
msgThe MAVLink message to compress the data into
scaled_pressureC-struct to read the message contents from

Definition at line 137 of file mavlink_msg_scaled_pressure.h.

static float mavlink_msg_scaled_pressure_get_press_abs ( const mavlink_message_t *  msg)
inlinestatic

Get field press_abs from scaled_pressure message.

Returns
Absolute pressure (hectopascal)

Definition at line 240 of file mavlink_msg_scaled_pressure.h.

static float mavlink_msg_scaled_pressure_get_press_diff ( const mavlink_message_t *  msg)
inlinestatic

Get field press_diff from scaled_pressure message.

Returns
Differential pressure 1 (hectopascal)

Definition at line 250 of file mavlink_msg_scaled_pressure.h.

static int16_t mavlink_msg_scaled_pressure_get_temperature ( const mavlink_message_t *  msg)
inlinestatic

Get field temperature from scaled_pressure message.

Returns
Temperature measurement (0.01 degrees celsius)

Definition at line 260 of file mavlink_msg_scaled_pressure.h.

static uint32_t mavlink_msg_scaled_pressure_get_time_boot_ms ( const mavlink_message_t *  msg)
inlinestatic

Send a scaled_pressure message.

Parameters
chanMAVLink channel to send the message
time_boot_msTimestamp (milliseconds since system boot)
press_absAbsolute pressure (hectopascal)
press_diffDifferential pressure 1 (hectopascal)
temperatureTemperature measurement (0.01 degrees celsius) Get field time_boot_ms from scaled_pressure message
Returns
Timestamp (milliseconds since system boot)

Definition at line 230 of file mavlink_msg_scaled_pressure.h.

static uint16_t mavlink_msg_scaled_pressure_pack ( uint8_t  system_id,
uint8_t  component_id,
mavlink_message_t *  msg,
uint32_t  time_boot_ms,
float  press_abs,
float  press_diff,
int16_t  temperature 
)
inlinestatic

Pack a scaled_pressure message.

Parameters
system_idID of this system
component_idID of this component (e.g. 200 for IMU)
msgThe MAVLink message to compress the data into
time_boot_msTimestamp (milliseconds since system boot)
press_absAbsolute pressure (hectopascal)
press_diffDifferential pressure 1 (hectopascal)
temperatureTemperature measurement (0.01 degrees celsius)
Returns
length of the message in bytes (excluding serial stream start sign)

Definition at line 44 of file mavlink_msg_scaled_pressure.h.

static uint16_t mavlink_msg_scaled_pressure_pack_chan ( uint8_t  system_id,
uint8_t  component_id,
uint8_t  chan,
mavlink_message_t *  msg,
uint32_t  time_boot_ms,
float  press_abs,
float  press_diff,
int16_t  temperature 
)
inlinestatic

Pack a scaled_pressure message on a channel.

Parameters
system_idID of this system
component_idID of this component (e.g. 200 for IMU)
chanThe MAVLink channel this message will be sent over
msgThe MAVLink message to compress the data into
time_boot_msTimestamp (milliseconds since system boot)
press_absAbsolute pressure (hectopascal)
press_diffDifferential pressure 1 (hectopascal)
temperatureTemperature measurement (0.01 degrees celsius)
Returns
length of the message in bytes (excluding serial stream start sign)

Definition at line 85 of file mavlink_msg_scaled_pressure.h.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 19:59:27