injectionOffset to TS gauges first step
This commit is contained in:
parent
426db4ca2b
commit
9158dc22f2
|
@ -166,7 +166,8 @@ typedef struct {
|
|||
int16_t accelerationY; // 278
|
||||
float oilPressure; // 280
|
||||
float fuelConsumptionPerHour; // 284
|
||||
int unused3[17];
|
||||
float injectionOffset; // 288
|
||||
int unused3[16];
|
||||
/* see also [OutputChannels] in rusefi.input */
|
||||
} TunerStudioOutputChannels;
|
||||
|
||||
|
|
|
@ -506,7 +506,7 @@ static void showFuelInfo2(float rpm, float engineLoad) {
|
|||
scheduleMsg(&logger2, "algo=%s/pump=%s", getEngine_load_mode_e(engineConfiguration->fuelAlgorithm),
|
||||
boolToString(enginePins.fuelPumpRelay.getLogicValue()));
|
||||
|
||||
scheduleMsg(&logger2, "injection phase=%.2f/global fuel correction=%.2f", getinjectionOffset(rpm), engineConfiguration->globalFuelCorrection);
|
||||
scheduleMsg(&logger2, "injection phase=%.2f/global fuel correction=%.2f", getInjectionOffset(rpm), engineConfiguration->globalFuelCorrection);
|
||||
|
||||
scheduleMsg(&logger2, "baro correction=%.2f", engine->engineState.baroCorrection);
|
||||
|
||||
|
@ -687,6 +687,8 @@ void updateTunerStudioState(TunerStudioOutputChannels *tsOutputChannels DECLARE_
|
|||
tsOutputChannels->massAirFlow = hasMafSensor() ? getRealMaf(PASS_ENGINE_PARAMETER_SIGNATURE) : 0;
|
||||
tsOutputChannels->oilPressure = engine->sensors.oilPressure;
|
||||
|
||||
tsOutputChannels->injectionOffset = engine->engineState.injectionOffset;
|
||||
|
||||
tsOutputChannels->accelerationX = engine->sensors.accelerometer.x;
|
||||
tsOutputChannels->accelerationY = engine->sensors.accelerometer.y;
|
||||
|
||||
|
|
Loading…
Reference in New Issue