reducing code duplication
This commit is contained in:
parent
3af14c6546
commit
b32bda8275
|
@ -61,10 +61,7 @@ static void setupDefaultSensorInputs() {
|
|||
// 35 In PPS2
|
||||
setPPSInputs(H144_IN_PPS, H144_IN_AUX2);
|
||||
|
||||
engineConfiguration->throttlePedalUpVoltage = 0.4;
|
||||
engineConfiguration->throttlePedalWOTVoltage = 2;
|
||||
engineConfiguration->throttlePedalSecondaryUpVoltage = 0.7;
|
||||
engineConfiguration->throttlePedalSecondaryWOTVoltage = 4.1;
|
||||
setPPSCalibration(0.4, 2, 0.7, 4.1);
|
||||
|
||||
engineConfiguration->mafAdcChannel = EFI_ADC_10;
|
||||
engineConfiguration->map.sensor.hwChannel = EFI_ADC_11;
|
||||
|
|
|
@ -191,10 +191,7 @@ void setBoardDefaultConfiguration() {
|
|||
* https://rusefi.com/online/view.php?msq=630
|
||||
*/
|
||||
setPPSInputs(H144_IN_PPS, EFI_ADC_14);
|
||||
engineConfiguration->throttlePedalUpVoltage = 1.49;
|
||||
engineConfiguration->throttlePedalWOTVoltage = 4.72;
|
||||
engineConfiguration->throttlePedalSecondaryUpVoltage = 1.34;
|
||||
engineConfiguration->throttlePedalSecondaryWOTVoltage = 4.24;
|
||||
setPPSCalibration(1.49, 4.72, 1.34, 4.24);
|
||||
|
||||
engineConfiguration->vrThreshold[0].pin = Gpio::D14;
|
||||
hellenWbo();
|
||||
|
|
|
@ -129,10 +129,7 @@ void setBoardDefaultConfiguration() {
|
|||
|
||||
engineConfiguration->luaOutputPins[0] = Gpio::G5; // 104 ETB Relay
|
||||
|
||||
engineConfiguration->throttlePedalUpVoltage = 0.75;
|
||||
engineConfiguration->throttlePedalWOTVoltage = 4.45;
|
||||
engineConfiguration->throttlePedalSecondaryUpVoltage = 0.43;
|
||||
engineConfiguration->throttlePedalSecondaryWOTVoltage = 2.20;
|
||||
setPPSCalibration(0.75, 4.45, 0.43, 2.20);
|
||||
|
||||
// this calibration reminds me of VAG just flipped?
|
||||
engineConfiguration->tpsMin = 100;
|
||||
|
|
|
@ -58,10 +58,7 @@ static void commonPassatB6() {
|
|||
strcpy(engineConfiguration->engineCode, "BPY");
|
||||
strcpy(engineConfiguration->vehicleName, "test");
|
||||
|
||||
engineConfiguration->throttlePedalUpVoltage = 0.36;
|
||||
engineConfiguration->throttlePedalWOTVoltage = 2.13;
|
||||
engineConfiguration->throttlePedalSecondaryUpVoltage = 0.73;
|
||||
engineConfiguration->throttlePedalSecondaryWOTVoltage = 4.30;
|
||||
setPPSCalibration(0.36, 2.13, 0.73, 4.30);
|
||||
|
||||
engineConfiguration->invertCamVVTSignal = true;
|
||||
|
||||
|
|
|
@ -1151,17 +1151,11 @@ void setEtbLuaAdjustment(percent_t pos) {
|
|||
}
|
||||
|
||||
void set18919_AM810_pedal_position_sensor() {
|
||||
engineConfiguration->throttlePedalUpVoltage = 0.1;
|
||||
engineConfiguration->throttlePedalWOTVoltage = 4.5;
|
||||
engineConfiguration->throttlePedalSecondaryUpVoltage = 0.1;
|
||||
engineConfiguration->throttlePedalSecondaryWOTVoltage = 2.2;
|
||||
setPPSCalibration(0.1, 4.5, 0.1, 2.2);
|
||||
}
|
||||
|
||||
void setToyota89281_33010_pedal_position_sensor() {
|
||||
engineConfiguration->throttlePedalUpVoltage = 0;
|
||||
engineConfiguration->throttlePedalWOTVoltage = 4.1;
|
||||
engineConfiguration->throttlePedalSecondaryUpVoltage = 0.73;
|
||||
engineConfiguration->throttlePedalSecondaryWOTVoltage = 4.9;
|
||||
setPPSCalibration(0, 4.1, 0.73, 4.9);
|
||||
}
|
||||
|
||||
void setHitachiEtbCalibration() {
|
||||
|
|
Loading…
Reference in New Issue