3 #define MAVLINK_MSG_ID_SENS_MPPT 202
22 #define MAVLINK_MSG_ID_SENS_MPPT_LEN 41
23 #define MAVLINK_MSG_ID_202_LEN 41
25 #define MAVLINK_MSG_ID_SENS_MPPT_CRC 231
26 #define MAVLINK_MSG_ID_202_CRC 231
30 #define MAVLINK_MESSAGE_INFO_SENS_MPPT { \
33 { { "mppt_timestamp", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_sens_mppt_t, mppt_timestamp) }, \
34 { "mppt1_volt", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_sens_mppt_t, mppt1_volt) }, \
35 { "mppt1_amp", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_sens_mppt_t, mppt1_amp) }, \
36 { "mppt2_volt", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_sens_mppt_t, mppt2_volt) }, \
37 { "mppt2_amp", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_sens_mppt_t, mppt2_amp) }, \
38 { "mppt3_volt", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_sens_mppt_t, mppt3_volt) }, \
39 { "mppt3_amp", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_sens_mppt_t, mppt3_amp) }, \
40 { "mppt1_pwm", NULL, MAVLINK_TYPE_UINT16_T, 0, 32, offsetof(mavlink_sens_mppt_t, mppt1_pwm) }, \
41 { "mppt2_pwm", NULL, MAVLINK_TYPE_UINT16_T, 0, 34, offsetof(mavlink_sens_mppt_t, mppt2_pwm) }, \
42 { "mppt3_pwm", NULL, MAVLINK_TYPE_UINT16_T, 0, 36, offsetof(mavlink_sens_mppt_t, mppt3_pwm) }, \
43 { "mppt1_status", NULL, MAVLINK_TYPE_UINT8_T, 0, 38, offsetof(mavlink_sens_mppt_t, mppt1_status) }, \
44 { "mppt2_status", NULL, MAVLINK_TYPE_UINT8_T, 0, 39, offsetof(mavlink_sens_mppt_t, mppt2_status) }, \
45 { "mppt3_status", NULL, MAVLINK_TYPE_UINT8_T, 0, 40, offsetof(mavlink_sens_mppt_t, mppt3_status) }, \
71 static inline uint16_t mavlink_msg_sens_mppt_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
72 uint64_t mppt_timestamp,
float mppt1_volt,
float mppt1_amp, uint16_t mppt1_pwm, uint8_t mppt1_status,
float mppt2_volt,
float mppt2_amp, uint16_t mppt2_pwm, uint8_t mppt2_status,
float mppt3_volt,
float mppt3_amp, uint16_t mppt3_pwm, uint8_t mppt3_status)
74 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
111 #if MAVLINK_CRC_EXTRA
139 static inline uint16_t mavlink_msg_sens_mppt_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
140 mavlink_message_t* msg,
141 uint64_t mppt_timestamp,
float mppt1_volt,
float mppt1_amp,uint16_t mppt1_pwm,uint8_t mppt1_status,
float mppt2_volt,
float mppt2_amp,uint16_t mppt2_pwm,uint8_t mppt2_status,
float mppt3_volt,
float mppt3_amp,uint16_t mppt3_pwm,uint8_t mppt3_status)
143 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
180 #if MAVLINK_CRC_EXTRA
195 static inline uint16_t mavlink_msg_sens_mppt_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_sens_mppt_t* sens_mppt)
197 return mavlink_msg_sens_mppt_pack(system_id, component_id, msg, sens_mppt->
mppt_timestamp, sens_mppt->
mppt1_volt, sens_mppt->
mppt1_amp, sens_mppt->
mppt1_pwm, sens_mppt->
mppt1_status, sens_mppt->
mppt2_volt, sens_mppt->
mppt2_amp, sens_mppt->
mppt2_pwm, sens_mppt->
mppt2_status, sens_mppt->
mppt3_volt, sens_mppt->
mppt3_amp, sens_mppt->
mppt3_pwm, sens_mppt->
mppt3_status);
209 static inline uint16_t mavlink_msg_sens_mppt_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_sens_mppt_t* sens_mppt)
211 return mavlink_msg_sens_mppt_pack_chan(system_id, component_id, chan, msg, sens_mppt->
mppt_timestamp, sens_mppt->
mppt1_volt, sens_mppt->
mppt1_amp, sens_mppt->
mppt1_pwm, sens_mppt->
mppt1_status, sens_mppt->
mppt2_volt, sens_mppt->
mppt2_amp, sens_mppt->
mppt2_pwm, sens_mppt->
mppt2_status, sens_mppt->
mppt3_volt, sens_mppt->
mppt3_amp, sens_mppt->
mppt3_pwm, sens_mppt->
mppt3_status);
232 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
234 static inline void mavlink_msg_sens_mppt_send(
mavlink_channel_t chan, uint64_t mppt_timestamp,
float mppt1_volt,
float mppt1_amp, uint16_t mppt1_pwm, uint8_t mppt1_status,
float mppt2_volt,
float mppt2_amp, uint16_t mppt2_pwm, uint8_t mppt2_status,
float mppt3_volt,
float mppt3_amp, uint16_t mppt3_pwm, uint8_t mppt3_status)
236 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
252 #if MAVLINK_CRC_EXTRA
273 #if MAVLINK_CRC_EXTRA
281 #if MAVLINK_MSG_ID_SENS_MPPT_LEN <= MAVLINK_MAX_PAYLOAD_LEN
289 static inline void mavlink_msg_sens_mppt_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint64_t mppt_timestamp,
float mppt1_volt,
float mppt1_amp, uint16_t mppt1_pwm, uint8_t mppt1_status,
float mppt2_volt,
float mppt2_amp, uint16_t mppt2_pwm, uint8_t mppt2_status,
float mppt3_volt,
float mppt3_amp, uint16_t mppt3_pwm, uint8_t mppt3_status)
291 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
292 char *buf = (
char *)msgbuf;
307 #if MAVLINK_CRC_EXTRA
328 #if MAVLINK_CRC_EXTRA
347 static inline uint64_t mavlink_msg_sens_mppt_get_mppt_timestamp(
const mavlink_message_t* msg)
349 return _MAV_RETURN_uint64_t(msg, 0);
357 static inline float mavlink_msg_sens_mppt_get_mppt1_volt(
const mavlink_message_t* msg)
359 return _MAV_RETURN_float(msg, 8);
367 static inline float mavlink_msg_sens_mppt_get_mppt1_amp(
const mavlink_message_t* msg)
369 return _MAV_RETURN_float(msg, 12);
377 static inline uint16_t mavlink_msg_sens_mppt_get_mppt1_pwm(
const mavlink_message_t* msg)
379 return _MAV_RETURN_uint16_t(msg, 32);
387 static inline uint8_t mavlink_msg_sens_mppt_get_mppt1_status(
const mavlink_message_t* msg)
397 static inline float mavlink_msg_sens_mppt_get_mppt2_volt(
const mavlink_message_t* msg)
399 return _MAV_RETURN_float(msg, 16);
407 static inline float mavlink_msg_sens_mppt_get_mppt2_amp(
const mavlink_message_t* msg)
409 return _MAV_RETURN_float(msg, 20);
417 static inline uint16_t mavlink_msg_sens_mppt_get_mppt2_pwm(
const mavlink_message_t* msg)
419 return _MAV_RETURN_uint16_t(msg, 34);
427 static inline uint8_t mavlink_msg_sens_mppt_get_mppt2_status(
const mavlink_message_t* msg)
437 static inline float mavlink_msg_sens_mppt_get_mppt3_volt(
const mavlink_message_t* msg)
439 return _MAV_RETURN_float(msg, 24);
447 static inline float mavlink_msg_sens_mppt_get_mppt3_amp(
const mavlink_message_t* msg)
449 return _MAV_RETURN_float(msg, 28);
457 static inline uint16_t mavlink_msg_sens_mppt_get_mppt3_pwm(
const mavlink_message_t* msg)
459 return _MAV_RETURN_uint16_t(msg, 36);
467 static inline uint8_t mavlink_msg_sens_mppt_get_mppt3_status(
const mavlink_message_t* msg)
478 static inline void mavlink_msg_sens_mppt_decode(
const mavlink_message_t* msg,
mavlink_sens_mppt_t* sens_mppt)
480 #if MAVLINK_NEED_BYTE_SWAP
481 sens_mppt->
mppt_timestamp = mavlink_msg_sens_mppt_get_mppt_timestamp(msg);
482 sens_mppt->
mppt1_volt = mavlink_msg_sens_mppt_get_mppt1_volt(msg);
483 sens_mppt->
mppt1_amp = mavlink_msg_sens_mppt_get_mppt1_amp(msg);
484 sens_mppt->
mppt2_volt = mavlink_msg_sens_mppt_get_mppt2_volt(msg);
485 sens_mppt->
mppt2_amp = mavlink_msg_sens_mppt_get_mppt2_amp(msg);
486 sens_mppt->
mppt3_volt = mavlink_msg_sens_mppt_get_mppt3_volt(msg);
487 sens_mppt->
mppt3_amp = mavlink_msg_sens_mppt_get_mppt3_amp(msg);
488 sens_mppt->
mppt1_pwm = mavlink_msg_sens_mppt_get_mppt1_pwm(msg);
489 sens_mppt->
mppt2_pwm = mavlink_msg_sens_mppt_get_mppt2_pwm(msg);
490 sens_mppt->
mppt3_pwm = mavlink_msg_sens_mppt_get_mppt3_pwm(msg);
491 sens_mppt->
mppt1_status = mavlink_msg_sens_mppt_get_mppt1_status(msg);
492 sens_mppt->
mppt2_status = mavlink_msg_sens_mppt_get_mppt2_status(msg);
493 sens_mppt->
mppt3_status = mavlink_msg_sens_mppt_get_mppt3_status(msg);
#define _mav_put_float(buf, wire_offset, b)
Definition: protocol.h:145
#define MAVLINK_MSG_ID_SENS_MPPT_LEN
Definition: mavlink_msg_sens_mppt.h:22
uint16_t mppt2_pwm
MPPT2 pwm.
Definition: mavlink_msg_sens_mppt.h:15
#define MAVLINK_MSG_ID_SENS_MPPT
Definition: mavlink_msg_sens_mppt.h:3
uint8_t mppt3_status
MPPT3 status.
Definition: mavlink_msg_sens_mppt.h:19
#define _MAV_RETURN_uint8_t(msg, wire_offset)
Definition: protocol.h:238
uint8_t mppt2_status
MPPT2 status.
Definition: mavlink_msg_sens_mppt.h:18
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 _mav_put_uint8_t(buf, wire_offset, b)
Definition: protocol.h:134
#define _mav_put_uint64_t(buf, wire_offset, b)
Definition: protocol.h:143
#define _MAV_PAYLOAD_NON_CONST(msg)
Definition: mavlink_types.h:172
mavlink_channel_t
Definition: mavlink_types.h:178
float mppt1_volt
MPPT1 voltage.
Definition: mavlink_msg_sens_mppt.h:8
struct __mavlink_sens_mppt_t mavlink_sens_mppt_t
Definition: mavlink_msg_sens_mppt.h:5
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
float mppt2_amp
MPPT2 current.
Definition: mavlink_msg_sens_mppt.h:11
float mppt3_volt
MPPT3 voltage.
Definition: mavlink_msg_sens_mppt.h:12
uint64_t mppt_timestamp
MPPT last timestamp.
Definition: mavlink_msg_sens_mppt.h:7
float mppt3_amp
MPPT3 current.
Definition: mavlink_msg_sens_mppt.h:13
uint16_t mppt1_pwm
MPPT1 pwm.
Definition: mavlink_msg_sens_mppt.h:14
uint16_t mppt3_pwm
MPPT3 pwm.
Definition: mavlink_msg_sens_mppt.h:16
#define MAVLINK_MSG_ID_SENS_MPPT_CRC
Definition: mavlink_msg_sens_mppt.h:25
#define _mav_put_uint16_t(buf, wire_offset, b)
Definition: protocol.h:139
float mppt1_amp
MPPT1 current.
Definition: mavlink_msg_sens_mppt.h:9
float mppt2_volt
MPPT2 voltage.
Definition: mavlink_msg_sens_mppt.h:10
uint8_t mppt1_status
MPPT1 status.
Definition: mavlink_msg_sens_mppt.h:17
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