FSIO-based timing correction

This commit is contained in:
rusefi 2017-07-25 20:37:46 -04:00
parent 9dfb3cdbd2
commit 9b4333bb88
3 changed files with 6 additions and 0 deletions

View File

@ -106,6 +106,7 @@ void Engine::reset() {
withError = isEngineChartEnabled = false; withError = isEngineChartEnabled = false;
sensorChartMode = SC_OFF; sensorChartMode = SC_OFF;
actualLastInjection = 0; actualLastInjection = 0;
fsioTimingAdjustment = 0;
isAlternatorControlEnabled = false; isAlternatorControlEnabled = false;
callFromPitStopEndTime = 0; callFromPitStopEndTime = 0;
wallFuelCorrection = 0; wallFuelCorrection = 0;

View File

@ -347,6 +347,8 @@ public:
bool isRunningPwmTest; bool isRunningPwmTest;
float fsioTimingAdjustment;
/** /**
* Are we experiencing knock right now? * Are we experiencing knock right now?
*/ */

View File

@ -400,6 +400,9 @@ void runFsio(void) {
if (boardConfiguration->fanPin != GPIO_UNASSIGNED) { if (boardConfiguration->fanPin != GPIO_UNASSIGNED) {
setPinState("fan", &enginePins.fanRelay, radiatorFanLogic); setPinState("fan", &enginePins.fanRelay, radiatorFanLogic);
} }
if (engineConfiguration->useFSIO16ForTimingAdjustment) {
}
} }