refactoring: helper method
This commit is contained in:
parent
959c738c24
commit
23c2217a71
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue