|
@@ -3,7 +3,7 @@
|
|
|
|
|
|
|
|
#define MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS 53005
|
|
#define MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS 53005
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+MAVPACKED(
|
|
|
typedef struct __mavlink_vk_engine_ecu_staus_t {
|
|
typedef struct __mavlink_vk_engine_ecu_staus_t {
|
|
|
uint32_t timestamp; /*< [ms] Timestamp in ms from system boot.*/
|
|
uint32_t timestamp; /*< [ms] Timestamp in ms from system boot.*/
|
|
|
uint32_t total_runtime; /*< [min] range extender output voltage*/
|
|
uint32_t total_runtime; /*< [min] range extender output voltage*/
|
|
@@ -25,11 +25,15 @@ typedef struct __mavlink_vk_engine_ecu_staus_t {
|
|
|
uint8_t engine_state; /*< engine state*/
|
|
uint8_t engine_state; /*< engine state*/
|
|
|
uint8_t index; /*< engine index*/
|
|
uint8_t index; /*< engine index*/
|
|
|
uint8_t reserve[4]; /*< engine state*/
|
|
uint8_t reserve[4]; /*< engine state*/
|
|
|
-} mavlink_vk_engine_ecu_staus_t;
|
|
|
|
|
|
|
+ uint16_t inlet_pressure; /*< [hPa] inlet air pressure*/
|
|
|
|
|
+ int16_t ge_temp; /*< [degC] Ge temperature*/
|
|
|
|
|
+ int16_t temp_1; /*< [degC] Ge temperature*/
|
|
|
|
|
+ int16_t volt_2; /*< [dV] Ge temperature*/
|
|
|
|
|
+}) mavlink_vk_engine_ecu_staus_t;
|
|
|
|
|
|
|
|
-#define MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN 37
|
|
|
|
|
|
|
+#define MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN 45
|
|
|
#define MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_MIN_LEN 37
|
|
#define MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_MIN_LEN 37
|
|
|
-#define MAVLINK_MSG_ID_53005_LEN 37
|
|
|
|
|
|
|
+#define MAVLINK_MSG_ID_53005_LEN 45
|
|
|
#define MAVLINK_MSG_ID_53005_MIN_LEN 37
|
|
#define MAVLINK_MSG_ID_53005_MIN_LEN 37
|
|
|
|
|
|
|
|
#define MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_CRC 145
|
|
#define MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_CRC 145
|
|
@@ -41,7 +45,7 @@ typedef struct __mavlink_vk_engine_ecu_staus_t {
|
|
|
#define MAVLINK_MESSAGE_INFO_VK_ENGINE_ECU_STAUS { \
|
|
#define MAVLINK_MESSAGE_INFO_VK_ENGINE_ECU_STAUS { \
|
|
|
53005, \
|
|
53005, \
|
|
|
"VK_ENGINE_ECU_STAUS", \
|
|
"VK_ENGINE_ECU_STAUS", \
|
|
|
- 18, \
|
|
|
|
|
|
|
+ 22, \
|
|
|
{ { "timestamp", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_vk_engine_ecu_staus_t, timestamp) }, \
|
|
{ { "timestamp", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_vk_engine_ecu_staus_t, timestamp) }, \
|
|
|
{ "spd_rpm", NULL, MAVLINK_TYPE_UINT16_T, 0, 8, offsetof(mavlink_vk_engine_ecu_staus_t, spd_rpm) }, \
|
|
{ "spd_rpm", NULL, MAVLINK_TYPE_UINT16_T, 0, 8, offsetof(mavlink_vk_engine_ecu_staus_t, spd_rpm) }, \
|
|
|
{ "thr_pos", NULL, MAVLINK_TYPE_UINT8_T, 0, 28, offsetof(mavlink_vk_engine_ecu_staus_t, thr_pos) }, \
|
|
{ "thr_pos", NULL, MAVLINK_TYPE_UINT8_T, 0, 28, offsetof(mavlink_vk_engine_ecu_staus_t, thr_pos) }, \
|
|
@@ -60,12 +64,16 @@ typedef struct __mavlink_vk_engine_ecu_staus_t {
|
|
|
{ "engine_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 31, offsetof(mavlink_vk_engine_ecu_staus_t, engine_state) }, \
|
|
{ "engine_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 31, offsetof(mavlink_vk_engine_ecu_staus_t, engine_state) }, \
|
|
|
{ "index", NULL, MAVLINK_TYPE_UINT8_T, 0, 32, offsetof(mavlink_vk_engine_ecu_staus_t, index) }, \
|
|
{ "index", NULL, MAVLINK_TYPE_UINT8_T, 0, 32, offsetof(mavlink_vk_engine_ecu_staus_t, index) }, \
|
|
|
{ "reserve", NULL, MAVLINK_TYPE_UINT8_T, 4, 33, offsetof(mavlink_vk_engine_ecu_staus_t, reserve) }, \
|
|
{ "reserve", NULL, MAVLINK_TYPE_UINT8_T, 4, 33, offsetof(mavlink_vk_engine_ecu_staus_t, reserve) }, \
|
|
|
|
|
+ { "inlet_pressure", NULL, MAVLINK_TYPE_UINT16_T, 0, 37, offsetof(mavlink_vk_engine_ecu_staus_t, inlet_pressure) }, \
|
|
|
|
|
+ { "ge_temp", NULL, MAVLINK_TYPE_INT16_T, 0, 39, offsetof(mavlink_vk_engine_ecu_staus_t, ge_temp) }, \
|
|
|
|
|
+ { "temp_1", NULL, MAVLINK_TYPE_INT16_T, 0, 41, offsetof(mavlink_vk_engine_ecu_staus_t, temp_1) }, \
|
|
|
|
|
+ { "volt_2", NULL, MAVLINK_TYPE_INT16_T, 0, 43, offsetof(mavlink_vk_engine_ecu_staus_t, volt_2) }, \
|
|
|
} \
|
|
} \
|
|
|
}
|
|
}
|
|
|
#else
|
|
#else
|
|
|
#define MAVLINK_MESSAGE_INFO_VK_ENGINE_ECU_STAUS { \
|
|
#define MAVLINK_MESSAGE_INFO_VK_ENGINE_ECU_STAUS { \
|
|
|
"VK_ENGINE_ECU_STAUS", \
|
|
"VK_ENGINE_ECU_STAUS", \
|
|
|
- 18, \
|
|
|
|
|
|
|
+ 22, \
|
|
|
{ { "timestamp", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_vk_engine_ecu_staus_t, timestamp) }, \
|
|
{ { "timestamp", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_vk_engine_ecu_staus_t, timestamp) }, \
|
|
|
{ "spd_rpm", NULL, MAVLINK_TYPE_UINT16_T, 0, 8, offsetof(mavlink_vk_engine_ecu_staus_t, spd_rpm) }, \
|
|
{ "spd_rpm", NULL, MAVLINK_TYPE_UINT16_T, 0, 8, offsetof(mavlink_vk_engine_ecu_staus_t, spd_rpm) }, \
|
|
|
{ "thr_pos", NULL, MAVLINK_TYPE_UINT8_T, 0, 28, offsetof(mavlink_vk_engine_ecu_staus_t, thr_pos) }, \
|
|
{ "thr_pos", NULL, MAVLINK_TYPE_UINT8_T, 0, 28, offsetof(mavlink_vk_engine_ecu_staus_t, thr_pos) }, \
|
|
@@ -84,6 +92,10 @@ typedef struct __mavlink_vk_engine_ecu_staus_t {
|
|
|
{ "engine_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 31, offsetof(mavlink_vk_engine_ecu_staus_t, engine_state) }, \
|
|
{ "engine_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 31, offsetof(mavlink_vk_engine_ecu_staus_t, engine_state) }, \
|
|
|
{ "index", NULL, MAVLINK_TYPE_UINT8_T, 0, 32, offsetof(mavlink_vk_engine_ecu_staus_t, index) }, \
|
|
{ "index", NULL, MAVLINK_TYPE_UINT8_T, 0, 32, offsetof(mavlink_vk_engine_ecu_staus_t, index) }, \
|
|
|
{ "reserve", NULL, MAVLINK_TYPE_UINT8_T, 4, 33, offsetof(mavlink_vk_engine_ecu_staus_t, reserve) }, \
|
|
{ "reserve", NULL, MAVLINK_TYPE_UINT8_T, 4, 33, offsetof(mavlink_vk_engine_ecu_staus_t, reserve) }, \
|
|
|
|
|
+ { "inlet_pressure", NULL, MAVLINK_TYPE_UINT16_T, 0, 37, offsetof(mavlink_vk_engine_ecu_staus_t, inlet_pressure) }, \
|
|
|
|
|
+ { "ge_temp", NULL, MAVLINK_TYPE_INT16_T, 0, 39, offsetof(mavlink_vk_engine_ecu_staus_t, ge_temp) }, \
|
|
|
|
|
+ { "temp_1", NULL, MAVLINK_TYPE_INT16_T, 0, 41, offsetof(mavlink_vk_engine_ecu_staus_t, temp_1) }, \
|
|
|
|
|
+ { "volt_2", NULL, MAVLINK_TYPE_INT16_T, 0, 43, offsetof(mavlink_vk_engine_ecu_staus_t, volt_2) }, \
|
|
|
} \
|
|
} \
|
|
|
}
|
|
}
|
|
|
#endif
|
|
#endif
|
|
@@ -114,10 +126,14 @@ typedef struct __mavlink_vk_engine_ecu_staus_t {
|
|
|
* @param engine_state engine state
|
|
* @param engine_state engine state
|
|
|
* @param index engine index
|
|
* @param index engine index
|
|
|
* @param reserve engine state
|
|
* @param reserve engine state
|
|
|
|
|
+ * @param inlet_pressure [hPa] inlet air pressure
|
|
|
|
|
+ * @param ge_temp [degC] Ge temperature
|
|
|
|
|
+ * @param temp_1 [degC] Ge temperature
|
|
|
|
|
+ * @param volt_2 [dV] Ge temperature
|
|
|
* @return length of the message in bytes (excluding serial stream start sign)
|
|
* @return length of the message in bytes (excluding serial stream start sign)
|
|
|
*/
|
|
*/
|
|
|
static inline uint16_t mavlink_msg_vk_engine_ecu_staus_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
|
static inline uint16_t mavlink_msg_vk_engine_ecu_staus_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
|
|
- uint32_t timestamp, uint16_t spd_rpm, uint8_t thr_pos, uint8_t fuel_pos, int16_t cylinderA_temp, int16_t cylinderB_temp, int16_t coolant_temp, uint16_t fuel_remain, uint16_t alarm, uint32_t total_runtime, uint16_t runtime, uint16_t service_time, uint16_t output_volt, uint16_t output_curr, uint8_t fault, uint8_t engine_state, uint8_t index, const uint8_t *reserve)
|
|
|
|
|
|
|
+ uint32_t timestamp, uint16_t spd_rpm, uint8_t thr_pos, uint8_t fuel_pos, int16_t cylinderA_temp, int16_t cylinderB_temp, int16_t coolant_temp, uint16_t fuel_remain, uint16_t alarm, uint32_t total_runtime, uint16_t runtime, uint16_t service_time, uint16_t output_volt, uint16_t output_curr, uint8_t fault, uint8_t engine_state, uint8_t index, const uint8_t *reserve, uint16_t inlet_pressure, int16_t ge_temp, int16_t temp_1, int16_t volt_2)
|
|
|
{
|
|
{
|
|
|
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
|
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
|
|
char buf[MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN];
|
|
char buf[MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN];
|
|
@@ -138,6 +154,10 @@ static inline uint16_t mavlink_msg_vk_engine_ecu_staus_pack(uint8_t system_id, u
|
|
|
_mav_put_uint8_t(buf, 30, fault);
|
|
_mav_put_uint8_t(buf, 30, fault);
|
|
|
_mav_put_uint8_t(buf, 31, engine_state);
|
|
_mav_put_uint8_t(buf, 31, engine_state);
|
|
|
_mav_put_uint8_t(buf, 32, index);
|
|
_mav_put_uint8_t(buf, 32, index);
|
|
|
|
|
+ _mav_put_uint16_t(buf, 37, inlet_pressure);
|
|
|
|
|
+ _mav_put_int16_t(buf, 39, ge_temp);
|
|
|
|
|
+ _mav_put_int16_t(buf, 41, temp_1);
|
|
|
|
|
+ _mav_put_int16_t(buf, 43, volt_2);
|
|
|
_mav_put_uint8_t_array(buf, 33, reserve, 4);
|
|
_mav_put_uint8_t_array(buf, 33, reserve, 4);
|
|
|
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN);
|
|
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN);
|
|
|
#else
|
|
#else
|
|
@@ -159,6 +179,10 @@ static inline uint16_t mavlink_msg_vk_engine_ecu_staus_pack(uint8_t system_id, u
|
|
|
packet.fault = fault;
|
|
packet.fault = fault;
|
|
|
packet.engine_state = engine_state;
|
|
packet.engine_state = engine_state;
|
|
|
packet.index = index;
|
|
packet.index = index;
|
|
|
|
|
+ packet.inlet_pressure = inlet_pressure;
|
|
|
|
|
+ packet.ge_temp = ge_temp;
|
|
|
|
|
+ packet.temp_1 = temp_1;
|
|
|
|
|
+ packet.volt_2 = volt_2;
|
|
|
mav_array_memcpy(packet.reserve, reserve, sizeof(uint8_t)*4);
|
|
mav_array_memcpy(packet.reserve, reserve, sizeof(uint8_t)*4);
|
|
|
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN);
|
|
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN);
|
|
|
#endif
|
|
#endif
|
|
@@ -194,10 +218,14 @@ static inline uint16_t mavlink_msg_vk_engine_ecu_staus_pack(uint8_t system_id, u
|
|
|
* @param engine_state engine state
|
|
* @param engine_state engine state
|
|
|
* @param index engine index
|
|
* @param index engine index
|
|
|
* @param reserve engine state
|
|
* @param reserve engine state
|
|
|
|
|
+ * @param inlet_pressure [hPa] inlet air pressure
|
|
|
|
|
+ * @param ge_temp [degC] Ge temperature
|
|
|
|
|
+ * @param temp_1 [degC] Ge temperature
|
|
|
|
|
+ * @param volt_2 [dV] Ge temperature
|
|
|
* @return length of the message in bytes (excluding serial stream start sign)
|
|
* @return length of the message in bytes (excluding serial stream start sign)
|
|
|
*/
|
|
*/
|
|
|
static inline uint16_t mavlink_msg_vk_engine_ecu_staus_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
|
|
static inline uint16_t mavlink_msg_vk_engine_ecu_staus_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
|
|
|
- uint32_t timestamp, uint16_t spd_rpm, uint8_t thr_pos, uint8_t fuel_pos, int16_t cylinderA_temp, int16_t cylinderB_temp, int16_t coolant_temp, uint16_t fuel_remain, uint16_t alarm, uint32_t total_runtime, uint16_t runtime, uint16_t service_time, uint16_t output_volt, uint16_t output_curr, uint8_t fault, uint8_t engine_state, uint8_t index, const uint8_t *reserve)
|
|
|
|
|
|
|
+ uint32_t timestamp, uint16_t spd_rpm, uint8_t thr_pos, uint8_t fuel_pos, int16_t cylinderA_temp, int16_t cylinderB_temp, int16_t coolant_temp, uint16_t fuel_remain, uint16_t alarm, uint32_t total_runtime, uint16_t runtime, uint16_t service_time, uint16_t output_volt, uint16_t output_curr, uint8_t fault, uint8_t engine_state, uint8_t index, const uint8_t *reserve, uint16_t inlet_pressure, int16_t ge_temp, int16_t temp_1, int16_t volt_2)
|
|
|
{
|
|
{
|
|
|
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
|
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
|
|
char buf[MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN];
|
|
char buf[MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN];
|
|
@@ -218,6 +246,10 @@ static inline uint16_t mavlink_msg_vk_engine_ecu_staus_pack_status(uint8_t syste
|
|
|
_mav_put_uint8_t(buf, 30, fault);
|
|
_mav_put_uint8_t(buf, 30, fault);
|
|
|
_mav_put_uint8_t(buf, 31, engine_state);
|
|
_mav_put_uint8_t(buf, 31, engine_state);
|
|
|
_mav_put_uint8_t(buf, 32, index);
|
|
_mav_put_uint8_t(buf, 32, index);
|
|
|
|
|
+ _mav_put_uint16_t(buf, 37, inlet_pressure);
|
|
|
|
|
+ _mav_put_int16_t(buf, 39, ge_temp);
|
|
|
|
|
+ _mav_put_int16_t(buf, 41, temp_1);
|
|
|
|
|
+ _mav_put_int16_t(buf, 43, volt_2);
|
|
|
_mav_put_uint8_t_array(buf, 33, reserve, 4);
|
|
_mav_put_uint8_t_array(buf, 33, reserve, 4);
|
|
|
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN);
|
|
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN);
|
|
|
#else
|
|
#else
|
|
@@ -239,6 +271,10 @@ static inline uint16_t mavlink_msg_vk_engine_ecu_staus_pack_status(uint8_t syste
|
|
|
packet.fault = fault;
|
|
packet.fault = fault;
|
|
|
packet.engine_state = engine_state;
|
|
packet.engine_state = engine_state;
|
|
|
packet.index = index;
|
|
packet.index = index;
|
|
|
|
|
+ packet.inlet_pressure = inlet_pressure;
|
|
|
|
|
+ packet.ge_temp = ge_temp;
|
|
|
|
|
+ packet.temp_1 = temp_1;
|
|
|
|
|
+ packet.volt_2 = volt_2;
|
|
|
mav_array_memcpy(packet.reserve, reserve, sizeof(uint8_t)*4);
|
|
mav_array_memcpy(packet.reserve, reserve, sizeof(uint8_t)*4);
|
|
|
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN);
|
|
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN);
|
|
|
#endif
|
|
#endif
|
|
@@ -277,11 +313,15 @@ static inline uint16_t mavlink_msg_vk_engine_ecu_staus_pack_status(uint8_t syste
|
|
|
* @param engine_state engine state
|
|
* @param engine_state engine state
|
|
|
* @param index engine index
|
|
* @param index engine index
|
|
|
* @param reserve engine state
|
|
* @param reserve engine state
|
|
|
|
|
+ * @param inlet_pressure [hPa] inlet air pressure
|
|
|
|
|
+ * @param ge_temp [degC] Ge temperature
|
|
|
|
|
+ * @param temp_1 [degC] Ge temperature
|
|
|
|
|
+ * @param volt_2 [dV] Ge temperature
|
|
|
* @return length of the message in bytes (excluding serial stream start sign)
|
|
* @return length of the message in bytes (excluding serial stream start sign)
|
|
|
*/
|
|
*/
|
|
|
static inline uint16_t mavlink_msg_vk_engine_ecu_staus_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
|
|
static inline uint16_t mavlink_msg_vk_engine_ecu_staus_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
|
|
|
mavlink_message_t* msg,
|
|
mavlink_message_t* msg,
|
|
|
- uint32_t timestamp,uint16_t spd_rpm,uint8_t thr_pos,uint8_t fuel_pos,int16_t cylinderA_temp,int16_t cylinderB_temp,int16_t coolant_temp,uint16_t fuel_remain,uint16_t alarm,uint32_t total_runtime,uint16_t runtime,uint16_t service_time,uint16_t output_volt,uint16_t output_curr,uint8_t fault,uint8_t engine_state,uint8_t index,const uint8_t *reserve)
|
|
|
|
|
|
|
+ uint32_t timestamp,uint16_t spd_rpm,uint8_t thr_pos,uint8_t fuel_pos,int16_t cylinderA_temp,int16_t cylinderB_temp,int16_t coolant_temp,uint16_t fuel_remain,uint16_t alarm,uint32_t total_runtime,uint16_t runtime,uint16_t service_time,uint16_t output_volt,uint16_t output_curr,uint8_t fault,uint8_t engine_state,uint8_t index,const uint8_t *reserve,uint16_t inlet_pressure,int16_t ge_temp,int16_t temp_1,int16_t volt_2)
|
|
|
{
|
|
{
|
|
|
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
|
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
|
|
char buf[MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN];
|
|
char buf[MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN];
|
|
@@ -302,6 +342,10 @@ static inline uint16_t mavlink_msg_vk_engine_ecu_staus_pack_chan(uint8_t system_
|
|
|
_mav_put_uint8_t(buf, 30, fault);
|
|
_mav_put_uint8_t(buf, 30, fault);
|
|
|
_mav_put_uint8_t(buf, 31, engine_state);
|
|
_mav_put_uint8_t(buf, 31, engine_state);
|
|
|
_mav_put_uint8_t(buf, 32, index);
|
|
_mav_put_uint8_t(buf, 32, index);
|
|
|
|
|
+ _mav_put_uint16_t(buf, 37, inlet_pressure);
|
|
|
|
|
+ _mav_put_int16_t(buf, 39, ge_temp);
|
|
|
|
|
+ _mav_put_int16_t(buf, 41, temp_1);
|
|
|
|
|
+ _mav_put_int16_t(buf, 43, volt_2);
|
|
|
_mav_put_uint8_t_array(buf, 33, reserve, 4);
|
|
_mav_put_uint8_t_array(buf, 33, reserve, 4);
|
|
|
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN);
|
|
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN);
|
|
|
#else
|
|
#else
|
|
@@ -323,6 +367,10 @@ static inline uint16_t mavlink_msg_vk_engine_ecu_staus_pack_chan(uint8_t system_
|
|
|
packet.fault = fault;
|
|
packet.fault = fault;
|
|
|
packet.engine_state = engine_state;
|
|
packet.engine_state = engine_state;
|
|
|
packet.index = index;
|
|
packet.index = index;
|
|
|
|
|
+ packet.inlet_pressure = inlet_pressure;
|
|
|
|
|
+ packet.ge_temp = ge_temp;
|
|
|
|
|
+ packet.temp_1 = temp_1;
|
|
|
|
|
+ packet.volt_2 = volt_2;
|
|
|
mav_array_memcpy(packet.reserve, reserve, sizeof(uint8_t)*4);
|
|
mav_array_memcpy(packet.reserve, reserve, sizeof(uint8_t)*4);
|
|
|
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN);
|
|
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN);
|
|
|
#endif
|
|
#endif
|
|
@@ -341,7 +389,7 @@ static inline uint16_t mavlink_msg_vk_engine_ecu_staus_pack_chan(uint8_t system_
|
|
|
*/
|
|
*/
|
|
|
static inline uint16_t mavlink_msg_vk_engine_ecu_staus_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_vk_engine_ecu_staus_t* vk_engine_ecu_staus)
|
|
static inline uint16_t mavlink_msg_vk_engine_ecu_staus_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_vk_engine_ecu_staus_t* vk_engine_ecu_staus)
|
|
|
{
|
|
{
|
|
|
- return mavlink_msg_vk_engine_ecu_staus_pack(system_id, component_id, msg, vk_engine_ecu_staus->timestamp, vk_engine_ecu_staus->spd_rpm, vk_engine_ecu_staus->thr_pos, vk_engine_ecu_staus->fuel_pos, vk_engine_ecu_staus->cylinderA_temp, vk_engine_ecu_staus->cylinderB_temp, vk_engine_ecu_staus->coolant_temp, vk_engine_ecu_staus->fuel_remain, vk_engine_ecu_staus->alarm, vk_engine_ecu_staus->total_runtime, vk_engine_ecu_staus->runtime, vk_engine_ecu_staus->service_time, vk_engine_ecu_staus->output_volt, vk_engine_ecu_staus->output_curr, vk_engine_ecu_staus->fault, vk_engine_ecu_staus->engine_state, vk_engine_ecu_staus->index, vk_engine_ecu_staus->reserve);
|
|
|
|
|
|
|
+ return mavlink_msg_vk_engine_ecu_staus_pack(system_id, component_id, msg, vk_engine_ecu_staus->timestamp, vk_engine_ecu_staus->spd_rpm, vk_engine_ecu_staus->thr_pos, vk_engine_ecu_staus->fuel_pos, vk_engine_ecu_staus->cylinderA_temp, vk_engine_ecu_staus->cylinderB_temp, vk_engine_ecu_staus->coolant_temp, vk_engine_ecu_staus->fuel_remain, vk_engine_ecu_staus->alarm, vk_engine_ecu_staus->total_runtime, vk_engine_ecu_staus->runtime, vk_engine_ecu_staus->service_time, vk_engine_ecu_staus->output_volt, vk_engine_ecu_staus->output_curr, vk_engine_ecu_staus->fault, vk_engine_ecu_staus->engine_state, vk_engine_ecu_staus->index, vk_engine_ecu_staus->reserve, vk_engine_ecu_staus->inlet_pressure, vk_engine_ecu_staus->ge_temp, vk_engine_ecu_staus->temp_1, vk_engine_ecu_staus->volt_2);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -355,7 +403,7 @@ static inline uint16_t mavlink_msg_vk_engine_ecu_staus_encode(uint8_t system_id,
|
|
|
*/
|
|
*/
|
|
|
static inline uint16_t mavlink_msg_vk_engine_ecu_staus_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_vk_engine_ecu_staus_t* vk_engine_ecu_staus)
|
|
static inline uint16_t mavlink_msg_vk_engine_ecu_staus_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_vk_engine_ecu_staus_t* vk_engine_ecu_staus)
|
|
|
{
|
|
{
|
|
|
- return mavlink_msg_vk_engine_ecu_staus_pack_chan(system_id, component_id, chan, msg, vk_engine_ecu_staus->timestamp, vk_engine_ecu_staus->spd_rpm, vk_engine_ecu_staus->thr_pos, vk_engine_ecu_staus->fuel_pos, vk_engine_ecu_staus->cylinderA_temp, vk_engine_ecu_staus->cylinderB_temp, vk_engine_ecu_staus->coolant_temp, vk_engine_ecu_staus->fuel_remain, vk_engine_ecu_staus->alarm, vk_engine_ecu_staus->total_runtime, vk_engine_ecu_staus->runtime, vk_engine_ecu_staus->service_time, vk_engine_ecu_staus->output_volt, vk_engine_ecu_staus->output_curr, vk_engine_ecu_staus->fault, vk_engine_ecu_staus->engine_state, vk_engine_ecu_staus->index, vk_engine_ecu_staus->reserve);
|
|
|
|
|
|
|
+ return mavlink_msg_vk_engine_ecu_staus_pack_chan(system_id, component_id, chan, msg, vk_engine_ecu_staus->timestamp, vk_engine_ecu_staus->spd_rpm, vk_engine_ecu_staus->thr_pos, vk_engine_ecu_staus->fuel_pos, vk_engine_ecu_staus->cylinderA_temp, vk_engine_ecu_staus->cylinderB_temp, vk_engine_ecu_staus->coolant_temp, vk_engine_ecu_staus->fuel_remain, vk_engine_ecu_staus->alarm, vk_engine_ecu_staus->total_runtime, vk_engine_ecu_staus->runtime, vk_engine_ecu_staus->service_time, vk_engine_ecu_staus->output_volt, vk_engine_ecu_staus->output_curr, vk_engine_ecu_staus->fault, vk_engine_ecu_staus->engine_state, vk_engine_ecu_staus->index, vk_engine_ecu_staus->reserve, vk_engine_ecu_staus->inlet_pressure, vk_engine_ecu_staus->ge_temp, vk_engine_ecu_staus->temp_1, vk_engine_ecu_staus->volt_2);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -369,7 +417,7 @@ static inline uint16_t mavlink_msg_vk_engine_ecu_staus_encode_chan(uint8_t syste
|
|
|
*/
|
|
*/
|
|
|
static inline uint16_t mavlink_msg_vk_engine_ecu_staus_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t* _status, mavlink_message_t* msg, const mavlink_vk_engine_ecu_staus_t* vk_engine_ecu_staus)
|
|
static inline uint16_t mavlink_msg_vk_engine_ecu_staus_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t* _status, mavlink_message_t* msg, const mavlink_vk_engine_ecu_staus_t* vk_engine_ecu_staus)
|
|
|
{
|
|
{
|
|
|
- return mavlink_msg_vk_engine_ecu_staus_pack_status(system_id, component_id, _status, msg, vk_engine_ecu_staus->timestamp, vk_engine_ecu_staus->spd_rpm, vk_engine_ecu_staus->thr_pos, vk_engine_ecu_staus->fuel_pos, vk_engine_ecu_staus->cylinderA_temp, vk_engine_ecu_staus->cylinderB_temp, vk_engine_ecu_staus->coolant_temp, vk_engine_ecu_staus->fuel_remain, vk_engine_ecu_staus->alarm, vk_engine_ecu_staus->total_runtime, vk_engine_ecu_staus->runtime, vk_engine_ecu_staus->service_time, vk_engine_ecu_staus->output_volt, vk_engine_ecu_staus->output_curr, vk_engine_ecu_staus->fault, vk_engine_ecu_staus->engine_state, vk_engine_ecu_staus->index, vk_engine_ecu_staus->reserve);
|
|
|
|
|
|
|
+ return mavlink_msg_vk_engine_ecu_staus_pack_status(system_id, component_id, _status, msg, vk_engine_ecu_staus->timestamp, vk_engine_ecu_staus->spd_rpm, vk_engine_ecu_staus->thr_pos, vk_engine_ecu_staus->fuel_pos, vk_engine_ecu_staus->cylinderA_temp, vk_engine_ecu_staus->cylinderB_temp, vk_engine_ecu_staus->coolant_temp, vk_engine_ecu_staus->fuel_remain, vk_engine_ecu_staus->alarm, vk_engine_ecu_staus->total_runtime, vk_engine_ecu_staus->runtime, vk_engine_ecu_staus->service_time, vk_engine_ecu_staus->output_volt, vk_engine_ecu_staus->output_curr, vk_engine_ecu_staus->fault, vk_engine_ecu_staus->engine_state, vk_engine_ecu_staus->index, vk_engine_ecu_staus->reserve, vk_engine_ecu_staus->inlet_pressure, vk_engine_ecu_staus->ge_temp, vk_engine_ecu_staus->temp_1, vk_engine_ecu_staus->volt_2);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -396,10 +444,14 @@ static inline uint16_t mavlink_msg_vk_engine_ecu_staus_encode_status(uint8_t sys
|
|
|
* @param engine_state engine state
|
|
* @param engine_state engine state
|
|
|
* @param index engine index
|
|
* @param index engine index
|
|
|
* @param reserve engine state
|
|
* @param reserve engine state
|
|
|
|
|
+ * @param inlet_pressure [hPa] inlet air pressure
|
|
|
|
|
+ * @param ge_temp [degC] Ge temperature
|
|
|
|
|
+ * @param temp_1 [degC] Ge temperature
|
|
|
|
|
+ * @param volt_2 [dV] Ge temperature
|
|
|
*/
|
|
*/
|
|
|
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
|
|
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
|
|
|
|
|
|
|
|
-static inline void mavlink_msg_vk_engine_ecu_staus_send(mavlink_channel_t chan, uint32_t timestamp, uint16_t spd_rpm, uint8_t thr_pos, uint8_t fuel_pos, int16_t cylinderA_temp, int16_t cylinderB_temp, int16_t coolant_temp, uint16_t fuel_remain, uint16_t alarm, uint32_t total_runtime, uint16_t runtime, uint16_t service_time, uint16_t output_volt, uint16_t output_curr, uint8_t fault, uint8_t engine_state, uint8_t index, const uint8_t *reserve)
|
|
|
|
|
|
|
+static inline void mavlink_msg_vk_engine_ecu_staus_send(mavlink_channel_t chan, uint32_t timestamp, uint16_t spd_rpm, uint8_t thr_pos, uint8_t fuel_pos, int16_t cylinderA_temp, int16_t cylinderB_temp, int16_t coolant_temp, uint16_t fuel_remain, uint16_t alarm, uint32_t total_runtime, uint16_t runtime, uint16_t service_time, uint16_t output_volt, uint16_t output_curr, uint8_t fault, uint8_t engine_state, uint8_t index, const uint8_t *reserve, uint16_t inlet_pressure, int16_t ge_temp, int16_t temp_1, int16_t volt_2)
|
|
|
{
|
|
{
|
|
|
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
|
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
|
|
char buf[MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN];
|
|
char buf[MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN];
|
|
@@ -420,6 +472,10 @@ static inline void mavlink_msg_vk_engine_ecu_staus_send(mavlink_channel_t chan,
|
|
|
_mav_put_uint8_t(buf, 30, fault);
|
|
_mav_put_uint8_t(buf, 30, fault);
|
|
|
_mav_put_uint8_t(buf, 31, engine_state);
|
|
_mav_put_uint8_t(buf, 31, engine_state);
|
|
|
_mav_put_uint8_t(buf, 32, index);
|
|
_mav_put_uint8_t(buf, 32, index);
|
|
|
|
|
+ _mav_put_uint16_t(buf, 37, inlet_pressure);
|
|
|
|
|
+ _mav_put_int16_t(buf, 39, ge_temp);
|
|
|
|
|
+ _mav_put_int16_t(buf, 41, temp_1);
|
|
|
|
|
+ _mav_put_int16_t(buf, 43, volt_2);
|
|
|
_mav_put_uint8_t_array(buf, 33, reserve, 4);
|
|
_mav_put_uint8_t_array(buf, 33, reserve, 4);
|
|
|
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS, buf, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_MIN_LEN, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_CRC);
|
|
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS, buf, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_MIN_LEN, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_CRC);
|
|
|
#else
|
|
#else
|
|
@@ -441,6 +497,10 @@ static inline void mavlink_msg_vk_engine_ecu_staus_send(mavlink_channel_t chan,
|
|
|
packet.fault = fault;
|
|
packet.fault = fault;
|
|
|
packet.engine_state = engine_state;
|
|
packet.engine_state = engine_state;
|
|
|
packet.index = index;
|
|
packet.index = index;
|
|
|
|
|
+ packet.inlet_pressure = inlet_pressure;
|
|
|
|
|
+ packet.ge_temp = ge_temp;
|
|
|
|
|
+ packet.temp_1 = temp_1;
|
|
|
|
|
+ packet.volt_2 = volt_2;
|
|
|
mav_array_memcpy(packet.reserve, reserve, sizeof(uint8_t)*4);
|
|
mav_array_memcpy(packet.reserve, reserve, sizeof(uint8_t)*4);
|
|
|
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS, (const char *)&packet, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_MIN_LEN, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_CRC);
|
|
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS, (const char *)&packet, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_MIN_LEN, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_CRC);
|
|
|
#endif
|
|
#endif
|
|
@@ -454,7 +514,7 @@ static inline void mavlink_msg_vk_engine_ecu_staus_send(mavlink_channel_t chan,
|
|
|
static inline void mavlink_msg_vk_engine_ecu_staus_send_struct(mavlink_channel_t chan, const mavlink_vk_engine_ecu_staus_t* vk_engine_ecu_staus)
|
|
static inline void mavlink_msg_vk_engine_ecu_staus_send_struct(mavlink_channel_t chan, const mavlink_vk_engine_ecu_staus_t* vk_engine_ecu_staus)
|
|
|
{
|
|
{
|
|
|
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
|
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
|
|
- mavlink_msg_vk_engine_ecu_staus_send(chan, vk_engine_ecu_staus->timestamp, vk_engine_ecu_staus->spd_rpm, vk_engine_ecu_staus->thr_pos, vk_engine_ecu_staus->fuel_pos, vk_engine_ecu_staus->cylinderA_temp, vk_engine_ecu_staus->cylinderB_temp, vk_engine_ecu_staus->coolant_temp, vk_engine_ecu_staus->fuel_remain, vk_engine_ecu_staus->alarm, vk_engine_ecu_staus->total_runtime, vk_engine_ecu_staus->runtime, vk_engine_ecu_staus->service_time, vk_engine_ecu_staus->output_volt, vk_engine_ecu_staus->output_curr, vk_engine_ecu_staus->fault, vk_engine_ecu_staus->engine_state, vk_engine_ecu_staus->index, vk_engine_ecu_staus->reserve);
|
|
|
|
|
|
|
+ mavlink_msg_vk_engine_ecu_staus_send(chan, vk_engine_ecu_staus->timestamp, vk_engine_ecu_staus->spd_rpm, vk_engine_ecu_staus->thr_pos, vk_engine_ecu_staus->fuel_pos, vk_engine_ecu_staus->cylinderA_temp, vk_engine_ecu_staus->cylinderB_temp, vk_engine_ecu_staus->coolant_temp, vk_engine_ecu_staus->fuel_remain, vk_engine_ecu_staus->alarm, vk_engine_ecu_staus->total_runtime, vk_engine_ecu_staus->runtime, vk_engine_ecu_staus->service_time, vk_engine_ecu_staus->output_volt, vk_engine_ecu_staus->output_curr, vk_engine_ecu_staus->fault, vk_engine_ecu_staus->engine_state, vk_engine_ecu_staus->index, vk_engine_ecu_staus->reserve, vk_engine_ecu_staus->inlet_pressure, vk_engine_ecu_staus->ge_temp, vk_engine_ecu_staus->temp_1, vk_engine_ecu_staus->volt_2);
|
|
|
#else
|
|
#else
|
|
|
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS, (const char *)vk_engine_ecu_staus, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_MIN_LEN, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_CRC);
|
|
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS, (const char *)vk_engine_ecu_staus, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_MIN_LEN, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_CRC);
|
|
|
#endif
|
|
#endif
|
|
@@ -468,7 +528,7 @@ static inline void mavlink_msg_vk_engine_ecu_staus_send_struct(mavlink_channel_t
|
|
|
is usually the receive buffer for the channel, and allows a reply to an
|
|
is usually the receive buffer for the channel, and allows a reply to an
|
|
|
incoming message with minimum stack space usage.
|
|
incoming message with minimum stack space usage.
|
|
|
*/
|
|
*/
|
|
|
-static inline void mavlink_msg_vk_engine_ecu_staus_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint32_t timestamp, uint16_t spd_rpm, uint8_t thr_pos, uint8_t fuel_pos, int16_t cylinderA_temp, int16_t cylinderB_temp, int16_t coolant_temp, uint16_t fuel_remain, uint16_t alarm, uint32_t total_runtime, uint16_t runtime, uint16_t service_time, uint16_t output_volt, uint16_t output_curr, uint8_t fault, uint8_t engine_state, uint8_t index, const uint8_t *reserve)
|
|
|
|
|
|
|
+static inline void mavlink_msg_vk_engine_ecu_staus_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint32_t timestamp, uint16_t spd_rpm, uint8_t thr_pos, uint8_t fuel_pos, int16_t cylinderA_temp, int16_t cylinderB_temp, int16_t coolant_temp, uint16_t fuel_remain, uint16_t alarm, uint32_t total_runtime, uint16_t runtime, uint16_t service_time, uint16_t output_volt, uint16_t output_curr, uint8_t fault, uint8_t engine_state, uint8_t index, const uint8_t *reserve, uint16_t inlet_pressure, int16_t ge_temp, int16_t temp_1, int16_t volt_2)
|
|
|
{
|
|
{
|
|
|
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
|
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
|
|
char *buf = (char *)msgbuf;
|
|
char *buf = (char *)msgbuf;
|
|
@@ -489,6 +549,10 @@ static inline void mavlink_msg_vk_engine_ecu_staus_send_buf(mavlink_message_t *m
|
|
|
_mav_put_uint8_t(buf, 30, fault);
|
|
_mav_put_uint8_t(buf, 30, fault);
|
|
|
_mav_put_uint8_t(buf, 31, engine_state);
|
|
_mav_put_uint8_t(buf, 31, engine_state);
|
|
|
_mav_put_uint8_t(buf, 32, index);
|
|
_mav_put_uint8_t(buf, 32, index);
|
|
|
|
|
+ _mav_put_uint16_t(buf, 37, inlet_pressure);
|
|
|
|
|
+ _mav_put_int16_t(buf, 39, ge_temp);
|
|
|
|
|
+ _mav_put_int16_t(buf, 41, temp_1);
|
|
|
|
|
+ _mav_put_int16_t(buf, 43, volt_2);
|
|
|
_mav_put_uint8_t_array(buf, 33, reserve, 4);
|
|
_mav_put_uint8_t_array(buf, 33, reserve, 4);
|
|
|
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS, buf, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_MIN_LEN, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_CRC);
|
|
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS, buf, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_MIN_LEN, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_CRC);
|
|
|
#else
|
|
#else
|
|
@@ -510,6 +574,10 @@ static inline void mavlink_msg_vk_engine_ecu_staus_send_buf(mavlink_message_t *m
|
|
|
packet->fault = fault;
|
|
packet->fault = fault;
|
|
|
packet->engine_state = engine_state;
|
|
packet->engine_state = engine_state;
|
|
|
packet->index = index;
|
|
packet->index = index;
|
|
|
|
|
+ packet->inlet_pressure = inlet_pressure;
|
|
|
|
|
+ packet->ge_temp = ge_temp;
|
|
|
|
|
+ packet->temp_1 = temp_1;
|
|
|
|
|
+ packet->volt_2 = volt_2;
|
|
|
mav_array_memcpy(packet->reserve, reserve, sizeof(uint8_t)*4);
|
|
mav_array_memcpy(packet->reserve, reserve, sizeof(uint8_t)*4);
|
|
|
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS, (const char *)packet, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_MIN_LEN, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_CRC);
|
|
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS, (const char *)packet, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_MIN_LEN, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_CRC);
|
|
|
#endif
|
|
#endif
|
|
@@ -703,6 +771,46 @@ static inline uint16_t mavlink_msg_vk_engine_ecu_staus_get_reserve(const mavlink
|
|
|
return _MAV_RETURN_uint8_t_array(msg, reserve, 4, 33);
|
|
return _MAV_RETURN_uint8_t_array(msg, reserve, 4, 33);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+/**
|
|
|
|
|
+ * @brief Get field inlet_pressure from vk_engine_ecu_staus message
|
|
|
|
|
+ *
|
|
|
|
|
+ * @return [hPa] inlet air pressure
|
|
|
|
|
+ */
|
|
|
|
|
+static inline uint16_t mavlink_msg_vk_engine_ecu_staus_get_inlet_pressure(const mavlink_message_t* msg)
|
|
|
|
|
+{
|
|
|
|
|
+ return _MAV_RETURN_uint16_t(msg, 37);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+/**
|
|
|
|
|
+ * @brief Get field ge_temp from vk_engine_ecu_staus message
|
|
|
|
|
+ *
|
|
|
|
|
+ * @return [degC] Ge temperature
|
|
|
|
|
+ */
|
|
|
|
|
+static inline int16_t mavlink_msg_vk_engine_ecu_staus_get_ge_temp(const mavlink_message_t* msg)
|
|
|
|
|
+{
|
|
|
|
|
+ return _MAV_RETURN_int16_t(msg, 39);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+/**
|
|
|
|
|
+ * @brief Get field temp_1 from vk_engine_ecu_staus message
|
|
|
|
|
+ *
|
|
|
|
|
+ * @return [degC] Ge temperature
|
|
|
|
|
+ */
|
|
|
|
|
+static inline int16_t mavlink_msg_vk_engine_ecu_staus_get_temp_1(const mavlink_message_t* msg)
|
|
|
|
|
+{
|
|
|
|
|
+ return _MAV_RETURN_int16_t(msg, 41);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+/**
|
|
|
|
|
+ * @brief Get field volt_2 from vk_engine_ecu_staus message
|
|
|
|
|
+ *
|
|
|
|
|
+ * @return [dV] Ge temperature
|
|
|
|
|
+ */
|
|
|
|
|
+static inline int16_t mavlink_msg_vk_engine_ecu_staus_get_volt_2(const mavlink_message_t* msg)
|
|
|
|
|
+{
|
|
|
|
|
+ return _MAV_RETURN_int16_t(msg, 43);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* @brief Decode a vk_engine_ecu_staus message into a struct
|
|
* @brief Decode a vk_engine_ecu_staus message into a struct
|
|
|
*
|
|
*
|
|
@@ -730,6 +838,10 @@ static inline void mavlink_msg_vk_engine_ecu_staus_decode(const mavlink_message_
|
|
|
vk_engine_ecu_staus->engine_state = mavlink_msg_vk_engine_ecu_staus_get_engine_state(msg);
|
|
vk_engine_ecu_staus->engine_state = mavlink_msg_vk_engine_ecu_staus_get_engine_state(msg);
|
|
|
vk_engine_ecu_staus->index = mavlink_msg_vk_engine_ecu_staus_get_index(msg);
|
|
vk_engine_ecu_staus->index = mavlink_msg_vk_engine_ecu_staus_get_index(msg);
|
|
|
mavlink_msg_vk_engine_ecu_staus_get_reserve(msg, vk_engine_ecu_staus->reserve);
|
|
mavlink_msg_vk_engine_ecu_staus_get_reserve(msg, vk_engine_ecu_staus->reserve);
|
|
|
|
|
+ vk_engine_ecu_staus->inlet_pressure = mavlink_msg_vk_engine_ecu_staus_get_inlet_pressure(msg);
|
|
|
|
|
+ vk_engine_ecu_staus->ge_temp = mavlink_msg_vk_engine_ecu_staus_get_ge_temp(msg);
|
|
|
|
|
+ vk_engine_ecu_staus->temp_1 = mavlink_msg_vk_engine_ecu_staus_get_temp_1(msg);
|
|
|
|
|
+ vk_engine_ecu_staus->volt_2 = mavlink_msg_vk_engine_ecu_staus_get_volt_2(msg);
|
|
|
#else
|
|
#else
|
|
|
uint8_t len = msg->len < MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN? msg->len : MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN;
|
|
uint8_t len = msg->len < MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN? msg->len : MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN;
|
|
|
memset(vk_engine_ecu_staus, 0, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN);
|
|
memset(vk_engine_ecu_staus, 0, MAVLINK_MSG_ID_VK_ENGINE_ECU_STAUS_LEN);
|