refactoring: helper method

This commit is contained in:
rusefillc 2022-10-30 00:20:15 -04:00
parent d6f6dd3a56
commit d4e10d0ff9
5 changed files with 6 additions and 10 deletions

View File

@ -99,8 +99,7 @@ static void setupDefaultSensorInputs() {
engineConfiguration->triggerInputPins[1] = H144_IN_CAM;
engineConfiguration->camInputs[0] = Gpio::Unassigned;
engineConfiguration->tps1_1AdcChannel = H144_IN_TPS;
engineConfiguration->tps1_2AdcChannel = H144_IN_AUX1;
setTPS1Inputs(H144_IN_TPS, H144_IN_AUX1);
setPPSInputs(H144_IN_PPS, H144_IN_AUX2);

View File

@ -76,8 +76,7 @@ static void setupDefaultSensorInputs() {
engineConfiguration->triggerInputPins[1] = Gpio::Unassigned;
engineConfiguration->camInputs[0] = H144_IN_SENS4;
engineConfiguration->tps1_1AdcChannel = H144_IN_TPS;
engineConfiguration->tps1_2AdcChannel = H144_IN_AUX1;
setTPS1Inputs(H144_IN_TPS, H144_IN_AUX1);
setPPSInputs(H144_IN_PPS, H144_IN_AUX2);

View File

@ -69,8 +69,8 @@ static void setupDefaultSensorInputs() {
// Direct hall-only cam input
engineConfiguration->camInputs[0] = Gpio::A6; // 86 - CAM1
engineConfiguration->tps1_1AdcChannel = H144_IN_TPS; // 92 - TPS 1
engineConfiguration->tps1_2AdcChannel = H144_IN_AUX1;
// 92 - TPS 1
setTPS1Inputs(H144_IN_TPS, H144_IN_AUX1);
// 34 In PPS1
// 35 In PPS2

View File

@ -73,8 +73,7 @@ static void setupDefaultSensorInputs() {
// Direct hall-only cam input
engineConfiguration->camInputs[0] = Gpio::A6;
engineConfiguration->tps1_1AdcChannel = EFI_ADC_4;
engineConfiguration->tps1_2AdcChannel = EFI_ADC_8;
setTPS1Inputs(EFI_ADC_4, EFI_ADC_8);
engineConfiguration->mafAdcChannel = H144_IN_MAP1;
engineConfiguration->map.sensor.hwChannel = H144_IN_MAP2;

View File

@ -63,8 +63,7 @@ static void setupDefaultSensorInputs() {
engineConfiguration->vehicleSpeedSensorInputPin = H144_IN_VSS;
engineConfiguration->tps1_1AdcChannel = H144_IN_TPS;
engineConfiguration->tps1_2AdcChannel = H144_IN_AUX1;
setTPS1Inputs(H144_IN_TPS, H144_IN_AUX1);
engineConfiguration->useETBforIdleControl = true;
engineConfiguration->throttlePedalUpVoltage = 0.73;