4g is symmetrical crank not just four stroke crank #5211

only:alphax-4chan
This commit is contained in:
Andrey 2023-03-30 23:31:39 -04:00
parent 36ea70a3e3
commit 6c1a8d501e
2 changed files with 2 additions and 6 deletions

View File

@ -75,7 +75,7 @@ void initializeMitsubishi4G93(TriggerWaveform *s) {
} }
void initializeMitsubishi4gSymmetricalCrank(TriggerWaveform *s) { void initializeMitsubishi4gSymmetricalCrank(TriggerWaveform *s) {
initializeSkippedToothTrigger(s, 2, initializeSkippedToothTrigger(s, /* reality */2 * /* symmetrical*/0.5,
0, FOUR_STROKE_SYMMETRICAL_CRANK_SENSOR, SyncEdge::RiseOnly); 0, FOUR_STROKE_SYMMETRICAL_CRANK_SENSOR, SyncEdge::RiseOnly);
} }

View File

@ -18,15 +18,11 @@ TEST(real4g93, cranking) {
engineConfiguration->vvtMode[0] = VVT_MITSUBISHI_4G63; engineConfiguration->vvtMode[0] = VVT_MITSUBISHI_4G63;
engineConfiguration->trigger.customTotalToothCount = 2; eth.setTriggerType(TT_MITSU_4G63_CRANK);
engineConfiguration->trigger.customSkippedToothCount = 0;
engineConfiguration->skippedWheelOnCam = false;
eth.setTriggerType(TT_TOOTHED_WHEEL);
bool gotRpm = false; bool gotRpm = false;
bool gotSync = false; bool gotSync = false;
static const float gapRatios[2][4] = { static const float gapRatios[2][4] = {
{ 0, NAN, INFINITY, 0.89f }, // no sync { 0, NAN, INFINITY, 0.89f }, // no sync
{ 0.4f, 3.788f, 0.62f, 1.02f } { 0.4f, 3.788f, 0.62f, 1.02f }