secondary MRE

This commit is contained in:
rusefi 2021-10-27 19:54:45 -04:00
parent 5596fd2404
commit 75d8d334b7
3 changed files with 28 additions and 0 deletions

View File

@ -15,6 +15,7 @@
#include "custom_engine.h"
#include "fsio_impl.h"
#include "mre_meta.h"
#if EFI_ELECTRONIC_THROTTLE_BODY
#include "electronic_throttle.h"
@ -606,6 +607,30 @@ void mreBCM(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
}
void mreSecondaryCan(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
engineConfiguration->tps1_1AdcChannel = EFI_ADC_NONE;
engineConfiguration->tps2_1AdcChannel = EFI_ADC_NONE;
engineConfiguration->clt.adcChannel = EFI_ADC_NONE;
engineConfiguration->iat.adcChannel = EFI_ADC_NONE;
engineConfiguration->map.sensor.hwChannel = EFI_ADC_NONE;
engineConfiguration->auxAnalogInputs[0] = MRE_IN_TPS;
engineConfiguration->auxAnalogInputs[1] = MRE_IN_MAP;
engineConfiguration->auxAnalogInputs[2] = MRE_IN_CLT;
engineConfiguration->auxAnalogInputs[3] = MRE_IN_IAT;
// engineConfiguration->auxAnalogInputs[0] =
// EFI_ADC_14: "32 - AN volt 6"
// engineConfiguration->afr.hwChannel = EFI_ADC_14;
strncpy(config->luaScript, "function onTick()\n"
"end", efi::size(config->luaScript));
}
/**
* MRE_BOARD_NEW_TEST
* set engine_type 31

View File

@ -21,6 +21,7 @@ void setIssue898(DECLARE_CONFIG_PARAMETER_SIGNATURE);
void setTestQuadCam(DECLARE_CONFIG_PARAMETER_SIGNATURE);
void mreBoardNewTest(DECLARE_CONFIG_PARAMETER_SIGNATURE);
void mreSecondaryCan(DECLARE_CONFIG_PARAMETER_SIGNATURE);
void mreBCM(DECLARE_CONFIG_PARAMETER_SIGNATURE);
/**

View File

@ -883,6 +883,8 @@ void resetConfigurationExt(configuration_callback_t boardCallback, engine_type_e
setM111EngineConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);
break;
case MRE_SECONDARY_CAN:
mreSecondaryCan(PASS_CONFIG_PARAMETER_SIGNATURE);
break;
case UNUSED101:
case MRE_SUBARU_EJ18:
setSubaruEJ18_MRE(PASS_CONFIG_PARAMETER_SIGNATURE);