STM32/mavlink/Lattepanda_shiled/mavlink_msg_kelvin_calibration_data.h
/**
 * @brief Decode a kelvin_calibration_data message into a struct
 *
 * @param msg The message to decode
 * @param kelvin_calibration_data C-struct to decode the message contents into
 */
@brief Decode a kelvin_calibration_data message into a struct
@param msg The message to decode
@param kelvin_calibration_data C-struct to decode the message contents into
@brief Decode a kelvin_calibration_data message into a struct @param msg The message to decode @param kelvin_calibration_data C - struct to decode the message contents into
static inline void mavlink_msg_kelvin_calibration_data_decode(const mavlink_message_t* msg, mavlink_kelvin_calibration_data_t* kelvin_calibration_data)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
	mavlink_msg_kelvin_calibration_data_get_Gain_Kelvin(msg, kelvin_calibration_data->Gain_Kelvin);
	mavlink_msg_kelvin_calibration_data_get_Offset_Kelvin(msg, kelvin_calibration_data->Offset_Kelvin);
#else
        uint8_t len = msg->len < MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data_LEN? msg->len : MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data_LEN;
        memset(kelvin_calibration_data, 0, MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data_LEN);
	memcpy(kelvin_calibration_data, _MAV_PAYLOAD(msg), len);
#endif
}
static inline void mavlink_msg_kelvin_calibration_data_decode ( const mavlink_message_t * msg , mavlink_kelvin_calibration_data_t * kelvin_calibration_data ) { #if MAVLINK_NEED_BYTE_SWAP || ! MAVLINK_ALIGNED_FIELDS mavlink_msg_kelvin_calibration_data_get_Gain_Kelvin ( msg , kelvin_calibration_data -> Gain_Kelvin ) ; mavlink_msg_kelvin_calibration_data_get_Offset_Kelvin ( msg , kelvin_calibration_data -> Offset_Kelvin ) ; #else uint8_t len = msg -> len < MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data_LEN ? msg -> len : MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data_LEN ; memset ( kelvin_calibration_data , 0 , MAVLINK_MSG_ID_Kelvin_CALIBRATION_Data_LEN ) ; memcpy ( kelvin_calibration_data , _MAV_PAYLOAD ( msg ) , len ) ; #endif }
@brief Decode a kelvin_calibration_data message into a struct
 @param msg The message to decode
 @param kelvin_calibration_data C-struct to decode the message contents into
@brief Decode a kelvin_calibration_data message into a struct @param msg The message to decode @param kelvin_calibration_data C - struct to decode the message contents into