auto-sync
This commit is contained in:
parent
042b74dfcb
commit
078f50c5c4
|
@ -60,6 +60,11 @@ Engine::Engine() {
|
|||
stopEngineRequestTimeNt = 0;
|
||||
isRunningPwmTest = false;
|
||||
isTestMode = false;
|
||||
isSpinning = false;
|
||||
|
||||
injectorLagMs = advance = dwellAngle = fuelMs = 0;
|
||||
clutchDownState = clutchUpState = false;
|
||||
memset(&m, 0, sizeof(m));
|
||||
|
||||
addConfigurationListener(invokeEnginePreCalculate);
|
||||
}
|
||||
|
@ -95,7 +100,7 @@ static bool stopPin(NamedOutputPin *output) {
|
|||
return false;
|
||||
}
|
||||
|
||||
bool Engine::stopPins() {
|
||||
bool_t Engine::stopPins() {
|
||||
bool result = false;
|
||||
for (int i = 0; i < engineConfiguration->specs.cylindersCount; i++) {
|
||||
result |= stopPin(&enginePins.coils[i]);
|
||||
|
|
|
@ -190,7 +190,7 @@ public:
|
|||
* This field is true if we are in 'cylinder cleanup' state right now
|
||||
* see isCylinderCleanupEnabled
|
||||
*/
|
||||
bool isCylinderCleanupMode;
|
||||
bool_t isCylinderCleanupMode;
|
||||
|
||||
/**
|
||||
* pre-calculating this value is a performance optimization
|
||||
|
@ -230,8 +230,8 @@ private:
|
|||
* 'running' means RPM are above crankingRpm
|
||||
* 'spinning' means the engine is not stopped
|
||||
*/
|
||||
bool isSpinning;
|
||||
bool stopPins();
|
||||
bool_t isSpinning;
|
||||
bool_t stopPins();
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -59,7 +59,8 @@ MenuItem::MenuItem(MenuItem * parent, const char *text) {
|
|||
|
||||
MenuItem::MenuItem(MenuItem * parent, lcd_line_e lcdLine) {
|
||||
this->lcdLine = lcdLine;
|
||||
this->text = NULL;
|
||||
text = NULL;
|
||||
topOfTheList = NULL;
|
||||
init(parent, NULL);
|
||||
}
|
||||
|
||||
|
|
|
@ -22,6 +22,8 @@ void single_wave_s::init(pin_state_t *pinStates) {
|
|||
}
|
||||
|
||||
multi_wave_s::multi_wave_s() {
|
||||
waves = NULL;
|
||||
switchTimes = NULL;
|
||||
reset();
|
||||
}
|
||||
|
||||
|
|
|
@ -25,8 +25,10 @@ SimplePwm::SimplePwm() {
|
|||
|
||||
PwmConfig::PwmConfig() {
|
||||
memset(&scheduling, 0, sizeof(scheduling));
|
||||
memset(&safe, 0, sizeof(safe));
|
||||
scheduling.name = "PwmConfig";
|
||||
periodNt = NAN;
|
||||
// todo outputPins = NULL;
|
||||
phaseCount = 0;
|
||||
cycleCallback = NULL;
|
||||
stateChangeCallback = NULL;
|
||||
|
|
|
@ -43,6 +43,7 @@ RpmCalculator::RpmCalculator() {
|
|||
#if !EFI_PROD_CODE
|
||||
mockRpm = MOCK_UNDEFINED;
|
||||
#endif
|
||||
rpmValue = 0;
|
||||
setRpmValue(0);
|
||||
|
||||
// we need this initial to have not_running at first invocation
|
||||
|
|
|
@ -93,6 +93,7 @@ void hwHandleShaftSignal(trigger_event_e signal) {
|
|||
#endif /* EFI_PROD_CODE */
|
||||
|
||||
TriggerCentral::TriggerCentral() {
|
||||
nowNt = 0;
|
||||
memset(hwEventCounters, 0, sizeof(hwEventCounters));
|
||||
clearCallbacks(&triggerListeneres);
|
||||
}
|
||||
|
|
|
@ -41,6 +41,8 @@ TriggerShape::TriggerShape() :
|
|||
isSynchronizationNeeded = false;
|
||||
invertOnAdd = false;
|
||||
tdcPosition = 0;
|
||||
skippedToothCount = totalToothCount = 0;
|
||||
syncRatioFrom = syncRatioTo = 0;
|
||||
}
|
||||
|
||||
int TriggerShape::getSize() const {
|
||||
|
|
|
@ -23,6 +23,7 @@ AdcDevice::AdcDevice(ADCConversionGroup* hwConfig) {
|
|||
this->hwConfig = hwConfig;
|
||||
channelCount = 0;
|
||||
conversionCount = 0;
|
||||
errorsCount = 0;
|
||||
|
||||
hwConfig->sqr1 = 0;
|
||||
hwConfig->sqr2 = 0;
|
||||
|
|
|
@ -278,5 +278,5 @@ int getRusEfiVersion(void) {
|
|||
return 1; // this is here to make the compiler happy about the unused array
|
||||
if (UNUSED_CCM_SIZE == 0)
|
||||
return 1; // this is here to make the compiler happy about the unused array
|
||||
return 20150225;
|
||||
return 20150226;
|
||||
}
|
||||
|
|
|
@ -387,6 +387,10 @@ void initIntermediateLoggingBuffer(void) {
|
|||
#endif /* ! EFI_UNIT_TEST */
|
||||
|
||||
Logging::Logging() {
|
||||
name = NULL;
|
||||
buffer = linePointer = NULL;
|
||||
bufferSize = 0;
|
||||
isInitialized = false;
|
||||
}
|
||||
|
||||
Logging::Logging(char const *name, char *buffer, int bufferSize) {
|
||||
|
|
Loading…
Reference in New Issue