better method name
This commit is contained in:
parent
46f85e93d4
commit
19df4661ab
|
@ -689,7 +689,7 @@ void doInitElectronicThrottle(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||||
if (!engine->engineState.hasEtbPedalPositionSensor) {
|
if (!engine->engineState.hasEtbPedalPositionSensor) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
engine->etbActualCount = hasTps2(PASS_ENGINE_PARAMETER_SIGNATURE) ? 2 : 1;
|
engine->etbActualCount = hasSecondThrottleBody(PASS_ENGINE_PARAMETER_SIGNATURE) ? 2 : 1;
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
// not alive code
|
// not alive code
|
||||||
|
|
|
@ -217,7 +217,7 @@ bool hasPedalPositionSensor(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||||
return engineConfiguration->throttlePedalPositionAdcChannel != EFI_ADC_NONE;
|
return engineConfiguration->throttlePedalPositionAdcChannel != EFI_ADC_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool hasTps2(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
bool hasSecondThrottleBody(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||||
return engineConfiguration->tps2_1AdcChannel != EFI_ADC_NONE;
|
return engineConfiguration->tps2_1AdcChannel != EFI_ADC_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ percent_t getTPSWithIndex(int index DECLARE_ENGINE_PARAMETER_SUFFIX);
|
||||||
bool hasTpsSensor(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
bool hasTpsSensor(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
||||||
int convertVoltageTo10bitADC(float voltage);
|
int convertVoltageTo10bitADC(float voltage);
|
||||||
int getTPS12bitAdc(int index DECLARE_ENGINE_PARAMETER_SUFFIX);
|
int getTPS12bitAdc(int index DECLARE_ENGINE_PARAMETER_SUFFIX);
|
||||||
bool hasTps2(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
bool hasSecondThrottleBody(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
||||||
#define getTPS10bitAdc() (getTPS12bitAdc(0 PASS_ENGINE_PARAMETER_SUFFIX) / TPS_TS_CONVERSION)
|
#define getTPS10bitAdc() (getTPS12bitAdc(0 PASS_ENGINE_PARAMETER_SUFFIX) / TPS_TS_CONVERSION)
|
||||||
float getTPSVoltage(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
float getTPSVoltage(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
||||||
percent_t getTpsValue(int index, int adc DECLARE_ENGINE_PARAMETER_SUFFIX);
|
percent_t getTpsValue(int index, int adc DECLARE_ENGINE_PARAMETER_SUFFIX);
|
||||||
|
|
Loading…
Reference in New Issue