only: proteus_f4
that's how much I do not like copy-paste
This commit is contained in:
parent
2d29ebc3cc
commit
deb3c8207f
|
@ -160,3 +160,5 @@ PROTEUS_LS_15,
|
|||
PROTEUS_LS_16,
|
||||
};
|
||||
#endif // HW_PROTEUS
|
||||
|
||||
void setProteusEtbIO();
|
||||
|
|
|
@ -193,9 +193,7 @@ void setProteusHyundaiPb() {
|
|||
engineConfiguration->camInputs[0] = PROTEUS_DIGITAL_1;
|
||||
engineConfiguration->camInputs[1] = PROTEUS_DIGITAL_2; // currently intake, TODO: flip!
|
||||
|
||||
engineConfiguration->tps1_2AdcChannel = PROTEUS_IN_TPS1_2;
|
||||
setPPSInputs(PROTEUS_IN_PPS, PROTEUS_IN_PPS2);
|
||||
|
||||
setProteusEtbIO();
|
||||
|
||||
// something something input levels are not happy for digital input pin?
|
||||
engineConfiguration->starterControlPin = PROTEUS_LS_14;
|
||||
|
|
|
@ -91,7 +91,6 @@ void setProteusM111EngineConfiguration() {
|
|||
engineConfiguration->triggerInputPins[0] = PROTEUS_VR_1;
|
||||
engineConfiguration->camInputs[0] = PROTEUS_DIGITAL_2;
|
||||
|
||||
engineConfiguration->tps1_2AdcChannel = PROTEUS_IN_TPS1_2;
|
||||
setPPSInputs(PROTEUS_IN_PPS, PROTEUS_IN_PPS2);
|
||||
setProteusEtbIO();
|
||||
#endif // HW_PROTEUS
|
||||
}
|
|
@ -4,7 +4,9 @@ https://rusefi.com/docs/pinouts/hellen/hellen-112-17/
|
|||
|
||||
#include "pch.h"
|
||||
#include "defaults.h"
|
||||
#include "proteus_meta.h"
|
||||
|
||||
// set engine_type 33
|
||||
void setSlingshot() {
|
||||
strcpy(engineConfiguration->engineMake, "Polaris");
|
||||
setInline4();
|
||||
|
@ -19,4 +21,7 @@ void setSlingshot() {
|
|||
engineConfiguration->mapLowValueVoltage = 0.3;
|
||||
engineConfiguration->map.sensor.highValue = 250;
|
||||
engineConfiguration->mapHighValueVoltage = 4.65;
|
||||
#if HW_PROTEUS
|
||||
setProteusEtbIO();
|
||||
#endif // HW_PROTEUS
|
||||
}
|
||||
|
|
|
@ -175,8 +175,7 @@ void setProteusVwPassatB6() {
|
|||
engineConfiguration->vvtPins[0] = PROTEUS_LS_9;
|
||||
engineConfiguration->hpfpValvePin = PROTEUS_LS_15;
|
||||
|
||||
engineConfiguration->tps1_2AdcChannel = PROTEUS_IN_TPS1_2;
|
||||
setPPSInputs(PROTEUS_IN_PPS, PROTEUS_IN_PPS2);
|
||||
setProteusEtbIO();
|
||||
|
||||
#include "vw_b6.lua"
|
||||
|
||||
|
|
|
@ -195,3 +195,10 @@ void setInline4() {
|
|||
engineConfiguration->cylindersCount = 4;
|
||||
engineConfiguration->firingOrder = FO_1_3_4_2;
|
||||
}
|
||||
|
||||
void setProteusEtbIO() {
|
||||
#if HW_PROTEUS
|
||||
engineConfiguration->tps1_2AdcChannel = PROTEUS_IN_TPS1_2;
|
||||
setPPSInputs(PROTEUS_IN_PPS, PROTEUS_IN_PPS2);
|
||||
#endif // HW_PROTEUS
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue