dual ETB seems to work!
This commit is contained in:
parent
e2074388ff
commit
73e3edc3d8
|
@ -227,7 +227,7 @@ void EtbController::PeriodicTask() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
percent_t actualThrottlePosition = getTPSWithIndex(ownIndex PASS_ENGINE_PARAMETER_SIGNATURE);
|
percent_t actualThrottlePosition = getTPSWithIndex(ownIndex PASS_ENGINE_PARAMETER_SUFFIX);
|
||||||
|
|
||||||
if (engine->etbAutoTune) {
|
if (engine->etbAutoTune) {
|
||||||
autoTune.input = actualThrottlePosition;
|
autoTune.input = actualThrottlePosition;
|
||||||
|
|
|
@ -141,7 +141,7 @@ float getTPSVoltage(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||||
* We need ADC value because TunerStudio has a nice TPS configuration wizard, and this wizard
|
* We need ADC value because TunerStudio has a nice TPS configuration wizard, and this wizard
|
||||||
* wants a TPS value.
|
* wants a TPS value.
|
||||||
*/
|
*/
|
||||||
int getTPS12bitAdc(int index PASS_ENGINE_PARAMETER_SUFFIX) {
|
int getTPS12bitAdc(int index DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
||||||
#if !EFI_PROD_CODE
|
#if !EFI_PROD_CODE
|
||||||
if (engine->mockTpsAdcValue != MOCK_UNDEFINED) {
|
if (engine->mockTpsAdcValue != MOCK_UNDEFINED) {
|
||||||
return engine->mockTpsAdcValue;
|
return engine->mockTpsAdcValue;
|
||||||
|
|
|
@ -27,8 +27,8 @@ percent_t getTPS(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
||||||
percent_t getTPSWithIndex(int index DECLARE_ENGINE_PARAMETER_SUFFIX);
|
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 PASS_ENGINE_PARAMETER_SUFFIX);
|
int getTPS12bitAdc(int index DECLARE_ENGINE_PARAMETER_SUFFIX);
|
||||||
#define getTPS10bitAdc() (getTPS12bitAdc() / 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 adc DECLARE_ENGINE_PARAMETER_SUFFIX);
|
percent_t getTpsValue(int adc DECLARE_ENGINE_PARAMETER_SUFFIX);
|
||||||
void setBosch0280750009(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
void setBosch0280750009(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
||||||
|
|
Loading…
Reference in New Issue