auto-sync
This commit is contained in:
parent
3e50b1266f
commit
3655bca597
|
@ -194,8 +194,10 @@ void Engine::periodicFastCallback(DECLARE_ENGINE_PARAMETER_F) {
|
||||||
*/
|
*/
|
||||||
engine->engineState.currentVE = veMap.getValue(map, rpm) * 0.01;
|
engine->engineState.currentVE = veMap.getValue(map, rpm) * 0.01;
|
||||||
engine->engineState.targerAFR = afrMap.getValue(map, rpm);
|
engine->engineState.targerAFR = afrMap.getValue(map, rpm);
|
||||||
|
} else {
|
||||||
|
float engineLoad = getEngineLoadT(PASS_ENGINE_PARAMETER_F);
|
||||||
|
engine->engineState.baseTableFuel = getBaseTableFuel(engineConfiguration, rpm, engineLoad);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
StartupFuelPumping::StartupFuelPumping() {
|
StartupFuelPumping::StartupFuelPumping() {
|
||||||
|
|
|
@ -97,6 +97,8 @@ public:
|
||||||
float currentVE;
|
float currentVE;
|
||||||
float targerAFR;
|
float targerAFR;
|
||||||
|
|
||||||
|
float baseTableFuel;
|
||||||
|
|
||||||
angle_t injectionAngle;
|
angle_t injectionAngle;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
#if EFI_PROD_CODE
|
||||||
|
#include <nvic.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !EFI_PROD_CODE && !EFI_SIMULATOR
|
#if !EFI_PROD_CODE && !EFI_SIMULATOR
|
||||||
|
|
||||||
|
@ -293,6 +296,13 @@ static void ignitionCalc(int rpm DECLARE_ENGINE_PARAMETER_S) {
|
||||||
engine->advance = -ENGINE(engineState.timingAdvance);
|
engine->advance = -ENGINE(engineState.timingAdvance);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if EFI_PROD_CODE
|
||||||
|
/**
|
||||||
|
* this field is used as an Expression in IAR debugger
|
||||||
|
*/
|
||||||
|
uint32_t *cyccnt = (uint32_t*)&DWT_CYCCNT;
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is the main trigger event handler.
|
* This is the main trigger event handler.
|
||||||
* Both injection and ignition are controlled from this method.
|
* Both injection and ignition are controlled from this method.
|
||||||
|
|
|
@ -230,6 +230,7 @@ extern uint32_t hipLastExecutionCount;
|
||||||
extern uint32_t hwSetTimerTime;
|
extern uint32_t hwSetTimerTime;
|
||||||
|
|
||||||
extern int maxHowFarOff;
|
extern int maxHowFarOff;
|
||||||
|
extern uint32_t *cyccnt;
|
||||||
|
|
||||||
void triggerInfo(Engine *engine) {
|
void triggerInfo(Engine *engine) {
|
||||||
#if (EFI_PROD_CODE || EFI_SIMULATOR) || defined(__DOXYGEN__)
|
#if (EFI_PROD_CODE || EFI_SIMULATOR) || defined(__DOXYGEN__)
|
||||||
|
@ -294,7 +295,9 @@ void triggerInfo(Engine *engine) {
|
||||||
scheduleMsg(logger, "zeroTestTime=%d maxHowFarOff=%d", engine->m.zeroTestTime, maxHowFarOff);
|
scheduleMsg(logger, "zeroTestTime=%d maxHowFarOff=%d", engine->m.zeroTestTime, maxHowFarOff);
|
||||||
maxHowFarOff = 0;
|
maxHowFarOff = 0;
|
||||||
|
|
||||||
scheduleMsg(logger, "advanceLookupTime=%d", engine->m.advanceLookupTime);
|
scheduleMsg(logger, "advanceLookupTime=%d t=%d fuelCalcTime=%d",
|
||||||
|
engine->m.advanceLookupTime, *cyccnt,
|
||||||
|
engine->m.fuelCalcTime);
|
||||||
|
|
||||||
scheduleMsg(logger,
|
scheduleMsg(logger,
|
||||||
"ignitionMathTime=%d ignitionSchTime=%d injectonSchTime=%d",
|
"ignitionMathTime=%d ignitionSchTime=%d injectonSchTime=%d",
|
||||||
|
|
Loading…
Reference in New Issue