4g is symmetrical crank not just four stroke crank #5211
only:alphax-4chan
This commit is contained in:
parent
36ea70a3e3
commit
6c1a8d501e
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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 }
|
||||||
|
|
Loading…
Reference in New Issue