Add gego channel to make VE analyze happy #82

(cherry picked from commit d0c645bad5ddd6a54be149adeb963bae6fa5fa6b)
This commit is contained in:
Matthew Kennedy 2023-05-04 14:22:36 -07:00 committed by rusefillc
parent d6a1426d76
commit 350d9060fb
3 changed files with 5 additions and 2 deletions

View File

@ -368,5 +368,7 @@ float mapFast
uint16_t schedulingUsedCount;;"",1,0,0,0,0
uint16_t autoscale vehicleSpeedKph;@@GAUGE_NAME_VVS@@;"kph",{1/@@PACK_MULT_VSS@@}, 0, 0, 0, 2
uint8_t[136 iterate] unusedAtTheEnd;;"",1, 0, 0, 0, 0
uint16_t autoscale Gego;;"%",0.01,0,50,150,2
uint8_t[134 iterate] unusedAtTheEnd;;"",1, 0, 0, 0, 0
end_struct

View File

@ -534,6 +534,7 @@ static void updateSensors() {
static void updateFuelCorrections() {
engine->outputChannels.fuelPidCorrection[0] = 100.0f * (engine->stftCorrection[0] - 1.0f);
engine->outputChannels.fuelPidCorrection[1] = 100.0f * (engine->stftCorrection[1] - 1.0f);
engine->outputChannels.Gego = 100.0f * engine->stftCorrection[0];
// get rid of this, have gauges use injector model info directly
engine->outputChannels.injectorLagMs = engine->module<InjectorModel>()->getDeadtime();

View File

@ -186,7 +186,7 @@ void EngineState::periodicFastCallback() {
// Now apply that to per-cylinder fueling and timing
for (size_t i = 0; i < engineConfiguration->cylindersCount; i++) {
uint8_t bankIndex = engineConfiguration->cylinderBankSelect[i];
auto bankTrim =engine->stftCorrection[bankIndex];
auto bankTrim = engine->stftCorrection[bankIndex];
auto cylinderTrim = getCylinderFuelTrim(i, rpm, fuelLoad);
// Apply both per-bank and per-cylinder trims