mirror of https://github.com/rusefi/rusefi.git
setCustomMap API
This commit is contained in:
parent
4d9c7a83ab
commit
cc43b8fb25
|
@ -115,11 +115,7 @@ void setBoardDefaultConfiguration() {
|
|||
// engineConfiguration->malfunctionIndicatorPin = Gpio::H144_OUT_IO7;
|
||||
|
||||
// how come this is not denso 183?!
|
||||
engineConfiguration->map.sensor.type = MT_CUSTOM;
|
||||
engineConfiguration->map.sensor.lowValue = 11.4;
|
||||
engineConfiguration->mapLowValueVoltage = 0.5;
|
||||
engineConfiguration->map.sensor.highValue = 170.7;
|
||||
engineConfiguration->mapHighValueVoltage = 4.8;
|
||||
setCustomMap(/*lowValue*/ 11.4, /*mapLowValueVoltage*/ 0.5, /*highValue*/ 170.7, 4.8);
|
||||
|
||||
// engineConfiguration->brakePedalPin = Gpio::H144_IN_CAM;
|
||||
// engineConfiguration->acRelayPin = Gpio::H144_LS_5;
|
||||
|
|
|
@ -63,11 +63,7 @@ void setHyundaiPb() {
|
|||
engineConfiguration->injectionMode = IM_SEQUENTIAL;
|
||||
engineConfiguration->crankingInjectionMode = IM_SEQUENTIAL;
|
||||
|
||||
engineConfiguration->map.sensor.type = MT_CUSTOM;
|
||||
engineConfiguration->map.sensor.lowValue = 20;
|
||||
engineConfiguration->mapLowValueVoltage = 0.79;
|
||||
engineConfiguration->map.sensor.highValue = 101.3;
|
||||
engineConfiguration->mapHighValueVoltage = 4;
|
||||
setCustomMap(/*lowValue*/ 20, /*mapLowValueVoltage*/ 0.79, /*highValue*/ 101.3, /*mapHighValueVoltage*/ 4);
|
||||
|
||||
engineConfiguration->mc33_hpfp_i_peak = 10;
|
||||
engineConfiguration->mc33_hpfp_i_hold = 4;
|
||||
|
|
|
@ -38,12 +38,7 @@ void setM111EngineConfiguration() {
|
|||
// todo: i wonder if these custom IAT and CLT curves are effectively same?
|
||||
setAtSensor(&engineConfiguration->clt, /*temp low*/0, 5750, /*temp mid*/30, 1750, /*temp high*/ 50, 750);
|
||||
|
||||
engineConfiguration->map.sensor.type = MT_CUSTOM;
|
||||
// GM TMAP is recommended
|
||||
engineConfiguration->map.sensor.lowValue = 20;
|
||||
engineConfiguration->mapLowValueVoltage = 0.3;
|
||||
engineConfiguration->map.sensor.highValue = 250;
|
||||
engineConfiguration->mapHighValueVoltage = 4.65;
|
||||
setCustomMap(/*lowValue*/ 20, 0.3, 250, 4.65);
|
||||
|
||||
engineConfiguration->idle.solenoidPin = Gpio::Unassigned;
|
||||
engineConfiguration->etb.pFactor = 5.12;
|
||||
|
|
|
@ -21,13 +21,9 @@ void setSlingshot() {
|
|||
engineConfiguration->twoWireBatchIgnition = true;
|
||||
engineConfiguration->globalTriggerAngleOffset = 110;
|
||||
|
||||
//engineConfiguration->map.sensor.type = MT_GM_1_BAR;
|
||||
engineConfiguration->map.sensor.type = MT_CUSTOM;
|
||||
// GM TMAP is recommended
|
||||
engineConfiguration->map.sensor.lowValue = 20;
|
||||
engineConfiguration->mapLowValueVoltage = 0.3;
|
||||
engineConfiguration->map.sensor.highValue = 250;
|
||||
engineConfiguration->mapHighValueVoltage = 4.65;
|
||||
setCustomMap(/*lowValue*/ 20, 0.3, 250, 4.65);
|
||||
|
||||
#if HW_PROTEUS
|
||||
setProteusEtbIO();
|
||||
engineConfiguration->invertCamVVTSignal = true;
|
||||
|
|
|
@ -264,6 +264,14 @@ void setTPS1Calibration(uint16_t tpsMin, uint16_t tpsMax, uint16_t tps1Secondary
|
|||
engineConfiguration->tps1SecondaryMax = tps1SecondaryMax;
|
||||
}
|
||||
|
||||
void setCustomMap(float lowValue, float mapLowValueVoltage, float highValue, float mapHighValueVoltage) {
|
||||
engineConfiguration->map.sensor.type = MT_CUSTOM;
|
||||
engineConfiguration->map.sensor.lowValue = lowValue;
|
||||
engineConfiguration->mapLowValueVoltage = mapLowValueVoltage;
|
||||
engineConfiguration->map.sensor.highValue = highValue;
|
||||
engineConfiguration->mapHighValueVoltage = mapHighValueVoltage;
|
||||
}
|
||||
|
||||
void setPPSCalibration(float primaryUp, float primaryDown, float secondaryUp, float secondaryDown) {
|
||||
engineConfiguration->throttlePedalUpVoltage = primaryUp;
|
||||
engineConfiguration->throttlePedalWOTVoltage = primaryDown;
|
||||
|
|
|
@ -19,6 +19,8 @@ void setTPS1Calibration(uint16_t tpsMin, uint16_t tpsMax);
|
|||
// Most ETB require redundant dual channel TPS
|
||||
void setTPS1Calibration(uint16_t tpsMin, uint16_t tpsMax, uint16_t tps1SecondaryMin, uint16_t tps1SecondaryMax);
|
||||
|
||||
void setCustomMap(float lowValue, float mapLowValueVoltage, float highValue, float mapHighValueVoltage);
|
||||
|
||||
void setEtbPID(float p, float i, float d);
|
||||
|
||||
// split threshold
|
||||
|
|
Loading…
Reference in New Issue