2023-01-16 12:23:11 -08:00
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) controllers/algo/ignition_state.txt Mon Jan 16 20:22:12 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-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-01-15 05:37:56 -08:00
* ignition dwell duration
* 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-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 ;
/**
deg
* offset 14
*/
scaled_channel < int16_t , 100 , 1 > timingIatCorrection = ( int16_t ) 0 ;
/**
deg
* offset 16
*/
scaled_channel < int16_t , 100 , 1 > timingPidCorrection = ( int16_t ) 0 ;
/**
* need 4 byte alignment
units
* offset 18
*/
uint8_t alignmentFill_at_18 [ 2 ] ;
/**
* offset 20
*/
float dwellVoltageCorrection = ( float ) 0 ;
/**
2023-01-15 21:45:06 -08:00
deg
2023-01-15 05:37:56 -08:00
* offset 24
*/
float luaTimingAdd = ( float ) 0 ;
/**
2023-01-15 21:45:06 -08:00
deg
2023-01-15 05:37:56 -08:00
* offset 28
*/
2022-04-16 16:33:47 -07:00
float luaTimingMult = ( float ) 0 ;
2022-04-13 12:43:05 -07:00
} ;
2023-01-15 05:37:56 -08:00
static_assert ( sizeof ( ignition_state_s ) = = 32 ) ;
2022-04-13 12:43:05 -07:00
// end
2023-01-16 12:23:11 -08:00
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) controllers/algo/ignition_state.txt Mon Jan 16 20:22:12 UTC 2023