auto-sync
This commit is contained in:
parent
1d36167a1d
commit
e25d9749a4
|
@ -181,7 +181,7 @@
|
|||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.other.1336205150" name="Other linker flags" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.other" value="-Wl,-Map,"rusefi.map" -mcpu=cortex-m4 -mthumb -g3" valueType="string"/>
|
||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.nostdlibs.2113602694" name="No startup or default libs (-nostdlib)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.nostdlibs" value="false" valueType="boolean"/>
|
||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.scriptfile.1520845026" name="Script files (-T)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.scriptfile" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc}\\${ProjName}\config\stm32f4ems\STM32F407xG_CCM.ld""/>
|
||||
<listOptionValue builtIn="false" value=""..\config\stm32f4ems\STM32F407xG_CCM.ld""/>
|
||||
</option>
|
||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.nodeflibs.457288864" name="Do not use default libraries (-nodefaultlibs)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.nodeflibs" value="false" valueType="boolean"/>
|
||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.nostart.1584814043" name="Do not use standard start files (-nostartfiles)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.nostart" value="false" valueType="boolean"/>
|
||||
|
|
|
@ -68,6 +68,9 @@ Engine::Engine(persistent_config_s *config) {
|
|||
engineState.iat = engineState.clt = NAN;
|
||||
memset(&ignitionPin, 0, sizeof(ignitionPin));
|
||||
|
||||
knockNow = false;
|
||||
knockEver = false;
|
||||
|
||||
iat.config = NULL;
|
||||
iat.channel = EFI_ADC_NONE;
|
||||
|
||||
|
|
|
@ -151,6 +151,9 @@ public:
|
|||
|
||||
bool_t isRunningPwmTest;
|
||||
|
||||
bool_t knockNow;
|
||||
bool_t knockEver;
|
||||
|
||||
/**
|
||||
* are we running any kind of functional test? this affect
|
||||
* some areas
|
||||
|
|
|
@ -339,6 +339,14 @@ void mainTriggerCallback(trigger_event_e ckpSignalType, uint32_t eventIndex DECL
|
|||
}
|
||||
|
||||
if (eventIndex == engineConfiguration->ignMathCalculateAtIndex) {
|
||||
if (engineConfiguration->externalKnockSenseAdc != EFI_ADC_NONE) {
|
||||
float externalKnockValue = getAdcValue(engineConfiguration->externalKnockSenseAdc);
|
||||
engine->knockNow = externalKnockValue > 2.5;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
engine->m.beforeIgnitionMath = GET_TIMESTAMP();
|
||||
ignitionCalc(rpm PASS_ENGINE_PARAMETER);
|
||||
engine->m.ignitionMathTime = GET_TIMESTAMP() - engine->m.beforeIgnitionMath;
|
||||
|
|
|
@ -276,5 +276,5 @@ int getRusEfiVersion(void) {
|
|||
return 1; // this is here to make the compiler happy about the unused array
|
||||
if (UNUSED_CCM_SIZE[0] == 0)
|
||||
return 1; // this is here to make the compiler happy about the unused array
|
||||
return 20150315;
|
||||
return 20150316;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue