Firmware/src/communication/mavlink/mav_home/mavlink_msg_mav_temperature_values.h
static inline void mavlink_msg_mav_temperature_values_decode(const mavlink_message_t* msg, mavlink_mav_temperature_values_t* mav_temperature_values)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
    mav_temperature_values->temp1 = mavlink_msg_mav_temperature_values_get_temp1(msg);
    mav_temperature_values->temp2 = mavlink_msg_mav_temperature_values_get_temp2(msg);
    mav_temperature_values->temp3 = mavlink_msg_mav_temperature_values_get_temp3(msg);
#else
        uint8_t len = msg->len < MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_LEN? msg->len : MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_LEN;
        memset(mav_temperature_values, 0, MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_LEN);
    memcpy(mav_temperature_values, _MAV_PAYLOAD(msg), len);
#endif
}
/**
 * @brief Decode a mav_temperature_values message into a struct
 *
 * @param msg The message to decode
 * @param mav_temperature_values C-struct to decode the message contents into
 */
@brief Decode a mav_temperature_values message into a struct
@param msg The message to decode
@param mav_temperature_values C-struct to decode the message contents into
@brief Decode a mav_temperature_values message into a struct @param msg The message to decode @param mav_temperature_values C - struct to decode the message contents into
static inline void mavlink_msg_mav_temperature_values_decode(const mavlink_message_t* msg, mavlink_mav_temperature_values_t* mav_temperature_values)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
    mav_temperature_values->temp1 = mavlink_msg_mav_temperature_values_get_temp1(msg);
    mav_temperature_values->temp2 = mavlink_msg_mav_temperature_values_get_temp2(msg);
    mav_temperature_values->temp3 = mavlink_msg_mav_temperature_values_get_temp3(msg);
#else
        uint8_t len = msg->len < MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_LEN? msg->len : MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_LEN;
        memset(mav_temperature_values, 0, MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_LEN);
    memcpy(mav_temperature_values, _MAV_PAYLOAD(msg), len);
#endif
}
static inline void mavlink_msg_mav_temperature_values_decode ( const mavlink_message_t * msg , mavlink_mav_temperature_values_t * mav_temperature_values ) { #if MAVLINK_NEED_BYTE_SWAP || ! MAVLINK_ALIGNED_FIELDS mav_temperature_values -> temp1 = mavlink_msg_mav_temperature_values_get_temp1 ( msg ) ; mav_temperature_values -> temp2 = mavlink_msg_mav_temperature_values_get_temp2 ( msg ) ; mav_temperature_values -> temp3 = mavlink_msg_mav_temperature_values_get_temp3 ( msg ) ; #else uint8_t len = msg -> len < MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_LEN ? msg -> len : MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_LEN ; memset ( mav_temperature_values , 0 , MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_LEN ) ; memcpy ( mav_temperature_values , _MAV_PAYLOAD ( msg ) , len ) ; #endif }
@brief Decode a mav_temperature_values message into a struct
 @param msg The message to decode
 @param mav_temperature_values C-struct to decode the message contents into
@brief Decode a mav_temperature_values message into a struct @param msg The message to decode @param mav_temperature_values C - struct to decode the message contents into