fixing popular typo
This commit is contained in:
parent
117be1f09d
commit
dca11bb486
|
@ -260,9 +260,9 @@ void TriggerState::decodeTriggerEvent(trigger_event_e const signal, efitime_t no
|
||||||
#endif /* EFI_UNIT_TEST */
|
#endif /* EFI_UNIT_TEST */
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isGapCondition[GAP_TRACKING_LENGHT];
|
bool isGapCondition[GAP_TRACKING_LENGTH];
|
||||||
|
|
||||||
for (int i = 0;i<GAP_TRACKING_LENGHT;i++) {
|
for (int i = 0;i<GAP_TRACKING_LENGTH;i++) {
|
||||||
isGapCondition[i] = cisnan(TRIGGER_SHAPE(syncronizationRatioFrom[i])) || (toothDurations[i] > toothDurations[i + 1] * TRIGGER_SHAPE(syncronizationRatioFrom[i])
|
isGapCondition[i] = cisnan(TRIGGER_SHAPE(syncronizationRatioFrom[i])) || (toothDurations[i] > toothDurations[i + 1] * TRIGGER_SHAPE(syncronizationRatioFrom[i])
|
||||||
&& toothDurations[i] < toothDurations[i + 1] * TRIGGER_SHAPE(syncronizationRatioTo[i]));
|
&& toothDurations[i] < toothDurations[i + 1] * TRIGGER_SHAPE(syncronizationRatioTo[i]));
|
||||||
}
|
}
|
||||||
|
@ -293,7 +293,7 @@ void TriggerState::decodeTriggerEvent(trigger_event_e const signal, efitime_t no
|
||||||
TRIGGER_SHAPE(syncronizationRatioFrom[2]), TRIGGER_SHAPE(syncronizationRatioTo[2]),
|
TRIGGER_SHAPE(syncronizationRatioFrom[2]), TRIGGER_SHAPE(syncronizationRatioTo[2]),
|
||||||
someSortOfTriggerError);
|
someSortOfTriggerError);
|
||||||
|
|
||||||
for (int i = 0;i<GAP_TRACKING_LENGHT;i++) {
|
for (int i = 0;i<GAP_TRACKING_LENGTH;i++) {
|
||||||
scheduleMsg(logger, "%d:", i);
|
scheduleMsg(logger, "%d:", i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -423,7 +423,7 @@ void TriggerState::decodeTriggerEvent(trigger_event_e const signal, efitime_t no
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = GAP_TRACKING_LENGHT; i > 0; i--) {
|
for (int i = GAP_TRACKING_LENGTH; i > 0; i--) {
|
||||||
toothDurations[i] = toothDurations[i - 1];
|
toothDurations[i] = toothDurations[i - 1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -77,7 +77,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* current duration at index zero and previous durations are following
|
* current duration at index zero and previous durations are following
|
||||||
*/
|
*/
|
||||||
uint32_t toothDurations[GAP_TRACKING_LENGHT + 1];
|
uint32_t toothDurations[GAP_TRACKING_LENGTH + 1];
|
||||||
|
|
||||||
efitime_t toothed_previous_time;
|
efitime_t toothed_previous_time;
|
||||||
|
|
||||||
|
|
|
@ -105,7 +105,7 @@ void TriggerShape::initialize(operation_mode_e operationMode, bool needSecondTri
|
||||||
// memset(triggerIndexByAngle, 0, sizeof(triggerIndexByAngle));
|
// memset(triggerIndexByAngle, 0, sizeof(triggerIndexByAngle));
|
||||||
|
|
||||||
setTriggerSynchronizationGap(2);
|
setTriggerSynchronizationGap(2);
|
||||||
for (int index = 1; index < GAP_TRACKING_LENGHT ; index++) {
|
for (int index = 1; index < GAP_TRACKING_LENGTH ; index++) {
|
||||||
// NaN means do not use this gap ratio
|
// NaN means do not use this gap ratio
|
||||||
setTriggerSynchronizationGap3(index, NAN, 100000);
|
setTriggerSynchronizationGap3(index, NAN, 100000);
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,7 +45,7 @@ private:
|
||||||
class Engine;
|
class Engine;
|
||||||
class TriggerState;
|
class TriggerState;
|
||||||
|
|
||||||
#define GAP_TRACKING_LENGHT 4
|
#define GAP_TRACKING_LENGTH 4
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Trigger shape has all the fields needed to describe and decode trigger signal.
|
* @brief Trigger shape has all the fields needed to describe and decode trigger signal.
|
||||||
|
@ -99,8 +99,8 @@ public:
|
||||||
* gaps ratios to sync
|
* gaps ratios to sync
|
||||||
*/
|
*/
|
||||||
|
|
||||||
float syncronizationRatioFrom[GAP_TRACKING_LENGHT];
|
float syncronizationRatioFrom[GAP_TRACKING_LENGTH];
|
||||||
float syncronizationRatioTo[GAP_TRACKING_LENGHT];
|
float syncronizationRatioTo[GAP_TRACKING_LENGTH];
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue