This commit is contained in:
parent
2ed5e3461a
commit
950c7fb1eb
|
@ -54,8 +54,6 @@ static void setupDefaultSensorInputs() {
|
||||||
|
|
||||||
setTPS1Inputs(H144_IN_TPS, H144_IN_AUX1);
|
setTPS1Inputs(H144_IN_TPS, H144_IN_AUX1);
|
||||||
|
|
||||||
setPPSCalibration(0.73, 4.0, 0.34, 1.86);
|
|
||||||
|
|
||||||
setPPSInputs(EFI_ADC_3, EFI_ADC_14);
|
setPPSInputs(EFI_ADC_3, EFI_ADC_14);
|
||||||
engineConfiguration->mafAdcChannel = EFI_ADC_NONE;
|
engineConfiguration->mafAdcChannel = EFI_ADC_NONE;
|
||||||
engineConfiguration->map.sensor.hwChannel = H144_IN_MAP1;
|
engineConfiguration->map.sensor.hwChannel = H144_IN_MAP1;
|
||||||
|
@ -194,6 +192,4 @@ void setBoardDefaultConfiguration() {
|
||||||
engineConfiguration->ignitionMode = IM_INDIVIDUAL_COILS; // IM_WASTED_SPARK
|
engineConfiguration->ignitionMode = IM_INDIVIDUAL_COILS; // IM_WASTED_SPARK
|
||||||
|
|
||||||
|
|
||||||
// note how these numbers are very flipped m111 defaults?
|
|
||||||
setTPS1Calibration(98, 926, 891, 69);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,13 @@
|
||||||
#include "hyundai.h"
|
#include "hyundai.h"
|
||||||
#include "proteus_meta.h"
|
#include "proteus_meta.h"
|
||||||
|
|
||||||
|
static void set201xHyundai() {
|
||||||
|
setPPSCalibration(0.73, 4.0, 0.34, 1.86);
|
||||||
|
|
||||||
|
// note how these numbers are very flipped m111 defaults?
|
||||||
|
setTPS1Calibration(98, 926, 891, 69);
|
||||||
|
}
|
||||||
|
|
||||||
void setHyundaiPb() {
|
void setHyundaiPb() {
|
||||||
engineConfiguration->cylindersCount = 4;
|
engineConfiguration->cylindersCount = 4;
|
||||||
engineConfiguration->firingOrder = FO_1_3_4_2;
|
engineConfiguration->firingOrder = FO_1_3_4_2;
|
||||||
|
@ -22,6 +29,14 @@ void setHyundaiPb() {
|
||||||
engineConfiguration->trigger.customSkippedToothCount = 1;
|
engineConfiguration->trigger.customSkippedToothCount = 1;
|
||||||
engineConfiguration->globalTriggerAngleOffset = 90;
|
engineConfiguration->globalTriggerAngleOffset = 90;
|
||||||
|
|
||||||
|
set201xHyundai();
|
||||||
|
|
||||||
|
engineConfiguration->map.sensor.type = MT_CUSTOM;
|
||||||
|
engineConfiguration->map.sensor.lowValue = 20;
|
||||||
|
engineConfiguration->mapLowValueVoltage = 0.79;
|
||||||
|
engineConfiguration->map.sensor.highValue = 101.3;
|
||||||
|
engineConfiguration->mapHighValueVoltage = 4;
|
||||||
|
|
||||||
engineConfiguration->vvtMode[0] = VVT_SECOND_HALF;
|
engineConfiguration->vvtMode[0] = VVT_SECOND_HALF;
|
||||||
engineConfiguration->vvtMode[1] = VVT_SECOND_HALF;
|
engineConfiguration->vvtMode[1] = VVT_SECOND_HALF;
|
||||||
|
|
||||||
|
@ -54,12 +69,14 @@ void setProteusHyundaiPb() {
|
||||||
|
|
||||||
|
|
||||||
// something something input levels are not happy for digital input pin?
|
// something something input levels are not happy for digital input pin?
|
||||||
// engineConfiguration->starterControlPin = PROTEUS_LS_14;
|
engineConfiguration->starterControlPin = PROTEUS_LS_14;
|
||||||
engineConfiguration->startStopButtonPin = PROTEUS_IN_AV_6_DIGITAL;
|
engineConfiguration->startStopButtonPin = PROTEUS_IN_AV_6_DIGITAL;
|
||||||
engineConfiguration->startStopButtonMode = PI_DEFAULT;
|
engineConfiguration->startStopButtonMode = PI_DEFAULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void commonGenesisCoupe() {
|
static void commonGenesisCoupe() {
|
||||||
|
set201xHyundai();
|
||||||
|
|
||||||
strncpy(config->luaScript, R"(
|
strncpy(config->luaScript, R"(
|
||||||
|
|
||||||
setTickRate(100)
|
setTickRate(100)
|
||||||
|
|
Loading…
Reference in New Issue