mirror of https://github.com/rusefi/rusefi.git
use detected hellen board type on h72 (#4305)
* use detected hellen board type * s * s * name
This commit is contained in:
parent
9f15218089
commit
29e5a0babb
|
@ -94,8 +94,6 @@ static void setupDefaultSensorInputs() {
|
||||||
engineConfiguration->auxTempSensor2.adcChannel = EFI_ADC_NONE;
|
engineConfiguration->auxTempSensor2.adcChannel = EFI_ADC_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern int hellenBoardId;
|
|
||||||
|
|
||||||
static bool isFirstInvocation = true;
|
static bool isFirstInvocation = true;
|
||||||
|
|
||||||
void setBoardConfigOverrides() {
|
void setBoardConfigOverrides() {
|
||||||
|
@ -107,7 +105,7 @@ void setBoardConfigOverrides() {
|
||||||
engineConfiguration->clt.config.bias_resistor = 4700;
|
engineConfiguration->clt.config.bias_resistor = 4700;
|
||||||
engineConfiguration->iat.config.bias_resistor = 4700;
|
engineConfiguration->iat.config.bias_resistor = 4700;
|
||||||
|
|
||||||
if (hellenBoardId == 0) {
|
if (engine->engineState.hellenBoardId == 0) {
|
||||||
// first revision of did not have Hellen Board ID
|
// first revision of did not have Hellen Board ID
|
||||||
// https://github.com/rusefi/hellen154hyundai/issues/55
|
// https://github.com/rusefi/hellen154hyundai/issues/55
|
||||||
engineConfiguration->etbIo[1].directionPin1 = Gpio::Unassigned;
|
engineConfiguration->etbIo[1].directionPin1 = Gpio::Unassigned;
|
||||||
|
|
|
@ -92,7 +92,14 @@ static void setupDefaultSensorInputs() {
|
||||||
void setBoardConfigOverrides() {
|
void setBoardConfigOverrides() {
|
||||||
setHellen176LedPins();
|
setHellen176LedPins();
|
||||||
setupVbatt();
|
setupVbatt();
|
||||||
setHellenSdCardSpi3();
|
|
||||||
|
if (engine->engineState.hellenBoardId == 0) {
|
||||||
|
// Rev a-d use SPI3 for SD card
|
||||||
|
setHellenSdCardSpi3();
|
||||||
|
} else {
|
||||||
|
// Revs E and later use SPI2 for SD card
|
||||||
|
setHellenSdCardSpi2();
|
||||||
|
}
|
||||||
|
|
||||||
engineConfiguration->etbIo[0].directionPin1 = Gpio::C7; // out_pwm3
|
engineConfiguration->etbIo[0].directionPin1 = Gpio::C7; // out_pwm3
|
||||||
engineConfiguration->etbIo[0].directionPin2 = Gpio::C8; // out_pwm4
|
engineConfiguration->etbIo[0].directionPin2 = Gpio::C8; // out_pwm4
|
||||||
|
|
|
@ -81,7 +81,7 @@ running_fuel_s running
|
||||||
int16_t autoscale timingIatCorrection;;"deg",{1/@@PACK_MULT_PERCENT@@}, 0, -20, 20, 2
|
int16_t autoscale timingIatCorrection;;"deg",{1/@@PACK_MULT_PERCENT@@}, 0, -20, 20, 2
|
||||||
int16_t autoscale timingPidCorrection;;"deg",{1/@@PACK_MULT_PERCENT@@}, 0, -20, 20, 2
|
int16_t autoscale timingPidCorrection;;"deg",{1/@@PACK_MULT_PERCENT@@}, 0, -20, 20, 2
|
||||||
|
|
||||||
int16_t hellenBoardId;How does this board self identifies;"id", 1, 0, 0, 3000, 0
|
int16_t hellenBoardId;Detected Board ID;"id", 1, 0, 0, 3000, 0
|
||||||
|
|
||||||
bit clutchUpState;@@INDICATOR_NAME_CLUTCH_UP@@
|
bit clutchUpState;@@INDICATOR_NAME_CLUTCH_UP@@
|
||||||
bit clutchDownState;@@INDICATOR_NAME_CLUTCH_DOWN@@
|
bit clutchDownState;@@INDICATOR_NAME_CLUTCH_DOWN@@
|
||||||
|
|
Loading…
Reference in New Issue