You would not believe how you invert TLE9201 #4579
This commit is contained in:
parent
fccf48f379
commit
8f0023441e
|
@ -125,6 +125,9 @@ void setBoardConfigOverrides() {
|
||||||
efiSetPadMode("ETB FIX2", H144_OUT_IO13, PAL_MODE_INPUT_ANALOG);
|
efiSetPadMode("ETB FIX2", H144_OUT_IO13, PAL_MODE_INPUT_ANALOG);
|
||||||
}
|
}
|
||||||
} else if (engine->engineState.hellenBoardId == BOARD_ID_154hyundai_c) {
|
} else if (engine->engineState.hellenBoardId == BOARD_ID_154hyundai_c) {
|
||||||
|
// todo You would not believe how you invert TLE9201 #4579
|
||||||
|
engineConfiguration->stepperDcInvertedPins = true;
|
||||||
|
|
||||||
//ETB1
|
//ETB1
|
||||||
// PWM pin
|
// PWM pin
|
||||||
engineConfiguration->etbIo[0].controlPin = H144_OUT_PWM2;
|
engineConfiguration->etbIo[0].controlPin = H144_OUT_PWM2;
|
||||||
|
@ -190,6 +193,9 @@ void setBoardDefaultConfiguration() {
|
||||||
engineConfiguration->useOnlyRisingEdgeForTrigger = true;
|
engineConfiguration->useOnlyRisingEdgeForTrigger = true;
|
||||||
setAlgorithm(LM_SPEED_DENSITY);
|
setAlgorithm(LM_SPEED_DENSITY);
|
||||||
|
|
||||||
|
engineConfiguration->etb.pFactor = 8.8944;
|
||||||
|
engineConfiguration->etb.iFactor = 70.2307;
|
||||||
|
engineConfiguration->etb.dFactor = 0.1855;
|
||||||
|
|
||||||
engineConfiguration->injectorCompensationMode = ICM_FixedRailPressure;
|
engineConfiguration->injectorCompensationMode = ICM_FixedRailPressure;
|
||||||
|
|
||||||
|
@ -204,10 +210,9 @@ void setBoardDefaultConfiguration() {
|
||||||
engineConfiguration->crankingInjectionMode = IM_SIMULTANEOUS;
|
engineConfiguration->crankingInjectionMode = IM_SIMULTANEOUS;
|
||||||
engineConfiguration->injectionMode = IM_SIMULTANEOUS;//IM_BATCH;// IM_SEQUENTIAL;
|
engineConfiguration->injectionMode = IM_SIMULTANEOUS;//IM_BATCH;// IM_SEQUENTIAL;
|
||||||
|
|
||||||
// very similar to Nissan?
|
engineConfiguration->tpsMin = 98;
|
||||||
engineConfiguration->tpsMin = 100;
|
engineConfiguration->tpsMax = 926;
|
||||||
engineConfiguration->tpsMax = 914;
|
|
||||||
|
|
||||||
engineConfiguration->tps1SecondaryMin = 880;
|
engineConfiguration->tps1SecondaryMin = 891;
|
||||||
engineConfiguration->tps1SecondaryMax = 68;
|
engineConfiguration->tps1SecondaryMax = 69;
|
||||||
}
|
}
|
||||||
|
|
|
@ -123,6 +123,7 @@ DcMotor* initDcMotor(const dc_io& io, size_t index, bool useTwoWires) {
|
||||||
io.directionPin1,
|
io.directionPin1,
|
||||||
io.directionPin2,
|
io.directionPin2,
|
||||||
io.disablePin,
|
io.disablePin,
|
||||||
|
// todo You would not believe how you invert TLE9201 #4579
|
||||||
engineConfiguration->stepperDcInvertedPins,
|
engineConfiguration->stepperDcInvertedPins,
|
||||||
&engine->executor,
|
&engine->executor,
|
||||||
engineConfiguration->etbFreq
|
engineConfiguration->etbFreq
|
||||||
|
|
Loading…
Reference in New Issue