rusefi/firmware/controllers/algo/ignition_state_generated.h

92 lines
1.9 KiB
C
Raw Normal View History

2023-05-04 18:36:16 -07:00
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) controllers/algo/ignition_state.txt Fri May 05 01:35:23 UTC 2023
// by class com.rusefi.output.CHeaderConsumer
// begin
#pragma once
#include "rusefi_types.h"
// start of ignition_state_s
struct ignition_state_s {
/**
2023-03-05 08:51:47 -08:00
* "Ignition: base dwell"
2023-01-16 12:23:11 -08:00
ms
* offset 0
*/
float baseDwell = (float)0;
/**
2023-01-15 05:37:56 -08:00
* @@GAUGE_COIL_DWELL_TIME@@
2023-01-16 12:23:11 -08:00
ms
* offset 4
*/
2023-01-15 05:37:56 -08:00
floatms_t sparkDwell = (floatms_t)0;
2022-04-16 16:33:47 -07:00
/**
2023-03-05 08:51:47 -08:00
* Ignition: dwell duration
2023-01-15 05:37:56 -08:00
* as crankshaft angle
* NAN if engine is stopped
* See also sparkDwell
2023-01-16 12:23:11 -08:00
deg
2022-04-16 16:33:47 -07:00
* offset 8
*/
2023-01-15 05:37:56 -08:00
angle_t dwellAngle = (angle_t)0;
2022-04-16 16:33:47 -07:00
/**
2023-05-04 18:36:16 -07:00
* Ign: CLT correction
2023-01-15 05:37:56 -08:00
deg
2022-04-16 16:33:47 -07:00
* offset 12
*/
2023-01-15 05:37:56 -08:00
scaled_channel<int16_t, 100, 1> cltTimingCorrection = (int16_t)0;
/**
2023-05-04 18:36:16 -07:00
* Ign: IAT correction
2023-01-15 05:37:56 -08:00
deg
* offset 14
*/
scaled_channel<int16_t, 100, 1> timingIatCorrection = (int16_t)0;
/**
2023-05-04 18:36:16 -07:00
* Idle: Timing adjustment
2023-01-15 05:37:56 -08:00
deg
* offset 16
*/
scaled_channel<int16_t, 100, 1> timingPidCorrection = (int16_t)0;
2023-04-12 12:29:14 -07:00
/**
* @@GAUGE_NAME_TIMING_ADVANCE@@
deg
* offset 18
*/
scaled_channel<int16_t, 50, 1> baseIgnitionAdvance = (int16_t)0;
/**
* @@GAUGE_NAME_ADJUSTED_TIMING@@
deg
* offset 20
*/
scaled_channel<int16_t, 50, 1> correctedIgnitionAdvance = (int16_t)0;
2023-01-15 05:37:56 -08:00
/**
* need 4 byte alignment
units
2023-04-12 12:29:14 -07:00
* offset 22
2023-01-15 05:37:56 -08:00
*/
2023-04-12 12:29:14 -07:00
uint8_t alignmentFill_at_22[2];
2023-01-15 05:37:56 -08:00
/**
2023-05-04 18:36:16 -07:00
* Ign: Dwell voltage correction
2023-04-12 12:29:14 -07:00
* offset 24
2023-01-15 05:37:56 -08:00
*/
float dwellVoltageCorrection = (float)0;
/**
2023-05-04 17:38:45 -07:00
* Ign: Lua timing add
2023-01-15 21:45:06 -08:00
deg
2023-04-12 12:29:14 -07:00
* offset 28
2023-01-15 05:37:56 -08:00
*/
float luaTimingAdd = (float)0;
/**
2023-05-04 17:38:45 -07:00
* Ign: Lua timing mult
2023-01-15 21:45:06 -08:00
deg
2023-04-12 12:29:14 -07:00
* offset 32
2023-01-15 05:37:56 -08:00
*/
2022-04-16 16:33:47 -07:00
float luaTimingMult = (float)0;
2023-04-11 07:45:16 -07:00
/**
Timing Cyl
2023-04-12 12:29:14 -07:00
* offset 36
2023-04-11 07:45:16 -07:00
*/
uint8_t perCylinderTiming[MAX_CYLINDER_COUNT];
};
2023-04-12 12:29:14 -07:00
static_assert(sizeof(ignition_state_s) == 48);
// end
2023-05-04 18:36:16 -07:00
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) controllers/algo/ignition_state.txt Fri May 05 01:35:23 UTC 2023