auto-sync

This commit is contained in:
rusEfi 2016-08-30 21:02:38 -04:00
parent 42e02593ae
commit 2fc291fb93
4 changed files with 5 additions and 1 deletions

View File

@ -192,7 +192,8 @@ static void printSensors(Logging *log, bool fileFormat) {
float vehicleSpeed = 0; float vehicleSpeed = 0;
#endif /* EFI_PROD_CODE */ #endif /* EFI_PROD_CODE */
reportSensorF(log, fileFormat, "vss", "kph", vehicleSpeed, 2); reportSensorF(log, fileFormat, "vss", "kph", vehicleSpeed, 2);
reportSensorF(log, fileFormat, "sp2rpm", "x", vehicleSpeed / rpm, 2); float sp2rpm = rpm == 0 ? 0 : vehicleSpeed / rpm;
reportSensorF(log, fileFormat, "sp2rpm", "x", sp2rpm, 2);
} }
reportSensorI(log, fileFormat, "warn", "count", engine->engineState.warningCounter); reportSensorI(log, fileFormat, "warn", "count", engine->engineState.warningCounter);

View File

@ -97,6 +97,7 @@ Engine::Engine(persistent_config_s *config) {
engineState.warmupAfrPid.init(&config->engineConfiguration.warmupAfrPid, 0.5, 1.5); engineState.warmupAfrPid.init(&config->engineConfiguration.warmupAfrPid, 0.5, 1.5);
isEngineChartEnabled = false; isEngineChartEnabled = false;
sensorChartMode = SC_OFF; sensorChartMode = SC_OFF;
actualLastInjection = 0;
/** /**
* it's important for fixAngle() that engineCycle field never has zero * it's important for fixAngle() that engineCycle field never has zero
*/ */

View File

@ -27,6 +27,7 @@
InjectionEvent::InjectionEvent() { InjectionEvent::InjectionEvent() {
isSimultanious = false; isSimultanious = false;
isOverlapping = false; isOverlapping = false;
injectorIndex = 0;
} }
event_trigger_position_s::event_trigger_position_s() { event_trigger_position_s::event_trigger_position_s() {

View File

@ -97,6 +97,7 @@ void LECalculator::reset() {
first = NULL; first = NULL;
stack.reset(); stack.reset();
currentCalculationLogPosition = 0; currentCalculationLogPosition = 0;
memset(calcLogAction, 0, sizeof(calcLogAction));
} }
void LECalculator::reset(LEElement *element) { void LECalculator::reset(LEElement *element) {