mirror of https://github.com/rusefi/rusefi-1.git
auto-sync
This commit is contained in:
parent
0e833c4e35
commit
71c69f3ac3
|
@ -142,8 +142,14 @@ EngineState::EngineState() {
|
||||||
targetAFR = 0;
|
targetAFR = 0;
|
||||||
tpsAccelEnrich = 0;
|
tpsAccelEnrich = 0;
|
||||||
tChargeK = 0;
|
tChargeK = 0;
|
||||||
currentVE = 0;
|
runningFuel = baseFuel = currentVE = 0;
|
||||||
timeOfPreviousWarning = -10;
|
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) {
|
void EngineState::updateSlowSensors(DECLARE_ENGINE_PARAMETER_F) {
|
||||||
|
|
|
@ -139,6 +139,17 @@ static void initWave(const char *name, int index) {
|
||||||
WaveReader::WaveReader() {
|
WaveReader::WaveReader() {
|
||||||
hw = NULL;
|
hw = NULL;
|
||||||
last_wave_high_widthUs = 0;
|
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) {
|
static void waTriggerEventListener(trigger_event_e ckpSignalType, uint32_t index DECLARE_ENGINE_PARAMETER_S) {
|
||||||
|
|
|
@ -263,8 +263,10 @@ void runRusEfi(void) {
|
||||||
|
|
||||||
void chDbgStackOverflowPanic(Thread *otp) {
|
void chDbgStackOverflowPanic(Thread *otp) {
|
||||||
strcpy(panicMessage, "stack overflow: ");
|
strcpy(panicMessage, "stack overflow: ");
|
||||||
#ifdef CH_USE_REGISTRY
|
#if defined(CH_USE_REGISTRY) || defined(__DOXYGEN__)
|
||||||
strcat(panicMessage, otp->p_name);
|
int p_name_len = strlen(otp->p_name);
|
||||||
|
if (p_name_len < sizeof(panicMessage - 2))
|
||||||
|
strcat(panicMessage, otp->p_name);
|
||||||
#endif
|
#endif
|
||||||
chDbgPanic3(panicMessage, __FILE__, __LINE__);
|
chDbgPanic3(panicMessage, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue