3 #define MAVLINK_MSG_ID_GIMBAL_SET_FACTORY_PARAMETERS 206
23 #define MAVLINK_MSG_ID_GIMBAL_SET_FACTORY_PARAMETERS_LEN 33
24 #define MAVLINK_MSG_ID_206_LEN 33
26 #define MAVLINK_MSG_ID_GIMBAL_SET_FACTORY_PARAMETERS_CRC 112
27 #define MAVLINK_MSG_ID_206_CRC 112
31 #define MAVLINK_MESSAGE_INFO_GIMBAL_SET_FACTORY_PARAMETERS { \
32 "GIMBAL_SET_FACTORY_PARAMETERS", \
34 { { "magic_1", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_gimbal_set_factory_parameters_t, magic_1) }, \
35 { "magic_2", NULL, MAVLINK_TYPE_UINT32_T, 0, 4, offsetof(mavlink_gimbal_set_factory_parameters_t, magic_2) }, \
36 { "magic_3", NULL, MAVLINK_TYPE_UINT32_T, 0, 8, offsetof(mavlink_gimbal_set_factory_parameters_t, magic_3) }, \
37 { "serial_number_pt_1", NULL, MAVLINK_TYPE_UINT32_T, 0, 12, offsetof(mavlink_gimbal_set_factory_parameters_t, serial_number_pt_1) }, \
38 { "serial_number_pt_2", NULL, MAVLINK_TYPE_UINT32_T, 0, 16, offsetof(mavlink_gimbal_set_factory_parameters_t, serial_number_pt_2) }, \
39 { "serial_number_pt_3", NULL, MAVLINK_TYPE_UINT32_T, 0, 20, offsetof(mavlink_gimbal_set_factory_parameters_t, serial_number_pt_3) }, \
40 { "assembly_year", NULL, MAVLINK_TYPE_UINT16_T, 0, 24, offsetof(mavlink_gimbal_set_factory_parameters_t, assembly_year) }, \
41 { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 26, offsetof(mavlink_gimbal_set_factory_parameters_t, target_system) }, \
42 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 27, offsetof(mavlink_gimbal_set_factory_parameters_t, target_component) }, \
43 { "assembly_month", NULL, MAVLINK_TYPE_UINT8_T, 0, 28, offsetof(mavlink_gimbal_set_factory_parameters_t, assembly_month) }, \
44 { "assembly_day", NULL, MAVLINK_TYPE_UINT8_T, 0, 29, offsetof(mavlink_gimbal_set_factory_parameters_t, assembly_day) }, \
45 { "assembly_hour", NULL, MAVLINK_TYPE_UINT8_T, 0, 30, offsetof(mavlink_gimbal_set_factory_parameters_t, assembly_hour) }, \
46 { "assembly_minute", NULL, MAVLINK_TYPE_UINT8_T, 0, 31, offsetof(mavlink_gimbal_set_factory_parameters_t, assembly_minute) }, \
47 { "assembly_second", NULL, MAVLINK_TYPE_UINT8_T, 0, 32, offsetof(mavlink_gimbal_set_factory_parameters_t, assembly_second) }, \
74 static inline uint16_t mavlink_msg_gimbal_set_factory_parameters_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
75 uint8_t target_system, uint8_t target_component, uint32_t magic_1, uint32_t magic_2, uint32_t magic_3, uint16_t assembly_year, uint8_t assembly_month, uint8_t assembly_day, uint8_t assembly_hour, uint8_t assembly_minute, uint8_t assembly_second, uint32_t serial_number_pt_1, uint32_t serial_number_pt_2, uint32_t serial_number_pt_3)
77 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
116 #if MAVLINK_CRC_EXTRA
145 static inline uint16_t mavlink_msg_gimbal_set_factory_parameters_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
146 mavlink_message_t* msg,
147 uint8_t target_system,uint8_t target_component,uint32_t magic_1,uint32_t magic_2,uint32_t magic_3,uint16_t assembly_year,uint8_t assembly_month,uint8_t assembly_day,uint8_t assembly_hour,uint8_t assembly_minute,uint8_t assembly_second,uint32_t serial_number_pt_1,uint32_t serial_number_pt_2,uint32_t serial_number_pt_3)
149 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
188 #if MAVLINK_CRC_EXTRA
203 static inline uint16_t mavlink_msg_gimbal_set_factory_parameters_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_gimbal_set_factory_parameters_t* gimbal_set_factory_parameters)
205 return mavlink_msg_gimbal_set_factory_parameters_pack(system_id, component_id, msg, gimbal_set_factory_parameters->
target_system, gimbal_set_factory_parameters->
target_component, gimbal_set_factory_parameters->
magic_1, gimbal_set_factory_parameters->
magic_2, gimbal_set_factory_parameters->
magic_3, gimbal_set_factory_parameters->
assembly_year, gimbal_set_factory_parameters->
assembly_month, gimbal_set_factory_parameters->
assembly_day, gimbal_set_factory_parameters->
assembly_hour, gimbal_set_factory_parameters->
assembly_minute, gimbal_set_factory_parameters->
assembly_second, gimbal_set_factory_parameters->
serial_number_pt_1, gimbal_set_factory_parameters->
serial_number_pt_2, gimbal_set_factory_parameters->
serial_number_pt_3);
217 static inline uint16_t mavlink_msg_gimbal_set_factory_parameters_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_gimbal_set_factory_parameters_t* gimbal_set_factory_parameters)
219 return mavlink_msg_gimbal_set_factory_parameters_pack_chan(system_id, component_id, chan, msg, gimbal_set_factory_parameters->
target_system, gimbal_set_factory_parameters->
target_component, gimbal_set_factory_parameters->
magic_1, gimbal_set_factory_parameters->
magic_2, gimbal_set_factory_parameters->
magic_3, gimbal_set_factory_parameters->
assembly_year, gimbal_set_factory_parameters->
assembly_month, gimbal_set_factory_parameters->
assembly_day, gimbal_set_factory_parameters->
assembly_hour, gimbal_set_factory_parameters->
assembly_minute, gimbal_set_factory_parameters->
assembly_second, gimbal_set_factory_parameters->
serial_number_pt_1, gimbal_set_factory_parameters->
serial_number_pt_2, gimbal_set_factory_parameters->
serial_number_pt_3);
241 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
243 static inline void mavlink_msg_gimbal_set_factory_parameters_send(
mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint32_t magic_1, uint32_t magic_2, uint32_t magic_3, uint16_t assembly_year, uint8_t assembly_month, uint8_t assembly_day, uint8_t assembly_hour, uint8_t assembly_minute, uint8_t assembly_second, uint32_t serial_number_pt_1, uint32_t serial_number_pt_2, uint32_t serial_number_pt_3)
245 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
262 #if MAVLINK_CRC_EXTRA
284 #if MAVLINK_CRC_EXTRA
292 #if MAVLINK_MSG_ID_GIMBAL_SET_FACTORY_PARAMETERS_LEN <= MAVLINK_MAX_PAYLOAD_LEN
300 static inline void mavlink_msg_gimbal_set_factory_parameters_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint32_t magic_1, uint32_t magic_2, uint32_t magic_3, uint16_t assembly_year, uint8_t assembly_month, uint8_t assembly_day, uint8_t assembly_hour, uint8_t assembly_minute, uint8_t assembly_second, uint32_t serial_number_pt_1, uint32_t serial_number_pt_2, uint32_t serial_number_pt_3)
302 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
303 char *buf = (
char *)msgbuf;
319 #if MAVLINK_CRC_EXTRA
341 #if MAVLINK_CRC_EXTRA
360 static inline uint8_t mavlink_msg_gimbal_set_factory_parameters_get_target_system(
const mavlink_message_t* msg)
370 static inline uint8_t mavlink_msg_gimbal_set_factory_parameters_get_target_component(
const mavlink_message_t* msg)
380 static inline uint32_t mavlink_msg_gimbal_set_factory_parameters_get_magic_1(
const mavlink_message_t* msg)
382 return _MAV_RETURN_uint32_t(msg, 0);
390 static inline uint32_t mavlink_msg_gimbal_set_factory_parameters_get_magic_2(
const mavlink_message_t* msg)
392 return _MAV_RETURN_uint32_t(msg, 4);
400 static inline uint32_t mavlink_msg_gimbal_set_factory_parameters_get_magic_3(
const mavlink_message_t* msg)
402 return _MAV_RETURN_uint32_t(msg, 8);
410 static inline uint16_t mavlink_msg_gimbal_set_factory_parameters_get_assembly_year(
const mavlink_message_t* msg)
412 return _MAV_RETURN_uint16_t(msg, 24);
420 static inline uint8_t mavlink_msg_gimbal_set_factory_parameters_get_assembly_month(
const mavlink_message_t* msg)
430 static inline uint8_t mavlink_msg_gimbal_set_factory_parameters_get_assembly_day(
const mavlink_message_t* msg)
440 static inline uint8_t mavlink_msg_gimbal_set_factory_parameters_get_assembly_hour(
const mavlink_message_t* msg)
450 static inline uint8_t mavlink_msg_gimbal_set_factory_parameters_get_assembly_minute(
const mavlink_message_t* msg)
460 static inline uint8_t mavlink_msg_gimbal_set_factory_parameters_get_assembly_second(
const mavlink_message_t* msg)
470 static inline uint32_t mavlink_msg_gimbal_set_factory_parameters_get_serial_number_pt_1(
const mavlink_message_t* msg)
472 return _MAV_RETURN_uint32_t(msg, 12);
480 static inline uint32_t mavlink_msg_gimbal_set_factory_parameters_get_serial_number_pt_2(
const mavlink_message_t* msg)
482 return _MAV_RETURN_uint32_t(msg, 16);
490 static inline uint32_t mavlink_msg_gimbal_set_factory_parameters_get_serial_number_pt_3(
const mavlink_message_t* msg)
492 return _MAV_RETURN_uint32_t(msg, 20);
503 #if MAVLINK_NEED_BYTE_SWAP
504 gimbal_set_factory_parameters->
magic_1 = mavlink_msg_gimbal_set_factory_parameters_get_magic_1(msg);
505 gimbal_set_factory_parameters->
magic_2 = mavlink_msg_gimbal_set_factory_parameters_get_magic_2(msg);
506 gimbal_set_factory_parameters->
magic_3 = mavlink_msg_gimbal_set_factory_parameters_get_magic_3(msg);
507 gimbal_set_factory_parameters->
serial_number_pt_1 = mavlink_msg_gimbal_set_factory_parameters_get_serial_number_pt_1(msg);
508 gimbal_set_factory_parameters->
serial_number_pt_2 = mavlink_msg_gimbal_set_factory_parameters_get_serial_number_pt_2(msg);
509 gimbal_set_factory_parameters->
serial_number_pt_3 = mavlink_msg_gimbal_set_factory_parameters_get_serial_number_pt_3(msg);
510 gimbal_set_factory_parameters->
assembly_year = mavlink_msg_gimbal_set_factory_parameters_get_assembly_year(msg);
511 gimbal_set_factory_parameters->
target_system = mavlink_msg_gimbal_set_factory_parameters_get_target_system(msg);
512 gimbal_set_factory_parameters->
target_component = mavlink_msg_gimbal_set_factory_parameters_get_target_component(msg);
513 gimbal_set_factory_parameters->
assembly_month = mavlink_msg_gimbal_set_factory_parameters_get_assembly_month(msg);
514 gimbal_set_factory_parameters->
assembly_day = mavlink_msg_gimbal_set_factory_parameters_get_assembly_day(msg);
515 gimbal_set_factory_parameters->
assembly_hour = mavlink_msg_gimbal_set_factory_parameters_get_assembly_hour(msg);
516 gimbal_set_factory_parameters->
assembly_minute = mavlink_msg_gimbal_set_factory_parameters_get_assembly_minute(msg);
517 gimbal_set_factory_parameters->
assembly_second = mavlink_msg_gimbal_set_factory_parameters_get_assembly_second(msg);
Definition: mavlink_msg_gimbal_set_factory_parameters.h:5
uint8_t assembly_month
Assembly Date Month.
Definition: mavlink_msg_gimbal_set_factory_parameters.h:16
#define _MAV_RETURN_uint8_t(msg, wire_offset)
Definition: protocol.h:238
uint8_t target_component
Component ID.
Definition: mavlink_msg_gimbal_set_factory_parameters.h:15
uint8_t assembly_second
Assembly Time Second.
Definition: mavlink_msg_gimbal_set_factory_parameters.h:20
uint32_t magic_2
Magic number 2 for validation.
Definition: mavlink_msg_gimbal_set_factory_parameters.h:8
MAVLINK_HELPER uint16_t mavlink_finalize_message(mavlink_message_t *msg, uint8_t system_id, uint8_t component_id, uint8_t length)
Finalize a MAVLink message with MAVLINK_COMM_0 as default channel.
Definition: mavlink_helpers.h:105
#define MAVLINK_MSG_ID_GIMBAL_SET_FACTORY_PARAMETERS_CRC
Definition: mavlink_msg_gimbal_set_factory_parameters.h:26
#define _mav_put_uint8_t(buf, wire_offset, b)
Definition: protocol.h:134
#define _MAV_PAYLOAD_NON_CONST(msg)
Definition: mavlink_types.h:172
uint8_t assembly_minute
Assembly Time Minute.
Definition: mavlink_msg_gimbal_set_factory_parameters.h:19
uint32_t serial_number_pt_1
Unit Serial Number Part 1 (part code, design, language/country)
Definition: mavlink_msg_gimbal_set_factory_parameters.h:10
mavlink_channel_t
Definition: mavlink_types.h:178
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
uint32_t magic_3
Magic number 3 for validation.
Definition: mavlink_msg_gimbal_set_factory_parameters.h:9
uint32_t magic_1
Magic number 1 for validation.
Definition: mavlink_msg_gimbal_set_factory_parameters.h:7
#define MAVLINK_MSG_ID_GIMBAL_SET_FACTORY_PARAMETERS_LEN
Definition: mavlink_msg_gimbal_set_factory_parameters.h:23
uint32_t serial_number_pt_3
Unit Serial Number Part 3 (incrementing serial number per month)
Definition: mavlink_msg_gimbal_set_factory_parameters.h:12
uint32_t serial_number_pt_2
Unit Serial Number Part 2 (option, year, month)
Definition: mavlink_msg_gimbal_set_factory_parameters.h:11
uint16_t assembly_year
Assembly Date Year.
Definition: mavlink_msg_gimbal_set_factory_parameters.h:13
uint8_t target_system
System ID.
Definition: mavlink_msg_gimbal_set_factory_parameters.h:14
#define _mav_put_uint16_t(buf, wire_offset, b)
Definition: protocol.h:139
#define MAVLINK_MSG_ID_GIMBAL_SET_FACTORY_PARAMETERS
Definition: mavlink_msg_gimbal_set_factory_parameters.h:3
uint8_t assembly_hour
Assembly Time Hour.
Definition: mavlink_msg_gimbal_set_factory_parameters.h:18
MAVLINK_HELPER uint16_t mavlink_finalize_message_chan(mavlink_message_t *msg, uint8_t system_id, uint8_t component_id, uint8_t chan, uint8_t length)
Finalize a MAVLink message with channel assignment.
Definition: mavlink_helpers.h:71
uint8_t assembly_day
Assembly Date Day.
Definition: mavlink_msg_gimbal_set_factory_parameters.h:17
struct __mavlink_gimbal_set_factory_parameters_t mavlink_gimbal_set_factory_parameters_t
#define _mav_put_uint32_t(buf, wire_offset, b)
Definition: protocol.h:141