Skip to content

Commit

Permalink
injectionOffset to TS gauges first step
Browse files Browse the repository at this point in the history
  • Loading branch information
rusefi committed Jun 12, 2018
1 parent 426db4c commit 9158dc2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion firmware/console/binary/tunerstudio_configuration.h
Expand Up @@ -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;

Expand Down
4 changes: 3 additions & 1 deletion firmware/console/status_loop.cpp
Expand Up @@ -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);

Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 9158dc2

Please sign in to comment.