Add staging duty cycle gauge. Confirmed 2S staging (Closes #162)

This commit is contained in:
Josh Stewart 2018-09-17 09:30:48 +10:00
parent 62b367595a
commit 73f8004cc4
1 changed files with 2 additions and 0 deletions

View File

@ -2695,6 +2695,7 @@ cmdtestspk450dc = "E\x03\x0C"
;Name Var Title Units Lo Hi LoD LoW HiW HiD vd ld
accelEnrichGauge = accelEnrich, "Accel Enrich", "%", 50, 150, -1, -1, 999, 999, 0, 0
dutyCycleGauge = dutyCycle, "Duty Cycle", "%", 0, 100, -1, -1, 70, 80, 1, 1
stgDutyCycleGauge = stgDutyCycle, "Staging Duty Cycle", "%", 0, 100, -1, -1, 70, 80, 1, 1
egoCorrGauge = egoCorrection, "EGO Correction", "%", 50, 150, 90, 99, 101, 110, 0, 0
gammaEnrichGauge = gammaEnrich, "Gamma Enrichment", "%", 50, 150, -1, -1, 151, 151, 0, 0
@ -2927,6 +2928,7 @@ cmdtestspk450dc = "E\x03\x0C"
cycleMultiplier = { injLayout == 3 ? 2 : 1 }
strokeMultipler = { twoStroke == 1 ? 2 : 1 }
dutyCycle = { rpm ? ( 100.0*pulseWidth/(cycleTime * cycleMultiplier) * strokeMultipler ) : 0 }
stgDutyCycle = { rpm && stagingEnabled ? ( 100.0*pulseWidth3/(cycleTime * cycleMultiplier) * strokeMultipler ) : 0 }
boostCutOut = { boostCutFuel || boostCutSpark }
lambda = { afr / stoich }