auto-sync

This commit is contained in:
rusEfi 2015-08-17 23:02:01 -04:00
parent 1114a7c468
commit 6bd6b0b43f
4 changed files with 8 additions and 1 deletions

View File

@ -96,7 +96,8 @@ typedef struct {
int knockCount;
float fuelLevel;
float knockLevel;
int unused3[10];
int totalTriggerErrorCounter;
int unused3[9];
} TunerStudioOutputChannels;
#endif /* TUNERSTUDIO_CONFIGURATION_H_ */

View File

@ -597,6 +597,7 @@ void updateTunerStudioState(TunerStudioOutputChannels *tsOutputChannels DECLARE_
tsOutputChannels->injectorDutyCycle = getInjectorDutyCycle(rpm PASS_ENGINE_PARAMETER);
tsOutputChannels->fuelLevel = engine->engineState.fuelLevel;
tsOutputChannels->hasFatalError = hasFirmwareError();
tsOutputChannels->totalTriggerErrorCounter = triggerCentral.triggerState.totalTriggerErrorCounter;
tsOutputChannels->checkEngine = hasErrorCodes();
#if EFI_PROD_CODE || defined(__DOXYGEN__)

View File

@ -52,6 +52,9 @@ public:
*/
uint32_t prevTotalTime[PWM_PHASE_MAX_WAVE_PER_PWM];
int expectedTotalTime[PWM_PHASE_MAX_WAVE_PER_PWM];
/**
* how many times since ECU reboot we had unexpected number of teeth in trigger cycle
*/
uint32_t totalTriggerErrorCounter;
uint32_t runningTriggerErrorCounter;
uint32_t orderingErrorCounter;

View File

@ -1034,6 +1034,8 @@ fileVersion = { 20150625 }
dialog = triggerConfiguration_IO, "Settings I/O"
field = "Primary input channel", triggerInputPins1
field = "Secondary channel", triggerInputPins2
field = "Trigger error LED", triggerErrorPin
field = "Trigger error LED mode", triggerErrorPinMode
dialog = triggerConfiguration
panel = triggerConfiguration_settings, North
panel = triggerConfiguration_IO, South