fix (#1863)
This commit is contained in:
parent
cef405c83f
commit
a9e2a5cd1e
|
@ -317,16 +317,17 @@ void configureHondaAccordShifted(TriggerWaveform *s) {
|
||||||
void configureOnePlus16(TriggerWaveform *s) {
|
void configureOnePlus16(TriggerWaveform *s) {
|
||||||
s->initialize(FOUR_STROKE_CAM_SENSOR);
|
s->initialize(FOUR_STROKE_CAM_SENSOR);
|
||||||
|
|
||||||
int totalTeethCount = 16;
|
int count = 16;
|
||||||
int skippedCount = 0;
|
float tooth = s->getCycleDuration() / count;
|
||||||
|
float width = tooth / 2; // for VR we only handle rises so width does not matter much
|
||||||
|
|
||||||
s->addEvent720(2, T_PRIMARY, TV_RISE);
|
s->addEventAngle(1, T_PRIMARY, TV_RISE);
|
||||||
addSkippedToothTriggerEvents(T_SECONDARY, s, totalTeethCount, skippedCount, 0.5, 0, 360, 2, 20);
|
s->addEventAngle(5, T_PRIMARY, TV_FALL);
|
||||||
s->addEvent720(20, T_PRIMARY, TV_FALL);
|
|
||||||
addSkippedToothTriggerEvents(T_SECONDARY, s, totalTeethCount, skippedCount, 0.5, 0, 360, 20, NO_RIGHT_FILTER);
|
|
||||||
|
|
||||||
addSkippedToothTriggerEvents(T_SECONDARY, s, totalTeethCount, skippedCount, 0.5, 360, 360, NO_LEFT_FILTER,
|
for (int i = 1; i <= count; i++) {
|
||||||
NO_RIGHT_FILTER);
|
s->addEventAngle(tooth * i - width, T_SECONDARY, TV_RISE);
|
||||||
|
s->addEventAngle(tooth * i, T_SECONDARY, TV_FALL);
|
||||||
|
}
|
||||||
|
|
||||||
s->isSynchronizationNeeded = false;
|
s->isSynchronizationNeeded = false;
|
||||||
s->useOnlyPrimaryForSync = true;
|
s->useOnlyPrimaryForSync = true;
|
||||||
|
|
Loading…
Reference in New Issue