default VR curve is needed not just by hellen, we have Proteus adapters with it now!
This commit is contained in:
parent
5e7fc65bd4
commit
df7a6d1367
|
@ -160,7 +160,6 @@ void setBoardDefaultConfiguration() {
|
|||
engineConfiguration->clutchDownPinMode = PI_PULLDOWN;
|
||||
engineConfiguration->launchActivationMode = CLUTCH_INPUT_LAUNCH;
|
||||
// ? engineConfiguration->malfunctionIndicatorPin = Gpio::G4; //1E - Check Engine Light
|
||||
setHellenDefaultVrThresholds();
|
||||
engineConfiguration->vrThreshold[0].pin = H144_OUT_PWM6;
|
||||
}
|
||||
|
||||
|
|
|
@ -204,7 +204,6 @@ void setBoardDefaultConfiguration() {
|
|||
engineConfiguration->clutchDownPinMode = PI_PULLDOWN;
|
||||
engineConfiguration->launchActivationMode = CLUTCH_INPUT_LAUNCH;
|
||||
// ? engineConfiguration->malfunctionIndicatorPin = Gpio::G4; //1E - Check Engine Light
|
||||
setHellenDefaultVrThresholds();
|
||||
engineConfiguration->vrThreshold[0].pin = H144_OUT_PWM6;
|
||||
engineConfiguration->vrThreshold[1].pin = H144_OUT_PWM4;
|
||||
}
|
||||
|
|
|
@ -187,7 +187,6 @@ void setBoardDefaultConfiguration() {
|
|||
engineConfiguration->clutchDownPinMode = PI_PULLDOWN;
|
||||
engineConfiguration->launchActivationMode = CLUTCH_INPUT_LAUNCH;
|
||||
// ? engineConfiguration->malfunctionIndicatorPin = Gpio::G4; //1E - Check Engine Light
|
||||
setHellenDefaultVrThresholds();
|
||||
engineConfiguration->vrThreshold[0].pin = H144_OUT_PWM6;
|
||||
}
|
||||
|
||||
|
|
|
@ -170,7 +170,6 @@ void setBoardDefaultConfiguration() {
|
|||
engineConfiguration->crankingInjectionMode = IM_SIMULTANEOUS;
|
||||
engineConfiguration->injectionMode = IM_SIMULTANEOUS;//IM_BATCH;// IM_SEQUENTIAL;
|
||||
|
||||
setHellenDefaultVrThresholds();
|
||||
engineConfiguration->vrThreshold[0].pin = H144_OUT_PWM6;
|
||||
hellenWbo();
|
||||
}
|
||||
|
|
|
@ -220,7 +220,6 @@ void setBoardDefaultConfiguration() {
|
|||
engineConfiguration->throttlePedalSecondaryUpVoltage = 1.34;
|
||||
engineConfiguration->throttlePedalSecondaryWOTVoltage = 4.24;
|
||||
|
||||
setHellenDefaultVrThresholds();
|
||||
engineConfiguration->vrThreshold[0].pin = Gpio::D14;
|
||||
hellenWbo();
|
||||
}
|
||||
|
|
|
@ -5,13 +5,6 @@ void hellenWbo() {
|
|||
engineConfiguration->enableAemXSeries = true;
|
||||
}
|
||||
|
||||
void setHellenDefaultVrThresholds() {
|
||||
for (int i = 0;i<VR_THRESHOLD_COUNT;i++) {
|
||||
setLinearCurve(engineConfiguration->vrThreshold[i].rpmBins, 600, 7000, 100);
|
||||
setLinearCurve(engineConfiguration->vrThreshold[i].values, 0.6, 1.2, 0.1);
|
||||
}
|
||||
}
|
||||
|
||||
void setHellen144LedPins() {
|
||||
#ifdef EFI_COMMUNICATION_PIN
|
||||
engineConfiguration->communicationLedPin = EFI_COMMUNICATION_PIN;
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
#pragma once
|
||||
|
||||
void hellenWbo();
|
||||
void setHellenDefaultVrThresholds();
|
||||
|
||||
void setHellen144LedPins();
|
||||
void setHellen176LedPins();
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#include "pch.h"
|
||||
|
||||
#include "defaults.h"
|
||||
#include "vr_pwm.h"
|
||||
|
||||
static void setDefaultAlternatorParameters() {
|
||||
engineConfiguration->alternatorOffAboveTps = 120;
|
||||
|
@ -78,4 +79,7 @@ void setDefaultBaseEngine() {
|
|||
#else
|
||||
engineConfiguration->warningPeriod = 0;
|
||||
#endif /* EFI_PROD_CODE */
|
||||
|
||||
setDefaultVrThresholds();
|
||||
|
||||
}
|
||||
|
|
|
@ -46,3 +46,10 @@ void initVrPwm() {
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
void setDefaultVrThresholds() {
|
||||
for (int i = 0;i<VR_THRESHOLD_COUNT;i++) {
|
||||
setLinearCurve(engineConfiguration->vrThreshold[i].rpmBins, 600, 7000, 100);
|
||||
setLinearCurve(engineConfiguration->vrThreshold[i].values, 0.6, 1.2, 0.1);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,3 +2,4 @@
|
|||
|
||||
void initVrPwm();
|
||||
void updateVrPwm();
|
||||
void setDefaultVrThresholds();
|
||||
|
|
Loading…
Reference in New Issue