auto-sync
This commit is contained in:
parent
08b7a17a8d
commit
0f070ea5e9
|
@ -706,7 +706,7 @@ void updateTunerStudioState(TunerStudioOutputChannels *tsOutputChannels DECLARE_
|
|||
tsOutputChannels->debugIntField1 = engine->tpsAccelEnrichment.cb.getSize();
|
||||
}
|
||||
|
||||
if (engineConfiguration->debugMode == TRIGGER_COUNT) {
|
||||
if (engineConfiguration->debugMode == DBG_TRIGGER_INPUT) {
|
||||
tsOutputChannels->debugIntField1 = engine->triggerCentral.getHwEventCounter(0);
|
||||
tsOutputChannels->debugIntField2 = engine->triggerCentral.getHwEventCounter(1);
|
||||
tsOutputChannels->debugIntField3 = engine->triggerCentral.getHwEventCounter(2);
|
||||
|
@ -716,7 +716,8 @@ void updateTunerStudioState(TunerStudioOutputChannels *tsOutputChannels DECLARE_
|
|||
strcpy(buf, "adcX");
|
||||
tsOutputChannels->debugFloatField1 = getVoltage("fsio", engineConfiguration->fsioAdc[0]);
|
||||
}
|
||||
|
||||
} else if (engineConfiguration->debugMode == DBG_VEHICLE_SPEED_SENSOR) {
|
||||
tsOutputChannels->debugIntField1 = engine->engineState.vssCounter;
|
||||
}
|
||||
|
||||
tsOutputChannels->wallFuelAmount = ENGINE(wallFuel).getWallFuel(0);
|
||||
|
|
|
@ -84,7 +84,7 @@ static angle_t getRunningAdvance(int rpm, float engineLoad DECLARE_ENGINE_PARAME
|
|||
} else {
|
||||
iatCorrection = iatAdvanceCorrectionMap.getValue((float) rpm, engine->engineState.iat);
|
||||
}
|
||||
if (engineConfiguration->debugMode == DBG_TIMING) {
|
||||
if (engineConfiguration->debugMode == DBG_IGNITION_TIMING) {
|
||||
#if !EFI_UNIT_TEST || defined(__DOXYGEN__)
|
||||
tsOutputChannels.debugFloatField1 = iatCorrection;
|
||||
tsOutputChannels.debugFloatField2 = engine->engineState.cltTimingCorrection;
|
||||
|
|
|
@ -136,6 +136,7 @@ EngineState::EngineState() {
|
|||
lastErrorCode = 0;
|
||||
crankingTime = 0;
|
||||
timeSinceCranking = 0;
|
||||
vssCounter = 0;
|
||||
targetAFR = 0;
|
||||
tpsAccelEnrich = 0;
|
||||
tChargeK = 0;
|
||||
|
|
|
@ -150,6 +150,9 @@ public:
|
|||
|
||||
float currentAfr;
|
||||
|
||||
int vssCounter;
|
||||
|
||||
|
||||
/**
|
||||
* pre-calculated value from simple fuel lookup
|
||||
*/
|
||||
|
|
|
@ -649,14 +649,14 @@ typedef enum {
|
|||
WARMUP_ENRICH = 2,
|
||||
IDLE = 3,
|
||||
DBG_EL_ACCEL = 4,
|
||||
TRIGGER_COUNT = 5,
|
||||
DBG_TRIGGER_INPUT = 5,
|
||||
FSIO_ADC = 6,
|
||||
AUX_PID_1 = 7,
|
||||
DBG_VVT = 8,
|
||||
DBG_POST_CRANKING_ENRICH = 9,
|
||||
DBG_TIMING = 10,
|
||||
DBG_IGNITION_TIMING = 10,
|
||||
DBG_FUEL_PID_CORRECTION = 11,
|
||||
DM_12 = 12,
|
||||
DBG_VEHICLE_SPEED_SENSOR = 12,
|
||||
DM_13 = 13,
|
||||
DM_14 = 14,
|
||||
DM_15 = 15,
|
||||
|
|
|
@ -20,7 +20,6 @@ static Logging *logger;
|
|||
|
||||
static efitick_t lastSignalTimeNt = 0;
|
||||
static efitick_t vssDiff = 0;
|
||||
static int vssCounter = 0;
|
||||
|
||||
#define DEFAULT_MOCK_SPEED -1
|
||||
static float mockVehicleSpeed = DEFAULT_MOCK_SPEED; // in kilometers per hour
|
||||
|
@ -45,7 +44,7 @@ float getVehicleSpeed(void) {
|
|||
}
|
||||
|
||||
static void vsAnaWidthCallback(void) {
|
||||
vssCounter++;
|
||||
engine->engineState.vssCounter++;
|
||||
efitick_t nowNt = getTimeNowNt();
|
||||
vssDiff = nowNt - lastSignalTimeNt;
|
||||
lastSignalTimeNt = nowNt;
|
||||
|
@ -57,7 +56,7 @@ static void speedInfo(void) {
|
|||
|
||||
scheduleMsg(logger, "c=%f eventCounter=%d speed=%f",
|
||||
engineConfiguration->vehicleSpeedCoef,
|
||||
vssCounter,
|
||||
engine->engineState.vssCounter,
|
||||
getVehicleSpeed());
|
||||
scheduleMsg(logger, "vss diff %d", vssDiff);
|
||||
|
||||
|
|
|
@ -109,7 +109,7 @@ float baseFuel;+Fuel squirt duration while cranking\nA number of curves adjust t
|
|||
int16_t rpm;+Cranking mode threshold. Special cranking logic controls fuel and spark while RPM is below this threshold\nset cranking_rpm X;"RPM", 1, 0, 0, 3000, 0
|
||||
end_struct
|
||||
|
||||
#define debug_mode_e_enum "Alternator_PID", "TPS accel enrich", "Warmup PID", "IDLE", "EL accl enrich", "Trigger Counters", "FSIO_ADC", "AUX_PID_1", "VVT", "Post-crank enrich", "Timing", "Closed-loop fuel corr", "mode12", "mode13", "mode14", "mode15"
|
||||
#define debug_mode_e_enum "Alternator_PID", "TPS accel enrich", "Warmup PID", "IDLE", "EL accl enrich", "Trigger Counters", "FSIO_ADC", "AUX_PID_1", "VVT", "Post-crank enrich", "Timing", "Closed-loop fuel corr", "VSS", "mode13", "mode14", "mode15"
|
||||
custom debug_mode_e 4 bits, U32, @OFFSET@, [0:3], @@debug_mode_e_enum@@
|
||||
|
||||
#define vvt_mode_e_enum "First half", "Second half", "2GZ", "Miata NB2", "mode4", "mode5", "mode6", "mode7"
|
||||
|
|
|
@ -249,5 +249,5 @@ int getRusEfiVersion(void) {
|
|||
return 123; // this is here to make the compiler happy about the unused array
|
||||
if (UNUSED_CCM_SIZE[0] * 0 != 0)
|
||||
return 3211; // this is here to make the compiler happy about the unused array
|
||||
return 20170208;
|
||||
return 20170209;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package com.rusefi.config;
|
||||
|
||||
// this file was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Mon Feb 06 18:33:11 EST 2017
|
||||
// this file was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Thu Feb 09 11:38:10 EST 2017
|
||||
public class Fields {
|
||||
public static final int LE_COMMAND_LENGTH = 200;
|
||||
public static final int FSIO_ADC_COUNT = 4;
|
||||
|
@ -1507,7 +1507,7 @@ public class Fields {
|
|||
public static final Field TPSDECELENLEANMENTTHRESHOLD = Field.create("TPSDECELENLEANMENTTHRESHOLD", 2232, FieldType.FLOAT);
|
||||
public static final Field TPSDECELENLEANMENTMULTIPLIER = Field.create("TPSDECELENLEANMENTMULTIPLIER", 2236, FieldType.FLOAT);
|
||||
public static final Field SLOWADCALPHA = Field.create("SLOWADCALPHA", 2240, FieldType.FLOAT);
|
||||
public static final String[] debug_mode_e = {"Alternator_PID", "TPS accel enrich", "Warmup PID", "IDLE", "EL accl enrich", "Trigger Counters", "FSIO_ADC", "AUX_PID_1", "VVT", "Post-crank enrich", "Timing", "Closed-loop fuel corr", "mode12", "mode13", "mode14", "mode15"};
|
||||
public static final String[] debug_mode_e = {"Alternator_PID", "TPS accel enrich", "Warmup PID", "IDLE", "EL accl enrich", "Trigger Counters", "FSIO_ADC", "AUX_PID_1", "VVT", "Post-crank enrich", "Timing", "Closed-loop fuel corr", "VSS", "mode13", "mode14", "mode15"};
|
||||
public static final Field DEBUGMODE = Field.create("DEBUGMODE", 2244, FieldType.INT, debug_mode_e);
|
||||
public static final Field WARMUPAFRPID_PFACTOR = Field.create("WARMUPAFRPID_PFACTOR", 2248, FieldType.FLOAT);
|
||||
public static final Field WARMUPAFRPID_IFACTOR = Field.create("WARMUPAFRPID_IFACTOR", 2252, FieldType.FLOAT);
|
||||
|
|
Loading…
Reference in New Issue