v12 & dual-channel PPS
This commit is contained in:
parent
af0a777fad
commit
8a11920dec
|
@ -307,6 +307,11 @@ void setEngineBMW_M73_Proteus(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
|||
engineConfiguration->tps2_2AdcChannel = EFI_ADC_0;
|
||||
// EFI_ADC_1: "Analog Volt 6"
|
||||
engineConfiguration->throttlePedalPositionAdcChannel = EFI_ADC_1;
|
||||
engineConfiguration->throttlePedalUpVoltage = 0;
|
||||
engineConfiguration->throttlePedalWOTVoltage = 4.4;
|
||||
engineConfiguration->throttlePedalSecondaryUpVoltage = 0.5;
|
||||
engineConfiguration->throttlePedalSecondaryWOTVoltage = 4.4;
|
||||
|
||||
// EFI_ADC_2: "Analog Volt 7"
|
||||
engineConfiguration->throttlePedalPositionSecondAdcChannel = EFI_ADC_2;
|
||||
|
||||
|
|
|
@ -339,6 +339,12 @@ void printTPSInfo(void) {
|
|||
engineConfiguration->throttlePedalUpVoltage,
|
||||
engineConfiguration->throttlePedalWOTVoltage);
|
||||
|
||||
auto pps = Sensor::get(SensorType::AcceleratorPedal);
|
||||
|
||||
if (!pps.Valid) {
|
||||
scheduleMsg(&logger, "PPS not valid");
|
||||
}
|
||||
|
||||
printTpsSenser("TPS", SensorType::Tps1, engineConfiguration->tpsMin, engineConfiguration->tpsMax, engineConfiguration->tps1_1AdcChannel);
|
||||
printTpsSenser("TPS2", SensorType::Tps2, engineConfiguration->tps2Min, engineConfiguration->tps2Max, engineConfiguration->tps2_1AdcChannel);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue