STM32/mavlink/Lattepanda_shiled/mavlink_msg_kelvin_calibration_data.h
/**
 * @brief Pack a kelvin_calibration_data 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 Gain_Kelvin  Kelvin gain 
 * @param Offset_Kelvin  Kelvin offset 
 * @return length of the message in bytes (excluding serial stream start sign)
 */
@brief Pack a kelvin_calibration_data 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 Gain_Kelvin  Kelvin gain
@param Offset_Kelvin  Kelvin offset
@return length of the message in bytes (excluding serial stream start sign)
@brief Pack a kelvin_calibration_data 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 Gain_Kelvin Kelvin gain @param Offset_Kelvin Kelvin offset @return length of the message in bytes ( excluding serial stream start sign )
static inline uint16_t mavlink_msg_kelvin_calibration_data_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
						       const float *Gain_Kelvin, const float *Offset_Kelvin)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
	char buf[MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data_LEN];
	_mav_put_float_array(buf, 0, Gain_Kelvin, 2);
	_mav_put_float_array(buf, 8, Offset_Kelvin, 2);
        memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data_LEN);
#else
	mavlink_kelvin_calibration_data_t packet;
	mav_array_memcpy(packet.Gain_Kelvin, Gain_Kelvin, sizeof(float)*2);
	mav_array_memcpy(packet.Offset_Kelvin, Offset_Kelvin, sizeof(float)*2);
        memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data_LEN);
#endif
	msg->msgid = MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data;
    return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data_MIN_LEN, MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data_LEN, MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data_CRC);
}
static inline uint16_t mavlink_msg_kelvin_calibration_data_pack ( uint8_t system_id , uint8_t component_id , mavlink_message_t * msg , const float * Gain_Kelvin , const float * Offset_Kelvin ) { #if MAVLINK_NEED_BYTE_SWAP || ! MAVLINK_ALIGNED_FIELDS char buf [ MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data_LEN ] ; _mav_put_float_array ( buf , 0 , Gain_Kelvin , 2 ) ; _mav_put_float_array ( buf , 8 , Offset_Kelvin , 2 ) ; memcpy ( _MAV_PAYLOAD_NON_CONST ( msg ) , buf , MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data_LEN ) ; #else mavlink_kelvin_calibration_data_t packet ; mav_array_memcpy ( packet . Gain_Kelvin , Gain_Kelvin , sizeof ( float ) * 2 ) ; mav_array_memcpy ( packet . Offset_Kelvin , Offset_Kelvin , sizeof ( float ) * 2 ) ; memcpy ( _MAV_PAYLOAD_NON_CONST ( msg ) , & packet , MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data_LEN ) ; #endif msg -> msgid = MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data ; return mavlink_finalize_message ( msg , system_id , component_id , MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data_MIN_LEN , MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data_LEN , MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data_CRC ) ; }
@brief Pack a kelvin_calibration_data message
 @param system_id ID of this system
 @param component_id ID of this component (e.g.
@brief Pack a kelvin_calibration_data message @param system_id ID of this system @param component_id ID of this component ( e . g .