removing dead code
This commit is contained in:
parent
be25638397
commit
624e95e6d0
|
@ -80,11 +80,7 @@ bool TriggerState::isValidIndex(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||||
return currentCycle.current_index < TRIGGER_SHAPE(size);
|
return currentCycle.current_index < TRIGGER_SHAPE(size);
|
||||||
}
|
}
|
||||||
|
|
||||||
float TriggerState::getTriggerDutyCycle(int index) {
|
|
||||||
float time = prevTotalTime[index];
|
|
||||||
|
|
||||||
return 100 * time / prevCycleDuration;
|
|
||||||
}
|
|
||||||
|
|
||||||
static trigger_wheel_e eventIndex[6] = { T_PRIMARY, T_PRIMARY, T_SECONDARY, T_SECONDARY, T_CHANNEL_3, T_CHANNEL_3 };
|
static trigger_wheel_e eventIndex[6] = { T_PRIMARY, T_PRIMARY, T_SECONDARY, T_SECONDARY, T_CHANNEL_3, T_CHANNEL_3 };
|
||||||
static trigger_value_e eventType[6] = { TV_FALL, TV_RISE, TV_FALL, TV_RISE, TV_FALL, TV_RISE };
|
static trigger_value_e eventType[6] = { TV_FALL, TV_RISE, TV_FALL, TV_RISE, TV_FALL, TV_RISE };
|
||||||
|
@ -121,7 +117,6 @@ static trigger_value_e eventType[6] = { TV_FALL, TV_RISE, TV_FALL, TV_RISE, TV_F
|
||||||
cycleCallback(this); \
|
cycleCallback(this); \
|
||||||
} \
|
} \
|
||||||
memcpy(prevTotalTime, currentCycle.totalTimeNt, sizeof(prevTotalTime)); \
|
memcpy(prevTotalTime, currentCycle.totalTimeNt, sizeof(prevTotalTime)); \
|
||||||
prevCycleDuration = nowNt - startOfCycleNt; \
|
|
||||||
startOfCycleNt = nowNt; \
|
startOfCycleNt = nowNt; \
|
||||||
resetCurrentCycleState(); \
|
resetCurrentCycleState(); \
|
||||||
intTotalEventCounter(); \
|
intTotalEventCounter(); \
|
||||||
|
|
|
@ -109,7 +109,7 @@ private:
|
||||||
efitime_t totalEventCountBase;
|
efitime_t totalEventCountBase;
|
||||||
uint32_t totalRevolutionCounter;
|
uint32_t totalRevolutionCounter;
|
||||||
bool isFirstEvent;
|
bool isFirstEvent;
|
||||||
efitime_t prevCycleDuration;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -183,7 +183,6 @@ void TriggerState::reset() {
|
||||||
currentDuration = 0;
|
currentDuration = 0;
|
||||||
curSignal = SHAFT_PRIMARY_FALLING;
|
curSignal = SHAFT_PRIMARY_FALLING;
|
||||||
prevSignal = SHAFT_PRIMARY_FALLING;
|
prevSignal = SHAFT_PRIMARY_FALLING;
|
||||||
prevCycleDuration = 0;
|
|
||||||
startOfCycleNt = 0;
|
startOfCycleNt = 0;
|
||||||
|
|
||||||
resetRunningCounters();
|
resetRunningCounters();
|
||||||
|
|
Loading…
Reference in New Issue