only:hellen-honda-k
This commit is contained in:
parent
71dc6b18d6
commit
fb648f0fb8
|
@ -116,8 +116,8 @@ void setBoardDefaultConfiguration() {
|
||||||
|
|
||||||
engineConfiguration->brakePedalPin = H144_IN_CAM;
|
engineConfiguration->brakePedalPin = H144_IN_CAM;
|
||||||
engineConfiguration->acRelayPin = H144_LS_5;
|
engineConfiguration->acRelayPin = H144_LS_5;
|
||||||
// engineConfiguration->tachOutputPin = ;
|
engineConfiguration->tachOutputPin = H144_OUT_IO5;
|
||||||
// engineConfiguration->acSwitch = H144_IN_RES1;
|
// A/C switch on k-line
|
||||||
|
|
||||||
// "required" hardware is done - set some reasonable defaults
|
// "required" hardware is done - set some reasonable defaults
|
||||||
setupDefaultSensorInputs();
|
setupDefaultSensorInputs();
|
||||||
|
@ -135,5 +135,5 @@ void setBoardDefaultConfiguration() {
|
||||||
setCommonNTCSensor(&engineConfiguration->clt, HELLEN_DEFAULT_AT_PULLUP);
|
setCommonNTCSensor(&engineConfiguration->clt, HELLEN_DEFAULT_AT_PULLUP);
|
||||||
setCommonNTCSensor(&engineConfiguration->iat, HELLEN_DEFAULT_AT_PULLUP);
|
setCommonNTCSensor(&engineConfiguration->iat, HELLEN_DEFAULT_AT_PULLUP);
|
||||||
|
|
||||||
setTPS1Calibration(90, 830, 1000, 0);
|
setTPS1Calibration(100, 650);
|
||||||
}
|
}
|
||||||
|
|
|
@ -114,9 +114,14 @@ void setTPS1Inputs(adc_channel_e tps1, adc_channel_e tps2) {
|
||||||
engineConfiguration->tps1_2AdcChannel = tps2;
|
engineConfiguration->tps1_2AdcChannel = tps2;
|
||||||
}
|
}
|
||||||
|
|
||||||
void setTPS1Calibration(uint16_t tpsMin, uint16_t tpsMax, uint16_t tps1SecondaryMin, uint16_t tps1SecondaryMax) {
|
void setTPS1Calibration(uint16_t tpsMin, uint16_t tpsMax) {
|
||||||
engineConfiguration->tpsMin = tpsMin;
|
engineConfiguration->tpsMin = tpsMin;
|
||||||
engineConfiguration->tpsMax = tpsMax;
|
engineConfiguration->tpsMax = tpsMax;
|
||||||
|
}
|
||||||
|
|
||||||
|
void setTPS1Calibration(uint16_t tpsMin, uint16_t tpsMax, uint16_t tps1SecondaryMin, uint16_t tps1SecondaryMax) {
|
||||||
|
setTPS1Calibration(tpsMin, tpsMax);
|
||||||
|
|
||||||
|
|
||||||
engineConfiguration->tps1SecondaryMin = tps1SecondaryMin;
|
engineConfiguration->tps1SecondaryMin = tps1SecondaryMin;
|
||||||
engineConfiguration->tps1SecondaryMax = tps1SecondaryMax;
|
engineConfiguration->tps1SecondaryMax = tps1SecondaryMax;
|
||||||
|
|
|
@ -12,6 +12,9 @@ void setPPSInputs(adc_channel_e pps1, adc_channel_e pps2);
|
||||||
void setPPSCalibration(float primaryUp, float primaryDown, float secondaryUp, float secondaryDown);
|
void setPPSCalibration(float primaryUp, float primaryDown, float secondaryUp, float secondaryDown);
|
||||||
|
|
||||||
void setTPS1Inputs(adc_channel_e tps1, adc_channel_e tps2);
|
void setTPS1Inputs(adc_channel_e tps1, adc_channel_e tps2);
|
||||||
|
// legacy since channel TPS still exists
|
||||||
|
void setTPS1Calibration(uint16_t tpsMin, uint16_t tpsMax);
|
||||||
|
// Most ETB require redundant dual channel TPS
|
||||||
void setTPS1Calibration(uint16_t tpsMin, uint16_t tpsMax, uint16_t tps1SecondaryMin, uint16_t tps1SecondaryMax);
|
void setTPS1Calibration(uint16_t tpsMin, uint16_t tpsMax, uint16_t tps1SecondaryMin, uint16_t tps1SecondaryMax);
|
||||||
|
|
||||||
void setEtbPID(float p, float i, float d);
|
void setEtbPID(float p, float i, float d);
|
Loading…
Reference in New Issue