auto-sync

This commit is contained in:
rusEfi 2015-01-12 15:03:38 -06:00
parent 51a5a1adb9
commit 7ad1f35ff5
2 changed files with 46 additions and 20 deletions

View File

@ -25,7 +25,7 @@ typedef struct {
* This value controls what RPM values we consider 'cranking' (any RPM below 'crankingRpm')
* Anything above 'crankingRpm' would be 'running'
*/
short int crankingRpm;
int16_t crankingRpm;
} cranking_parameters_s;
#define INJECTION_PIN_COUNT 12
@ -247,7 +247,7 @@ typedef struct {
brain_pin_e acRelayPin;
pin_output_mode_e acRelayPinMode;
short int fsioFrequency[LE_COMMAND_COUNT];
int16_t fsioFrequency[LE_COMMAND_COUNT];
brain_pin_e hip9011CsPin;
brain_pin_e hip9011IntHoldPin;
@ -317,20 +317,20 @@ typedef struct {
* PS: Funny name, right? :)
* todo: make this a bit on some bit field
*/
short int directSelfStimulation; // size 2, offset 328
int16_t directSelfStimulation; // size 2, offset 328
// todo: extract these two fields into a structure
// todo: we need two sets of TPS parameters - modern ETBs have to sensors
short int tpsMin; // size 2, offset 330
int16_t tpsMin; // size 2, offset 330
// tpsMax value as 10 bit ADC value. Not Voltage!
short int tpsMax; // size 2, offset 332
short int analogChartMode;
int16_t tpsMax; // size 2, offset 332
int16_t analogChartMode;
/**
* todo: finish implementation. These values are used for TPS disconnect detection
*/
short int tpsErrorLowValue;
short int tpsErrorHighValue;
int16_t tpsErrorLowValue;
int16_t tpsErrorHighValue;
float primingSquirtDurationMs;
/**
@ -587,11 +587,11 @@ typedef struct {
int ignMathCalculateAtIndex;
short int acCutoffLowRpm;
short int acCutoffHighRpm;
int16_t acCutoffLowRpm;
int16_t acCutoffHighRpm;
short int acIdleRpmBump;
short int unusedShort;
int16_t acIdleRpmBump;
int16_t unusedShort;
adc_channel_e vRefAdcChannel;

View File

@ -1,11 +1,37 @@
# this file defines the format of rusEfi persistent configuration structure
# this file is processed by ../java_tools/config_definition.jar tool
#
# comments start with '#'
#
# each field is declared as
# type;name;comment
! this file defines the format of rusEfi persistent configuration structure
! this file is processed by ../java_tools/config_definition.jar tool
!
! comments start with '#'
!
! each field is declared as
! type;name;comment
engine_type_e;engineType;http://rusefi.com/wiki/index.php?title=Manual:Engine_Type
int;headerMagicValue;this magic number is used to make sure that what we read from Flash is in fact some configuration
int;headerMagicValue;this magic number is used to make sure that what we read from Flash is in fact some configuration
#define CLT_CURVE_SIZE 16
#define IAT_CURVE_SIZE 16
#define VBAT_INJECTOR_CURVE_SIZE 8
#define IGN_LOAD_COUNT 16
#define IGN_RPM_COUNT 16
array float VBAT_INJECTOR_CURVE_SIZE;battInjectorLagCorrBins;
array float VBAT_INJECTOR_CURVE_SIZE;battInjectorLagCorr;
array float CLT_CURVE_SIZE;cltFuelCorrBins;
array float CLT_CURVE_SIZE;cltFuelCorr;
array float IAT_CURVE_SIZE;iatFuelCorrBins;
array float IAT_CURVE_SIZE;iatFuelCorr;
int16_t;directSelfStimulation;Should the trigger emulator push data right into trigger input, eliminating the need for physical jumper wires?\nPS: Funny name, right? :)\ntodo: make this a bit on some bit field
int16_t;tpsMin;todo: extract these two fields into a structure\ntodo: we need two sets of TPS parameters - modern ETBs have to sensors
int16_t;analogChartMode;todo: finish implementation. These values are used for TPS disconnect detection
int16_t;tpsErrorLowValue;
int16_t;tpsErrorHighValue