Firmware/src/communication/mavlink/mav_home/mavlink_msg_mav_temperature_values.h
static inline uint16_t mavlink_msg_mav_temperature_values_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
                               float temp1, float temp2, float temp3)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
    char buf[MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_LEN];
    _mav_put_float(buf, 0, temp1);
    _mav_put_float(buf, 4, temp2);
    _mav_put_float(buf, 8, temp3);

        memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_LEN);
#else
    mavlink_mav_temperature_values_t packet;
    packet.temp1 = temp1;
    packet.temp2 = temp2;
    packet.temp3 = temp3;

        memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_LEN);
#endif

    msg->msgid = MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES;
    return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_MIN_LEN, MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_LEN, MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_CRC);
}
/**
 * @brief Pack a mav_temperature_values message
 * @param system_id ID of this system
 * @param component_id ID of this component (e.g. 200 for IMU)
 * @param msg The MAVLink message to compress the data into
 *
 * @param temp1 Temperature 1
 * @param temp2 Temperature 2
 * @param temp3 Temperature 3
 * @return length of the message in bytes (excluding serial stream start sign)
 */
@brief Pack a mav_temperature_values message
@param system_id ID of this system
@param component_id ID of this component
@param msg The MAVLink message to compress the data into

@param temp1 Temperature 1
@param temp2 Temperature 2
@param temp3 Temperature 3
@return length of the message in bytes (excluding serial stream start sign)
@brief Pack a mav_temperature_values message @param system_id ID of this system @param component_id ID of this component @param msg The MAVLink message to compress the data into @param temp1 Temperature 1 @param temp2 Temperature 2 @param temp3 Temperature 3 @return length of the message in bytes ( excluding serial stream start sign )
static inline uint16_t mavlink_msg_mav_temperature_values_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
                               float temp1, float temp2, float temp3)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
    char buf[MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_LEN];
    _mav_put_float(buf, 0, temp1);
    _mav_put_float(buf, 4, temp2);
    _mav_put_float(buf, 8, temp3);
        memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_LEN);
#else
    mavlink_mav_temperature_values_t packet;
    packet.temp1 = temp1;
    packet.temp2 = temp2;
    packet.temp3 = temp3;
        memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_LEN);
#endif
    msg->msgid = MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES;
    return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_MIN_LEN, MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_LEN, MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_CRC);
}
static inline uint16_t mavlink_msg_mav_temperature_values_pack ( uint8_t system_id , uint8_t component_id , mavlink_message_t * msg , float temp1 , float temp2 , float temp3 ) { #if MAVLINK_NEED_BYTE_SWAP || ! MAVLINK_ALIGNED_FIELDS char buf [ MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_LEN ] ; _mav_put_float ( buf , 0 , temp1 ) ; _mav_put_float ( buf , 4 , temp2 ) ; _mav_put_float ( buf , 8 , temp3 ) ; memcpy ( _MAV_PAYLOAD_NON_CONST ( msg ) , buf , MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_LEN ) ; #else mavlink_mav_temperature_values_t packet ; packet . temp1 = temp1 ; packet . temp2 = temp2 ; packet . temp3 = temp3 ; memcpy ( _MAV_PAYLOAD_NON_CONST ( msg ) , & packet , MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_LEN ) ; #endif msg -> msgid = MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES ; return mavlink_finalize_message ( msg , system_id , component_id , MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_MIN_LEN , MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_LEN , MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_CRC ) ; }
@brief Pack a mav_temperature_values message
 @param system_id ID of this system
 @param component_id ID of this component (e.g.
@brief Pack a mav_temperature_values message @param system_id ID of this system @param component_id ID of this component ( e . g .