4#define MAVLINK_MSG_ID_EFI_STATUS 225
7typedef struct __mavlink_efi_status_t {
13 float throttle_position;
14 float spark_dwell_time;
15 float barometric_pressure;
16 float intake_manifold_pressure;
17 float intake_manifold_temperature;
18 float cylinder_head_temperature;
19 float ignition_timing;
21 float exhaust_gas_temperature;
23 float pt_compensation;
25 float ignition_voltage;
27}) mavlink_efi_status_t;
29#define MAVLINK_MSG_ID_EFI_STATUS_LEN 73
30#define MAVLINK_MSG_ID_EFI_STATUS_MIN_LEN 65
31#define MAVLINK_MSG_ID_225_LEN 73
32#define MAVLINK_MSG_ID_225_MIN_LEN 65
34#define MAVLINK_MSG_ID_EFI_STATUS_CRC 208
35#define MAVLINK_MSG_ID_225_CRC 208
39#if MAVLINK_COMMAND_24BIT
40#define MAVLINK_MESSAGE_INFO_EFI_STATUS {
44 { { "health", NULL, MAVLINK_TYPE_UINT8_T, 0
, 64
, offsetof(mavlink_efi_status_t, health) },
45 { "ecu_index", NULL, MAVLINK_TYPE_FLOAT, 0
, 0
, offsetof(mavlink_efi_status_t, ecu_index) },
46 { "rpm", NULL, MAVLINK_TYPE_FLOAT, 0
, 4
, offsetof(mavlink_efi_status_t, rpm) },
47 { "fuel_consumed", NULL, MAVLINK_TYPE_FLOAT, 0
, 8
, offsetof(mavlink_efi_status_t, fuel_consumed) },
48 { "fuel_flow", NULL, MAVLINK_TYPE_FLOAT, 0
, 12
, offsetof(mavlink_efi_status_t, fuel_flow) },
49 { "engine_load", NULL, MAVLINK_TYPE_FLOAT, 0
, 16
, offsetof(mavlink_efi_status_t, engine_load) },
50 { "throttle_position", NULL, MAVLINK_TYPE_FLOAT, 0
, 20
, offsetof(mavlink_efi_status_t, throttle_position) },
51 { "spark_dwell_time", NULL, MAVLINK_TYPE_FLOAT, 0
, 24
, offsetof(mavlink_efi_status_t, spark_dwell_time) },
52 { "barometric_pressure", NULL, MAVLINK_TYPE_FLOAT, 0
, 28
, offsetof(mavlink_efi_status_t, barometric_pressure) },
53 { "intake_manifold_pressure", NULL, MAVLINK_TYPE_FLOAT, 0
, 32
, offsetof(mavlink_efi_status_t, intake_manifold_pressure) },
54 { "intake_manifold_temperature", NULL, MAVLINK_TYPE_FLOAT, 0
, 36
, offsetof(mavlink_efi_status_t, intake_manifold_temperature) },
55 { "cylinder_head_temperature", NULL, MAVLINK_TYPE_FLOAT, 0
, 40
, offsetof(mavlink_efi_status_t, cylinder_head_temperature) },
56 { "ignition_timing", NULL, MAVLINK_TYPE_FLOAT, 0
, 44
, offsetof(mavlink_efi_status_t, ignition_timing) },
57 { "injection_time", NULL, MAVLINK_TYPE_FLOAT, 0
, 48
, offsetof(mavlink_efi_status_t, injection_time) },
58 { "exhaust_gas_temperature", NULL, MAVLINK_TYPE_FLOAT, 0
, 52
, offsetof(mavlink_efi_status_t, exhaust_gas_temperature) },
59 { "throttle_out", NULL, MAVLINK_TYPE_FLOAT, 0
, 56
, offsetof(mavlink_efi_status_t, throttle_out) },
60 { "pt_compensation", NULL, MAVLINK_TYPE_FLOAT, 0
, 60
, offsetof(mavlink_efi_status_t, pt_compensation) },
61 { "ignition_voltage", NULL, MAVLINK_TYPE_FLOAT, 0
, 65
, offsetof(mavlink_efi_status_t, ignition_voltage) },
62 { "fuel_pressure", NULL, MAVLINK_TYPE_FLOAT, 0
, 69
, offsetof(mavlink_efi_status_t, fuel_pressure) },
64}
66#define MAVLINK_MESSAGE_INFO_EFI_STATUS {
69 { { "health", NULL, MAVLINK_TYPE_UINT8_T, 0
, 64
, offsetof(mavlink_efi_status_t, health) },
70 { "ecu_index", NULL, MAVLINK_TYPE_FLOAT, 0
, 0
, offsetof(mavlink_efi_status_t, ecu_index) },
71 { "rpm", NULL, MAVLINK_TYPE_FLOAT, 0
, 4
, offsetof(mavlink_efi_status_t, rpm) },
72 { "fuel_consumed", NULL, MAVLINK_TYPE_FLOAT, 0
, 8
, offsetof(mavlink_efi_status_t, fuel_consumed) },
73 { "fuel_flow", NULL, MAVLINK_TYPE_FLOAT, 0
, 12
, offsetof(mavlink_efi_status_t, fuel_flow) },
74 { "engine_load", NULL, MAVLINK_TYPE_FLOAT, 0
, 16
, offsetof(mavlink_efi_status_t, engine_load) },
75 { "throttle_position", NULL, MAVLINK_TYPE_FLOAT, 0
, 20
, offsetof(mavlink_efi_status_t, throttle_position) },
76 { "spark_dwell_time", NULL, MAVLINK_TYPE_FLOAT, 0
, 24
, offsetof(mavlink_efi_status_t, spark_dwell_time) },
77 { "barometric_pressure", NULL, MAVLINK_TYPE_FLOAT, 0
, 28
, offsetof(mavlink_efi_status_t, barometric_pressure) },
78 { "intake_manifold_pressure", NULL, MAVLINK_TYPE_FLOAT, 0
, 32
, offsetof(mavlink_efi_status_t, intake_manifold_pressure) },
79 { "intake_manifold_temperature", NULL, MAVLINK_TYPE_FLOAT, 0
, 36
, offsetof(mavlink_efi_status_t, intake_manifold_temperature) },
80 { "cylinder_head_temperature", NULL, MAVLINK_TYPE_FLOAT, 0
, 40
, offsetof(mavlink_efi_status_t, cylinder_head_temperature) },
81 { "ignition_timing", NULL, MAVLINK_TYPE_FLOAT, 0
, 44
, offsetof(mavlink_efi_status_t, ignition_timing) },
82 { "injection_time", NULL, MAVLINK_TYPE_FLOAT, 0
, 48
, offsetof(mavlink_efi_status_t, injection_time) },
83 { "exhaust_gas_temperature", NULL, MAVLINK_TYPE_FLOAT, 0
, 52
, offsetof(mavlink_efi_status_t, exhaust_gas_temperature) },
84 { "throttle_out", NULL, MAVLINK_TYPE_FLOAT, 0
, 56
, offsetof(mavlink_efi_status_t, throttle_out) },
85 { "pt_compensation", NULL, MAVLINK_TYPE_FLOAT, 0
, 60
, offsetof(mavlink_efi_status_t, pt_compensation) },
86 { "ignition_voltage", NULL, MAVLINK_TYPE_FLOAT, 0
, 65
, offsetof(mavlink_efi_status_t, ignition_voltage) },
87 { "fuel_pressure", NULL, MAVLINK_TYPE_FLOAT, 0
, 69
, offsetof(mavlink_efi_status_t, fuel_pressure) },
89}
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119static inline uint16_t mavlink_msg_efi_status_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
120 uint8_t health,
float ecu_index,
float rpm,
float fuel_consumed,
float fuel_flow,
float engine_load,
float throttle_position,
float spark_dwell_time,
float barometric_pressure,
float intake_manifold_pressure,
float intake_manifold_temperature,
float cylinder_head_temperature,
float ignition_timing,
float injection_time,
float exhaust_gas_temperature,
float throttle_out,
float pt_compensation,
float ignition_voltage,
float fuel_pressure)
122#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
124 _mav_put_float(buf, 0, ecu_index);
125 _mav_put_float(buf, 4, rpm);
126 _mav_put_float(buf, 8, fuel_consumed);
127 _mav_put_float(buf, 12, fuel_flow);
128 _mav_put_float(buf, 16, engine_load);
129 _mav_put_float(buf, 20, throttle_position);
130 _mav_put_float(buf, 24, spark_dwell_time);
131 _mav_put_float(buf, 28, barometric_pressure);
132 _mav_put_float(buf, 32, intake_manifold_pressure);
133 _mav_put_float(buf, 36, intake_manifold_temperature);
134 _mav_put_float(buf, 40, cylinder_head_temperature);
135 _mav_put_float(buf, 44, ignition_timing);
136 _mav_put_float(buf, 48, injection_time);
137 _mav_put_float(buf, 52, exhaust_gas_temperature);
138 _mav_put_float(buf, 56, throttle_out);
139 _mav_put_float(buf, 60, pt_compensation);
140 _mav_put_uint8_t(buf, 64, health);
141 _mav_put_float(buf, 65, ignition_voltage);
142 _mav_put_float(buf, 69, fuel_pressure);
146 mavlink_efi_status_t packet;
147 packet.ecu_index = ecu_index;
149 packet.fuel_consumed = fuel_consumed;
150 packet.fuel_flow = fuel_flow;
151 packet.engine_load = engine_load;
152 packet.throttle_position = throttle_position;
153 packet.spark_dwell_time = spark_dwell_time;
154 packet.barometric_pressure = barometric_pressure;
155 packet.intake_manifold_pressure = intake_manifold_pressure;
156 packet.intake_manifold_temperature = intake_manifold_temperature;
157 packet.cylinder_head_temperature = cylinder_head_temperature;
158 packet.ignition_timing = ignition_timing;
159 packet.injection_time = injection_time;
160 packet.exhaust_gas_temperature = exhaust_gas_temperature;
161 packet.throttle_out = throttle_out;
162 packet.pt_compensation = pt_compensation;
163 packet.health = health;
164 packet.ignition_voltage = ignition_voltage;
165 packet.fuel_pressure = fuel_pressure;
167 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_EFI_STATUS_LEN);
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202static inline uint16_t mavlink_msg_efi_status_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
203 uint8_t health,
float ecu_index,
float rpm,
float fuel_consumed,
float fuel_flow,
float engine_load,
float throttle_position,
float spark_dwell_time,
float barometric_pressure,
float intake_manifold_pressure,
float intake_manifold_temperature,
float cylinder_head_temperature,
float ignition_timing,
float injection_time,
float exhaust_gas_temperature,
float throttle_out,
float pt_compensation,
float ignition_voltage,
float fuel_pressure)
205#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
207 _mav_put_float(buf, 0, ecu_index);
208 _mav_put_float(buf, 4, rpm);
209 _mav_put_float(buf, 8, fuel_consumed);
210 _mav_put_float(buf, 12, fuel_flow);
211 _mav_put_float(buf, 16, engine_load);
212 _mav_put_float(buf, 20, throttle_position);
213 _mav_put_float(buf, 24, spark_dwell_time);
214 _mav_put_float(buf, 28, barometric_pressure);
215 _mav_put_float(buf, 32, intake_manifold_pressure);
216 _mav_put_float(buf, 36, intake_manifold_temperature);
217 _mav_put_float(buf, 40, cylinder_head_temperature);
218 _mav_put_float(buf, 44, ignition_timing);
219 _mav_put_float(buf, 48, injection_time);
220 _mav_put_float(buf, 52, exhaust_gas_temperature);
221 _mav_put_float(buf, 56, throttle_out);
222 _mav_put_float(buf, 60, pt_compensation);
223 _mav_put_uint8_t(buf, 64, health);
224 _mav_put_float(buf, 65, ignition_voltage);
225 _mav_put_float(buf, 69, fuel_pressure);
229 mavlink_efi_status_t packet;
230 packet.ecu_index = ecu_index;
232 packet.fuel_consumed = fuel_consumed;
233 packet.fuel_flow = fuel_flow;
234 packet.engine_load = engine_load;
235 packet.throttle_position = throttle_position;
236 packet.spark_dwell_time = spark_dwell_time;
237 packet.barometric_pressure = barometric_pressure;
238 packet.intake_manifold_pressure = intake_manifold_pressure;
239 packet.intake_manifold_temperature = intake_manifold_temperature;
240 packet.cylinder_head_temperature = cylinder_head_temperature;
241 packet.ignition_timing = ignition_timing;
242 packet.injection_time = injection_time;
243 packet.exhaust_gas_temperature = exhaust_gas_temperature;
244 packet.throttle_out = throttle_out;
245 packet.pt_compensation = pt_compensation;
246 packet.health = health;
247 packet.ignition_voltage = ignition_voltage;
248 packet.fuel_pressure = fuel_pressure;
250 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_EFI_STATUS_LEN);
255 return mavlink_finalize_message_buffer(msg, system_id, component_id, _status, MAVLINK_MSG_ID_EFI_STATUS_MIN_LEN, MAVLINK_MSG_ID_EFI_STATUS_LEN, MAVLINK_MSG_ID_EFI_STATUS_CRC);
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288static inline uint16_t mavlink_msg_efi_status_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
289 mavlink_message_t* msg,
290 uint8_t health,
float ecu_index,
float rpm,
float fuel_consumed,
float fuel_flow,
float engine_load,
float throttle_position,
float spark_dwell_time,
float barometric_pressure,
float intake_manifold_pressure,
float intake_manifold_temperature,
float cylinder_head_temperature,
float ignition_timing,
float injection_time,
float exhaust_gas_temperature,
float throttle_out,
float pt_compensation,
float ignition_voltage,
float fuel_pressure)
292#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
294 _mav_put_float(buf, 0, ecu_index);
295 _mav_put_float(buf, 4, rpm);
296 _mav_put_float(buf, 8, fuel_consumed);
297 _mav_put_float(buf, 12, fuel_flow);
298 _mav_put_float(buf, 16, engine_load);
299 _mav_put_float(buf, 20, throttle_position);
300 _mav_put_float(buf, 24, spark_dwell_time);
301 _mav_put_float(buf, 28, barometric_pressure);
302 _mav_put_float(buf, 32, intake_manifold_pressure);
303 _mav_put_float(buf, 36, intake_manifold_temperature);
304 _mav_put_float(buf, 40, cylinder_head_temperature);
305 _mav_put_float(buf, 44, ignition_timing);
306 _mav_put_float(buf, 48, injection_time);
307 _mav_put_float(buf, 52, exhaust_gas_temperature);
308 _mav_put_float(buf, 56, throttle_out);
309 _mav_put_float(buf, 60, pt_compensation);
310 _mav_put_uint8_t(buf, 64, health);
311 _mav_put_float(buf, 65, ignition_voltage);
312 _mav_put_float(buf, 69, fuel_pressure);
316 mavlink_efi_status_t packet;
317 packet.ecu_index = ecu_index;
319 packet.fuel_consumed = fuel_consumed;
320 packet.fuel_flow = fuel_flow;
321 packet.engine_load = engine_load;
322 packet.throttle_position = throttle_position;
323 packet.spark_dwell_time = spark_dwell_time;
324 packet.barometric_pressure = barometric_pressure;
325 packet.intake_manifold_pressure = intake_manifold_pressure;
326 packet.intake_manifold_temperature = intake_manifold_temperature;
327 packet.cylinder_head_temperature = cylinder_head_temperature;
328 packet.ignition_timing = ignition_timing;
329 packet.injection_time = injection_time;
330 packet.exhaust_gas_temperature = exhaust_gas_temperature;
331 packet.throttle_out = throttle_out;
332 packet.pt_compensation = pt_compensation;
333 packet.health = health;
334 packet.ignition_voltage = ignition_voltage;
335 packet.fuel_pressure = fuel_pressure;
337 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_EFI_STATUS_LEN);
345
346
347
348
349
350
351
352static inline uint16_t mavlink_msg_efi_status_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_efi_status_t* efi_status)
354 return mavlink_msg_efi_status_pack(system_id, component_id, msg, efi_status->health, efi_status->ecu_index, efi_status->rpm, efi_status->fuel_consumed, efi_status->fuel_flow, efi_status->engine_load, efi_status->throttle_position, efi_status->spark_dwell_time, efi_status->barometric_pressure, efi_status->intake_manifold_pressure, efi_status->intake_manifold_temperature, efi_status->cylinder_head_temperature, efi_status->ignition_timing, efi_status->injection_time, efi_status->exhaust_gas_temperature, efi_status->throttle_out, efi_status->pt_compensation, efi_status->ignition_voltage, efi_status->fuel_pressure);
358
359
360
361
362
363
364
365
366static inline uint16_t mavlink_msg_efi_status_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_efi_status_t* efi_status)
368 return mavlink_msg_efi_status_pack_chan(system_id, component_id, chan, msg, efi_status->health, efi_status->ecu_index, efi_status->rpm, efi_status->fuel_consumed, efi_status->fuel_flow, efi_status->engine_load, efi_status->throttle_position, efi_status->spark_dwell_time, efi_status->barometric_pressure, efi_status->intake_manifold_pressure, efi_status->intake_manifold_temperature, efi_status->cylinder_head_temperature, efi_status->ignition_timing, efi_status->injection_time, efi_status->exhaust_gas_temperature, efi_status->throttle_out, efi_status->pt_compensation, efi_status->ignition_voltage, efi_status->fuel_pressure);
372
373
374
375
376
377
378
379
380static inline uint16_t mavlink_msg_efi_status_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t* _status, mavlink_message_t* msg,
const mavlink_efi_status_t* efi_status)
382 return mavlink_msg_efi_status_pack_status(system_id, component_id, _status, msg, efi_status->health, efi_status->ecu_index, efi_status->rpm, efi_status->fuel_consumed, efi_status->fuel_flow, efi_status->engine_load, efi_status->throttle_position, efi_status->spark_dwell_time, efi_status->barometric_pressure, efi_status->intake_manifold_pressure, efi_status->intake_manifold_temperature, efi_status->cylinder_head_temperature, efi_status->ignition_timing, efi_status->injection_time, efi_status->exhaust_gas_temperature, efi_status->throttle_out, efi_status->pt_compensation, efi_status->ignition_voltage, efi_status->fuel_pressure);
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
411static inline void mavlink_msg_efi_status_send(mavlink_channel_t chan, uint8_t health,
float ecu_index,
float rpm,
float fuel_consumed,
float fuel_flow,
float engine_load,
float throttle_position,
float spark_dwell_time,
float barometric_pressure,
float intake_manifold_pressure,
float intake_manifold_temperature,
float cylinder_head_temperature,
float ignition_timing,
float injection_time,
float exhaust_gas_temperature,
float throttle_out,
float pt_compensation,
float ignition_voltage,
float fuel_pressure)
413#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
414 char buf[MAVLINK_MSG_ID_EFI_STATUS_LEN];
415 _mav_put_float(buf, 0, ecu_index);
416 _mav_put_float(buf, 4, rpm);
417 _mav_put_float(buf, 8, fuel_consumed);
418 _mav_put_float(buf, 12, fuel_flow);
419 _mav_put_float(buf, 16, engine_load);
420 _mav_put_float(buf, 20, throttle_position);
421 _mav_put_float(buf, 24, spark_dwell_time);
422 _mav_put_float(buf, 28, barometric_pressure);
423 _mav_put_float(buf, 32, intake_manifold_pressure);
424 _mav_put_float(buf, 36, intake_manifold_temperature);
425 _mav_put_float(buf, 40, cylinder_head_temperature);
426 _mav_put_float(buf, 44, ignition_timing);
427 _mav_put_float(buf, 48, injection_time);
428 _mav_put_float(buf, 52, exhaust_gas_temperature);
429 _mav_put_float(buf, 56, throttle_out);
430 _mav_put_float(buf, 60, pt_compensation);
431 _mav_put_uint8_t(buf, 64, health);
432 _mav_put_float(buf, 65, ignition_voltage);
433 _mav_put_float(buf, 69, fuel_pressure);
435 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_EFI_STATUS, buf, MAVLINK_MSG_ID_EFI_STATUS_MIN_LEN, MAVLINK_MSG_ID_EFI_STATUS_LEN, MAVLINK_MSG_ID_EFI_STATUS_CRC);
437 mavlink_efi_status_t packet;
438 packet.ecu_index = ecu_index;
440 packet.fuel_consumed = fuel_consumed;
441 packet.fuel_flow = fuel_flow;
442 packet.engine_load = engine_load;
443 packet.throttle_position = throttle_position;
444 packet.spark_dwell_time = spark_dwell_time;
445 packet.barometric_pressure = barometric_pressure;
446 packet.intake_manifold_pressure = intake_manifold_pressure;
447 packet.intake_manifold_temperature = intake_manifold_temperature;
448 packet.cylinder_head_temperature = cylinder_head_temperature;
449 packet.ignition_timing = ignition_timing;
450 packet.injection_time = injection_time;
451 packet.exhaust_gas_temperature = exhaust_gas_temperature;
452 packet.throttle_out = throttle_out;
453 packet.pt_compensation = pt_compensation;
454 packet.health = health;
455 packet.ignition_voltage = ignition_voltage;
456 packet.fuel_pressure = fuel_pressure;
458 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_EFI_STATUS, (
const char *)&packet, MAVLINK_MSG_ID_EFI_STATUS_MIN_LEN, MAVLINK_MSG_ID_EFI_STATUS_LEN, MAVLINK_MSG_ID_EFI_STATUS_CRC);
463
464
465
466
467static inline void mavlink_msg_efi_status_send_struct(mavlink_channel_t chan,
const mavlink_efi_status_t* efi_status)
469#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
470 mavlink_msg_efi_status_send(chan, efi_status->health, efi_status->ecu_index, efi_status->rpm, efi_status->fuel_consumed, efi_status->fuel_flow, efi_status->engine_load, efi_status->throttle_position, efi_status->spark_dwell_time, efi_status->barometric_pressure, efi_status->intake_manifold_pressure, efi_status->intake_manifold_temperature, efi_status->cylinder_head_temperature, efi_status->ignition_timing, efi_status->injection_time, efi_status->exhaust_gas_temperature, efi_status->throttle_out, efi_status->pt_compensation, efi_status->ignition_voltage, efi_status->fuel_pressure);
472 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_EFI_STATUS, (
const char *)efi_status, MAVLINK_MSG_ID_EFI_STATUS_MIN_LEN, MAVLINK_MSG_ID_EFI_STATUS_LEN, MAVLINK_MSG_ID_EFI_STATUS_CRC);
476#if MAVLINK_MSG_ID_EFI_STATUS_LEN <= MAVLINK_MAX_PAYLOAD_LEN
478
479
480
481
482
483
484static inline void mavlink_msg_efi_status_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t health,
float ecu_index,
float rpm,
float fuel_consumed,
float fuel_flow,
float engine_load,
float throttle_position,
float spark_dwell_time,
float barometric_pressure,
float intake_manifold_pressure,
float intake_manifold_temperature,
float cylinder_head_temperature,
float ignition_timing,
float injection_time,
float exhaust_gas_temperature,
float throttle_out,
float pt_compensation,
float ignition_voltage,
float fuel_pressure)
486#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
487 char *buf = (
char *)msgbuf;
488 _mav_put_float(buf, 0, ecu_index);
489 _mav_put_float(buf, 4, rpm);
490 _mav_put_float(buf, 8, fuel_consumed);
491 _mav_put_float(buf, 12, fuel_flow);
492 _mav_put_float(buf, 16, engine_load);
493 _mav_put_float(buf, 20, throttle_position);
494 _mav_put_float(buf, 24, spark_dwell_time);
495 _mav_put_float(buf, 28, barometric_pressure);
496 _mav_put_float(buf, 32, intake_manifold_pressure);
497 _mav_put_float(buf, 36, intake_manifold_temperature);
498 _mav_put_float(buf, 40, cylinder_head_temperature);
499 _mav_put_float(buf, 44, ignition_timing);
500 _mav_put_float(buf, 48, injection_time);
501 _mav_put_float(buf, 52, exhaust_gas_temperature);
502 _mav_put_float(buf, 56, throttle_out);
503 _mav_put_float(buf, 60, pt_compensation);
504 _mav_put_uint8_t(buf, 64, health);
505 _mav_put_float(buf, 65, ignition_voltage);
506 _mav_put_float(buf, 69, fuel_pressure);
508 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_EFI_STATUS, buf, MAVLINK_MSG_ID_EFI_STATUS_MIN_LEN, MAVLINK_MSG_ID_EFI_STATUS_LEN, MAVLINK_MSG_ID_EFI_STATUS_CRC);
510 mavlink_efi_status_t *packet = (mavlink_efi_status_t *)msgbuf;
511 packet->ecu_index = ecu_index;
513 packet->fuel_consumed = fuel_consumed;
514 packet->fuel_flow = fuel_flow;
515 packet->engine_load = engine_load;
516 packet->throttle_position = throttle_position;
517 packet->spark_dwell_time = spark_dwell_time;
518 packet->barometric_pressure = barometric_pressure;
519 packet->intake_manifold_pressure = intake_manifold_pressure;
520 packet->intake_manifold_temperature = intake_manifold_temperature;
521 packet->cylinder_head_temperature = cylinder_head_temperature;
522 packet->ignition_timing = ignition_timing;
523 packet->injection_time = injection_time;
524 packet->exhaust_gas_temperature = exhaust_gas_temperature;
525 packet->throttle_out = throttle_out;
526 packet->pt_compensation = pt_compensation;
527 packet->health = health;
528 packet->ignition_voltage = ignition_voltage;
529 packet->fuel_pressure = fuel_pressure;
531 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_EFI_STATUS, (
const char *)packet, MAVLINK_MSG_ID_EFI_STATUS_MIN_LEN, MAVLINK_MSG_ID_EFI_STATUS_LEN, MAVLINK_MSG_ID_EFI_STATUS_CRC);
542
543
544
545
546static inline uint8_t mavlink_msg_efi_status_get_health(
const mavlink_message_t* msg)
548 return _MAV_RETURN_uint8_t(msg, 64);
552
553
554
555
556static inline float mavlink_msg_efi_status_get_ecu_index(
const mavlink_message_t* msg)
558 return _MAV_RETURN_float(msg, 0);
562
563
564
565
566static inline float mavlink_msg_efi_status_get_rpm(
const mavlink_message_t* msg)
568 return _MAV_RETURN_float(msg, 4);
572
573
574
575
576static inline float mavlink_msg_efi_status_get_fuel_consumed(
const mavlink_message_t* msg)
578 return _MAV_RETURN_float(msg, 8);
582
583
584
585
586static inline float mavlink_msg_efi_status_get_fuel_flow(
const mavlink_message_t* msg)
588 return _MAV_RETURN_float(msg, 12);
592
593
594
595
596static inline float mavlink_msg_efi_status_get_engine_load(
const mavlink_message_t* msg)
598 return _MAV_RETURN_float(msg, 16);
602
603
604
605
606static inline float mavlink_msg_efi_status_get_throttle_position(
const mavlink_message_t* msg)
608 return _MAV_RETURN_float(msg, 20);
612
613
614
615
616static inline float mavlink_msg_efi_status_get_spark_dwell_time(
const mavlink_message_t* msg)
618 return _MAV_RETURN_float(msg, 24);
622
623
624
625
626static inline float mavlink_msg_efi_status_get_barometric_pressure(
const mavlink_message_t* msg)
628 return _MAV_RETURN_float(msg, 28);
632
633
634
635
636static inline float mavlink_msg_efi_status_get_intake_manifold_pressure(
const mavlink_message_t* msg)
638 return _MAV_RETURN_float(msg, 32);
642
643
644
645
646static inline float mavlink_msg_efi_status_get_intake_manifold_temperature(
const mavlink_message_t* msg)
648 return _MAV_RETURN_float(msg, 36);
652
653
654
655
656static inline float mavlink_msg_efi_status_get_cylinder_head_temperature(
const mavlink_message_t* msg)
658 return _MAV_RETURN_float(msg, 40);
662
663
664
665
666static inline float mavlink_msg_efi_status_get_ignition_timing(
const mavlink_message_t* msg)
668 return _MAV_RETURN_float(msg, 44);
672
673
674
675
676static inline float mavlink_msg_efi_status_get_injection_time(
const mavlink_message_t* msg)
678 return _MAV_RETURN_float(msg, 48);
682
683
684
685
686static inline float mavlink_msg_efi_status_get_exhaust_gas_temperature(
const mavlink_message_t* msg)
688 return _MAV_RETURN_float(msg, 52);
692
693
694
695
696static inline float mavlink_msg_efi_status_get_throttle_out(
const mavlink_message_t* msg)
698 return _MAV_RETURN_float(msg, 56);
702
703
704
705
706static inline float mavlink_msg_efi_status_get_pt_compensation(
const mavlink_message_t* msg)
708 return _MAV_RETURN_float(msg, 60);
712
713
714
715
716static inline float mavlink_msg_efi_status_get_ignition_voltage(
const mavlink_message_t* msg)
718 return _MAV_RETURN_float(msg, 65);
722
723
724
725
726static inline float mavlink_msg_efi_status_get_fuel_pressure(
const mavlink_message_t* msg)
728 return _MAV_RETURN_float(msg, 69);
732
733
734
735
736
737static inline void mavlink_msg_efi_status_decode(
const mavlink_message_t* msg, mavlink_efi_status_t* efi_status)
739#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
740 efi_status->ecu_index = mavlink_msg_efi_status_get_ecu_index(msg);
741 efi_status->rpm = mavlink_msg_efi_status_get_rpm(msg);
742 efi_status->fuel_consumed = mavlink_msg_efi_status_get_fuel_consumed(msg);
743 efi_status->fuel_flow = mavlink_msg_efi_status_get_fuel_flow(msg);
744 efi_status->engine_load = mavlink_msg_efi_status_get_engine_load(msg);
745 efi_status->throttle_position = mavlink_msg_efi_status_get_throttle_position(msg);
746 efi_status->spark_dwell_time = mavlink_msg_efi_status_get_spark_dwell_time(msg);
747 efi_status->barometric_pressure = mavlink_msg_efi_status_get_barometric_pressure(msg);
748 efi_status->intake_manifold_pressure = mavlink_msg_efi_status_get_intake_manifold_pressure(msg);
749 efi_status->intake_manifold_temperature = mavlink_msg_efi_status_get_intake_manifold_temperature(msg);
750 efi_status->cylinder_head_temperature = mavlink_msg_efi_status_get_cylinder_head_temperature(msg);
751 efi_status->ignition_timing = mavlink_msg_efi_status_get_ignition_timing(msg);
752 efi_status->injection_time = mavlink_msg_efi_status_get_injection_time(msg);
753 efi_status->exhaust_gas_temperature = mavlink_msg_efi_status_get_exhaust_gas_temperature(msg);
754 efi_status->throttle_out = mavlink_msg_efi_status_get_throttle_out(msg);
755 efi_status->pt_compensation = mavlink_msg_efi_status_get_pt_compensation(msg);
756 efi_status->health = mavlink_msg_efi_status_get_health(msg);
757 efi_status->ignition_voltage = mavlink_msg_efi_status_get_ignition_voltage(msg);
758 efi_status->fuel_pressure = mavlink_msg_efi_status_get_fuel_pressure(msg);
760 uint8_t len = msg->len < MAVLINK_MSG_ID_EFI_STATUS_LEN? msg->len : MAVLINK_MSG_ID_EFI_STATUS_LEN;
761 memset(efi_status, 0, MAVLINK_MSG_ID_EFI_STATUS_LEN);
762 memcpy(efi_status, _MAV_PAYLOAD(msg), len);
#define MAVLINK_MSG_ID_EFI_STATUS_CRC
Definition: mavlink_msg_efi_status.h:34
#define MAVLINK_MSG_ID_EFI_STATUS
Definition: mavlink_msg_efi_status.h:4
#define MAVLINK_MSG_ID_EFI_STATUS_LEN
Definition: mavlink_msg_efi_status.h:29
#define MAVLINK_MSG_ID_EFI_STATUS_MIN_LEN
Definition: mavlink_msg_efi_status.h:30