auto-sync

This commit is contained in:
rusEfi 2016-09-01 00:02:04 -04:00
parent 0e833c4e35
commit 71c69f3ac3
3 changed files with 22 additions and 3 deletions

View File

@ -142,8 +142,14 @@ EngineState::EngineState() {
targetAFR = 0;
tpsAccelEnrich = 0;
tChargeK = 0;
currentVE = 0;
runningFuel = baseFuel = currentVE = 0;
timeOfPreviousWarning = -10;
baseTableFuel = iat = iatFuelCorrection = 0;
clt = cltFuelCorrection = 0;
warmupTargetAfr = airMass = 0;
baroCorrection = timingAdvance = fuelTankGauge = 0;
sparkDwell = mapAveragingDuration = 0;
injectionOffset = 0;
}
void EngineState::updateSlowSensors(DECLARE_ENGINE_PARAMETER_F) {

View File

@ -139,6 +139,17 @@ static void initWave(const char *name, int index) {
WaveReader::WaveReader() {
hw = NULL;
last_wave_high_widthUs = 0;
name = NULL;
eventCounter = 0;
currentRevolutionCounter = 0;
prevTotalOnTimeUs = 0;
totalOnTimeAccumulatorUs = 0;
lastActivityTimeUs = 0;
periodEventTimeUs = 0;
widthEventTimeUs = 0;
signalPeriodUs = 0;
waveOffsetUs = 0;
last_wave_low_widthUs = 0;
}
static void waTriggerEventListener(trigger_event_e ckpSignalType, uint32_t index DECLARE_ENGINE_PARAMETER_S) {

View File

@ -263,8 +263,10 @@ void runRusEfi(void) {
void chDbgStackOverflowPanic(Thread *otp) {
strcpy(panicMessage, "stack overflow: ");
#ifdef CH_USE_REGISTRY
strcat(panicMessage, otp->p_name);
#if defined(CH_USE_REGISTRY) || defined(__DOXYGEN__)
int p_name_len = strlen(otp->p_name);
if (p_name_len < sizeof(panicMessage - 2))
strcat(panicMessage, otp->p_name);
#endif
chDbgPanic3(panicMessage, __FILE__, __LINE__);
}