2023-04-12 12:29:14 -07:00
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) controllers/algo/ignition_state.txt Wed Apr 12 19:28:25 UTC 2023
2022-04-13 12:43:05 -07:00
// by class com.rusefi.output.CHeaderConsumer
// begin
# pragma once
# include "rusefi_types.h"
2022-04-13 12:51:11 -07:00
// start of ignition_state_s
struct ignition_state_s {
2022-04-13 12:43:05 -07:00
/**
2023-03-05 08:51:47 -08:00
* " Ignition: base dwell "
2023-01-16 12:23:11 -08:00
ms
2022-04-13 12:43:05 -07:00
* 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
2022-04-13 12:43:05 -07:00
* 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-03-05 08:51:47 -08:00
* " Ignition: 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-03-05 08:51:47 -08:00
* " Ignition: IAT correction "
2023-01-15 05:37:56 -08:00
deg
* offset 14
*/
scaled_channel < int16_t , 100 , 1 > timingIatCorrection = ( int16_t ) 0 ;
/**
2023-03-05 08:51:47 -08:00
* " Ignition: PID correction "
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-03-05 08:51:47 -08:00
* " Ignition: dwell corr "
2023-04-12 12:29:14 -07:00
* offset 24
2023-01-15 05:37:56 -08:00
*/
float dwellVoltageCorrection = ( float ) 0 ;
/**
2023-03-05 08:51:47 -08:00
* " Ignition: Lua 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-03-05 08:51:47 -08:00
* " Ignition: Lua 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 ] ;
2022-04-13 12:43:05 -07:00
} ;
2023-04-12 12:29:14 -07:00
static_assert ( sizeof ( ignition_state_s ) = = 48 ) ;
2022-04-13 12:43:05 -07:00
// end
2023-04-12 12:29:14 -07:00
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) controllers/algo/ignition_state.txt Wed Apr 12 19:28:25 UTC 2023