STM32/mavlink/Lattepanda_shiled/mavlink_msg_kelvin_calibration_data.h
/*
  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_kelvin_calibration_data_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan,  const float *Gain_Kelvin, const float *Offset_Kelvin)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
	char *buf = (char *)msgbuf;
	_mav_put_float_array(buf, 0, Gain_Kelvin, 2);
	_mav_put_float_array(buf, 8, Offset_Kelvin, 2);
    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data, buf, MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data_MIN_LEN, MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data_LEN, MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data_CRC);
#else
	mavlink_kelvin_calibration_data_t *packet = (mavlink_kelvin_calibration_data_t *)msgbuf;
	mav_array_memcpy(packet->Gain_Kelvin, Gain_Kelvin, sizeof(float)*2);
	mav_array_memcpy(packet->Offset_Kelvin, Offset_Kelvin, sizeof(float)*2);
    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data, (const char *)packet, MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data_MIN_LEN, MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data_LEN, MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data_CRC);
#endif
}
static inline void mavlink_msg_kelvin_calibration_data_send_buf ( mavlink_message_t * msgbuf , mavlink_channel_t chan , const float * Gain_Kelvin , const float * Offset_Kelvin ) { #if MAVLINK_NEED_BYTE_SWAP || ! MAVLINK_ALIGNED_FIELDS char * buf = ( char * ) msgbuf ; _mav_put_float_array ( buf , 0 , Gain_Kelvin , 2 ) ; _mav_put_float_array ( buf , 8 , Offset_Kelvin , 2 ) ; _mav_finalize_message_chan_send ( chan , MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data , buf , MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data_MIN_LEN , MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data_LEN , MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data_CRC ) ; #else mavlink_kelvin_calibration_data_t * packet = ( mavlink_kelvin_calibration_data_t * ) msgbuf ; mav_array_memcpy ( packet -> Gain_Kelvin , Gain_Kelvin , sizeof ( float ) * 2 ) ; mav_array_memcpy ( packet -> Offset_Kelvin , Offset_Kelvin , sizeof ( float ) * 2 ) ; _mav_finalize_message_chan_send ( chan , MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data , ( const char * ) packet , MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data_MIN_LEN , MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data_LEN , MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data_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 .