Firmware/src/communication/mavlink/mav_home/mavlink_msg_mav_temperature_values.h
static inline void mavlink_msg_mav_temperature_values_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan,  float temp1, float temp2, float temp3)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
    char *buf = (char *)msgbuf;
    _mav_put_float(buf, 0, temp1);
    _mav_put_float(buf, 4, temp2);
    _mav_put_float(buf, 8, temp3);

    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES, buf, MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_MIN_LEN, MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_LEN, MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_CRC);
#else
    mavlink_mav_temperature_values_t *packet = (mavlink_mav_temperature_values_t *)msgbuf;
    packet->temp1 = temp1;
    packet->temp2 = temp2;
    packet->temp3 = temp3;

    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES, (const char *)packet, MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_MIN_LEN, MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_LEN, MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_CRC);
#endif
}
/*
  This varient of _send() can be used to save stack space by re-using
  memory from the receive buffer.  The caller provides a
  mavlink_message_t which is the size of a full mavlink message. This
  is usually the receive buffer for the channel, and allows a reply to an
  incoming message with minimum stack space usage.
 */
This varient of _send() can be used to save stack space by re-using
memory from the receive buffer.  The caller provides a
mavlink_message_t which is the size of a full mavlink message. This
is usually the receive buffer for the channel, and allows a reply to an
incoming message with minimum stack space usage.
This varient of _send () can be used to save stack space by re - using memory from the receive buffer . The caller provides a mavlink_message_t which is the size of a full mavlink message . This is usually the receive buffer for the channel and allows a reply to an incoming message with minimum stack space usage .
static inline void mavlink_msg_mav_temperature_values_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan,  float temp1, float temp2, float temp3)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
    char *buf = (char *)msgbuf;
    _mav_put_float(buf, 0, temp1);
    _mav_put_float(buf, 4, temp2);
    _mav_put_float(buf, 8, temp3);
    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES, buf, MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_MIN_LEN, MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_LEN, MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_CRC);
#else
    mavlink_mav_temperature_values_t *packet = (mavlink_mav_temperature_values_t *)msgbuf;
    packet->temp1 = temp1;
    packet->temp2 = temp2;
    packet->temp3 = temp3;
    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES, (const char *)packet, MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_MIN_LEN, MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_LEN, MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_CRC);
#endif
}
static inline void mavlink_msg_mav_temperature_values_send_buf ( mavlink_message_t * msgbuf , mavlink_channel_t chan , float temp1 , float temp2 , float temp3 ) { #if MAVLINK_NEED_BYTE_SWAP || ! MAVLINK_ALIGNED_FIELDS char * buf = ( char * ) msgbuf ; _mav_put_float ( buf , 0 , temp1 ) ; _mav_put_float ( buf , 4 , temp2 ) ; _mav_put_float ( buf , 8 , temp3 ) ; _mav_finalize_message_chan_send ( chan , MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES , buf , MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_MIN_LEN , MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_LEN , MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_CRC ) ; #else mavlink_mav_temperature_values_t * packet = ( mavlink_mav_temperature_values_t * ) msgbuf ; packet -> temp1 = temp1 ; packet -> temp2 = temp2 ; packet -> temp3 = temp3 ; _mav_finalize_message_chan_send ( chan , MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES , ( const char * ) packet , MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_MIN_LEN , MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_LEN , MAVLINK_MSG_ID_MAV_TEMPERATURE_VALUES_CRC ) ; #endif }
This varient of _send() can be used to save stack space by re-using
memory from the receive buffer.
This varient of _send () can be used to save stack space by re - using memory from the receive buffer .