mirror of https://github.com/rusefi/rusefi-1.git
one step back :) instant RPM does not look right
This commit is contained in:
parent
86e421e0ee
commit
d90f0481b0
|
@ -553,6 +553,12 @@ void setMiataNB2_MRE(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
|||
// TLE8888_PIN_23: "33 - GP Out 3"
|
||||
boardConfiguration->malfunctionIndicatorPin = TLE8888_PIN_23;
|
||||
|
||||
//set idle_offset 0
|
||||
engineConfiguration->idleRpmPid.offset = 0;
|
||||
engineConfiguration->idleRpmPid.pFactor = 0.2;
|
||||
engineConfiguration->idleRpmPid.iFactor = 0.0001;
|
||||
engineConfiguration->idleRpmPid.dFactor = 5;
|
||||
engineConfiguration->idleRpmPid.periodMs = 10;
|
||||
|
||||
engineConfiguration->bc.isFasterEngineSpinUpEnabled = true;
|
||||
|
||||
|
|
|
@ -222,7 +222,8 @@ static percent_t automaticIdleController(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
|||
|
||||
efitick_t nowNt = getTimeNowNt();
|
||||
// check if within the dead zone
|
||||
float rpm = engine->triggerCentral.triggerState.calculateInstantRpm(NULL, nowNt PASS_ENGINE_PARAMETER_SUFFIX);
|
||||
//float rpm = engine->triggerCentral.triggerState.calculateInstantRpm(NULL, nowNt PASS_ENGINE_PARAMETER_SUFFIX);
|
||||
float rpm = GET_RPM();
|
||||
if (absI(rpm - targetRpm) <= CONFIG(idlePidRpmDeadZone)) {
|
||||
engine->engineState.idle.idleState = RPM_DEAD_ZONE;
|
||||
// current RPM is close enough, no need to change anything
|
||||
|
|
|
@ -439,6 +439,8 @@ static void setDefaultFuelCutParameters(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
|||
}
|
||||
|
||||
static void setDefaultCrankingSettings(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||
CONFIG(useTLE8888_cranking_hack) = true;
|
||||
|
||||
setLinearCurve(engineConfiguration->crankingTpsCoef, CRANKING_CURVE_SIZE, /*from*/1, /*to*/1, 1);
|
||||
setLinearCurve(engineConfiguration->crankingTpsBins, CRANKING_CURVE_SIZE, 0, 100, 1);
|
||||
|
||||
|
|
|
@ -814,6 +814,6 @@ int getRusEfiVersion(void) {
|
|||
if (initBootloader() != 0)
|
||||
return 123;
|
||||
#endif /* EFI_BOOTLOADER_INCLUDE_CODE */
|
||||
return 20190909;
|
||||
return 20190910;
|
||||
}
|
||||
#endif /* EFI_UNIT_TEST */
|
||||
|
|
Loading…
Reference in New Issue