we already have this copied to a local
This commit is contained in:
parent
6f4c123870
commit
4d808d6a0c
|
@ -129,7 +129,7 @@ void TriggerFormDetails::prepareEventAngles(TriggerWaveform *shape) {
|
|||
// this may be <length for some triggers like symmetrical crank Miata NB
|
||||
size_t triggerShapeLength = shape->getSize();
|
||||
|
||||
assertAngleRange(shape->triggerShapeSynchPointIndex, "triggerShapeSynchPointIndex", ObdCode::CUSTOM_TRIGGER_SYNC_ANGLE2);
|
||||
assertAngleRange(triggerShapeSynchPointIndex, "triggerShapeSynchPointIndex", ObdCode::CUSTOM_TRIGGER_SYNC_ANGLE2);
|
||||
efiAssertVoid(ObdCode::CUSTOM_TRIGGER_CYCLE, getTriggerCentral()->engineCycleEventCount != 0, "zero engineCycleEventCount");
|
||||
|
||||
for (size_t eventIndex = 0; eventIndex < length; eventIndex++) {
|
||||
|
@ -140,7 +140,7 @@ void TriggerFormDetails::prepareEventAngles(TriggerWaveform *shape) {
|
|||
eventAngles[1] = 0;
|
||||
} else {
|
||||
// Rotate the trigger around so that the sync point is at position 0
|
||||
auto wrappedIndex = (shape->triggerShapeSynchPointIndex + eventIndex) % length;
|
||||
auto wrappedIndex = (triggerShapeSynchPointIndex + eventIndex) % length;
|
||||
|
||||
// Compute this tooth's position within the trigger definition
|
||||
// (wrap, as the trigger def may be smaller than total trigger length)
|
||||
|
|
Loading…
Reference in New Issue