mirror of https://github.com/FOME-Tech/fome-fw.git
auto-sync
This commit is contained in:
parent
24dbf8c153
commit
9f392f5659
|
@ -261,7 +261,7 @@ void setDodgeNeonNGCEngineConfiguration(DECLARE_ENGINE_PARAMETER_F) {
|
|||
engineConfiguration->warmupAfrPid.pFactor = -0.2;
|
||||
engineConfiguration->warmupAfrPid.iFactor = -0.0005;
|
||||
// engineConfiguration->warmupAfrPid.dFactor = -0.02;
|
||||
engineConfiguration->debugMode = WARMUP_ENRICH;
|
||||
engineConfiguration->debugMode = DBG_WARMUP_ENRICH;
|
||||
|
||||
// set global_trigger_offset_angle 38
|
||||
engineConfiguration->globalTriggerAngleOffset = 38;
|
||||
|
|
|
@ -273,7 +273,7 @@ void setFordEscortGt(DECLARE_ENGINE_PARAMETER_F) {
|
|||
engineConfiguration->warmupAfrPid.pFactor = -0.2;
|
||||
engineConfiguration->warmupAfrPid.iFactor = -0.0005;
|
||||
// engineConfiguration->warmupAfrPid.dFactor = -0.02;
|
||||
engineConfiguration->debugMode = WARMUP_ENRICH;
|
||||
engineConfiguration->debugMode = DBG_WARMUP_ENRICH;
|
||||
|
||||
|
||||
engineConfiguration->tpsAccelEnrichmentThreshold = 40;
|
||||
|
|
|
@ -707,9 +707,14 @@ void updateTunerStudioState(TunerStudioOutputChannels *tsOutputChannels DECLARE_
|
|||
}
|
||||
|
||||
if (engineConfiguration->debugMode == DBG_TRIGGER_INPUT) {
|
||||
tsOutputChannels->debugIntField1 = engine->triggerCentral.getHwEventCounter(0);
|
||||
tsOutputChannels->debugIntField2 = engine->triggerCentral.getHwEventCounter(1);
|
||||
tsOutputChannels->debugIntField3 = engine->triggerCentral.getHwEventCounter(2);
|
||||
tsOutputChannels->debugIntField1 = engine->triggerCentral.getHwEventCounter((int)SHAFT_PRIMARY_FALLING);
|
||||
tsOutputChannels->debugIntField2 = engine->triggerCentral.getHwEventCounter((int)SHAFT_SECONDARY_FALLING);
|
||||
tsOutputChannels->debugIntField3 = engine->triggerCentral.getHwEventCounter((int)SHAFT_3RD_FALLING);
|
||||
|
||||
tsOutputChannels->debugFloatField1 = engine->triggerCentral.getHwEventCounter((int)SHAFT_PRIMARY_RISING);
|
||||
tsOutputChannels->debugFloatField2 = engine->triggerCentral.getHwEventCounter((int)SHAFT_SECONDARY_RISING);
|
||||
tsOutputChannels->debugFloatField3 = engine->triggerCentral.getHwEventCounter((int)SHAFT_3RD_RISING);
|
||||
|
||||
} else if (engineConfiguration->debugMode == FSIO_ADC) {
|
||||
// todo: implement a proper loop
|
||||
if (engineConfiguration->fsioAdc[0] != EFI_ADC_NONE) {
|
||||
|
@ -720,8 +725,11 @@ void updateTunerStudioState(TunerStudioOutputChannels *tsOutputChannels DECLARE_
|
|||
tsOutputChannels->debugIntField1 = engine->engineState.vssCounter;
|
||||
} else if (engineConfiguration->debugMode == DBG_SD_CARD) {
|
||||
tsOutputChannels->debugIntField1 = engine->engineState.totalLoggedBytes;
|
||||
} else if (engineConfiguration->debugMode == DBG_CRANKING_DETAILS) {
|
||||
tsOutputChannels->debugIntField1 = engine->rpmCalculator.getRevolutionCounterSinceStart();
|
||||
}
|
||||
|
||||
|
||||
tsOutputChannels->wallFuelAmount = ENGINE(wallFuel).getWallFuel(0);
|
||||
tsOutputChannels->wallFuelCorrection = ENGINE(wallFuelCorrection);
|
||||
// TPS acceleration
|
||||
|
|
|
@ -185,7 +185,7 @@ void EngineState::periodicFastCallback(DECLARE_ENGINE_PARAMETER_F) {
|
|||
cltFuelCorrection = warmupAfrPid.getValue(warmupTargetAfr, currentAfr, 1);
|
||||
}
|
||||
#if ! EFI_UNIT_TEST || defined(__DOXYGEN__)
|
||||
if (engineConfiguration->debugMode == WARMUP_ENRICH) {
|
||||
if (engineConfiguration->debugMode == DBG_WARMUP_ENRICH) {
|
||||
tsOutputChannels.debugFloatField1 = warmupTargetAfr;
|
||||
warmupAfrPid.postState(&tsOutputChannels);
|
||||
}
|
||||
|
|
|
@ -715,7 +715,7 @@ void setDefaultConfiguration(DECLARE_ENGINE_PARAMETER_F) {
|
|||
engineConfiguration->isWaveAnalyzerEnabled = true;
|
||||
engineConfiguration->isIdleThreadEnabled = true;
|
||||
|
||||
engineConfiguration->debugMode = ALTERNATOR_PID;
|
||||
engineConfiguration->debugMode = DBG_ALTERNATOR_PID;
|
||||
|
||||
engineConfiguration->acIdleRpmBump = 200;
|
||||
engineConfiguration->knockDetectionWindowStart = 35;
|
||||
|
|
|
@ -644,16 +644,16 @@ typedef enum {
|
|||
} brain_pin_e;
|
||||
|
||||
typedef enum {
|
||||
ALTERNATOR_PID = 0,
|
||||
DBG_ALTERNATOR_PID = 0,
|
||||
DBG_TPS_ACCEL = 1,
|
||||
WARMUP_ENRICH = 2,
|
||||
IDLE = 3,
|
||||
DBG_WARMUP_ENRICH = 2,
|
||||
DBG_IDLE = 3,
|
||||
DBG_EL_ACCEL = 4,
|
||||
DBG_TRIGGER_INPUT = 5,
|
||||
FSIO_ADC = 6,
|
||||
AUX_PID_1 = 7,
|
||||
DBG_VVT = 8,
|
||||
DBG_POST_CRANKING_ENRICH = 9,
|
||||
DBG_CRANKING_DETAILS = 9,
|
||||
DBG_IGNITION_TIMING = 10,
|
||||
DBG_FUEL_PID_CORRECTION = 11,
|
||||
DBG_VEHICLE_SPEED_SENSOR = 12,
|
||||
|
|
|
@ -59,7 +59,7 @@ static msg_t AltCtrlThread(int param) {
|
|||
chThdSleepMilliseconds(dt);
|
||||
|
||||
#if ! EFI_UNIT_TEST || defined(__DOXYGEN__)
|
||||
if (engineConfiguration->debugMode == ALTERNATOR_PID) {
|
||||
if (engineConfiguration->debugMode == DBG_ALTERNATOR_PID) {
|
||||
// this block could be executed even in on/off alternator control mode
|
||||
// but at least we would reflect latest state
|
||||
tsOutputChannels.debugFloatField1 = currentAltDuty;
|
||||
|
@ -88,7 +88,7 @@ static msg_t AltCtrlThread(int param) {
|
|||
bool newState = (vBatt < targetVoltage - h) || (currentPlainOnOffState && vBatt < targetVoltage);
|
||||
enginePins.alternatorPin.setValue(newState);
|
||||
currentPlainOnOffState = newState;
|
||||
if (engineConfiguration->debugMode == ALTERNATOR_PID) {
|
||||
if (engineConfiguration->debugMode == DBG_ALTERNATOR_PID) {
|
||||
tsOutputChannels.debugIntField1 = newState;
|
||||
|
||||
}
|
||||
|
|
|
@ -115,7 +115,7 @@ static void manualIdleController(int positionPercent) {
|
|||
cltCorrectedPosition = maxF(cltCorrectedPosition, 0.01);
|
||||
cltCorrectedPosition = minF(cltCorrectedPosition, 99.9);
|
||||
|
||||
if (engineConfiguration->debugMode == IDLE) {
|
||||
if (engineConfiguration->debugMode == DBG_IDLE) {
|
||||
tsOutputChannels.debugFloatField1 = actualIdlePosition;
|
||||
}
|
||||
|
||||
|
|
|
@ -113,7 +113,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", "VSS", "SD card", "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 PID", "Cranking", "Timing", "Closed-loop fuel corr", "VSS", "SD card", "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 20170209;
|
||||
return 20170212;
|
||||
}
|
||||
|
|
|
@ -1148,6 +1148,8 @@ fileVersion = { 20161225 }
|
|||
debugFloatField3Gauge = debugFloatField3, "debug f3", "%", 0, 100, 0, 0, 100, 100, 4, 4
|
||||
debugFloatField4Gauge = debugFloatField4, "debug f4", "%", 0, 100, 0, 0, 100, 100, 4, 4
|
||||
debugFloatField5Gauge = debugFloatField5, "debug f5", "%", 0, 100, 0, 0, 100, 100, 4, 4
|
||||
debugFloatField6Gauge = debugFloatField6, "debug f6", "%", 0, 100, 0, 0, 100, 100, 4, 4
|
||||
debugFloatField7Gauge = debugFloatField7, "debug f7", "%", 0, 100, 0, 0, 100, 100, 4, 4
|
||||
debugIntField1Gauge = debugIntField1, "debug i1", "%", 0, 100, 0, 0, 100, 100, 0, 0
|
||||
debugIntField2Gauge = debugIntField2, "debug i2", "%", 0, 100, 0, 0, 100, 100, 0, 0
|
||||
debugIntField3Gauge = debugIntField3, "debug i3", "%", 0, 100, 0, 0, 100, 100, 0, 0
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package com.rusefi.config;
|
||||
|
||||
// this file was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sun Feb 12 01:30:52 EST 2017
|
||||
// this file was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sun Feb 12 20:28:45 EST 2017
|
||||
public class Fields {
|
||||
public static final int LE_COMMAND_LENGTH = 200;
|
||||
public static final int FSIO_ADC_COUNT = 4;
|
||||
|
@ -1510,7 +1510,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", "VSS", "SD card", "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 PID", "Cranking", "Timing", "Closed-loop fuel corr", "VSS", "SD card", "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