log target lambda (#1919)
This commit is contained in:
parent
c29fb5169b
commit
66cc63b18a
|
@ -256,7 +256,9 @@ typedef struct {
|
|||
scaled_pressure lowFuelPressure; // 276
|
||||
scaled_high_pressure highFuelPressure; // 278
|
||||
|
||||
uint8_t unusedAtTheEnd[8]; // we have some unused bytes to allow compatible TS changes
|
||||
scaled_lambda targetLambda; // 280
|
||||
|
||||
uint8_t unusedAtTheEnd[6]; // we have some unused bytes to allow compatible TS changes
|
||||
|
||||
// Temporary - will remove soon
|
||||
TsDebugChannels* getDebugChannels() {
|
||||
|
|
|
@ -38,6 +38,7 @@ static const LogField fields[] = {
|
|||
{tsOutputChannels.vvtPosition, GAUGE_NAME_VVT, "deg", 1},
|
||||
{tsOutputChannels.chargeAirMass, GAUGE_NAME_AIR_MASS, "g", 3},
|
||||
{tsOutputChannels.currentTargetAfr, GAUGE_NAME_TARGET_AFR, "afr", 2},
|
||||
{tsOutputChannels.targetLambda, GAUGE_NAME_TARGET_LAMBDA, "", 3},
|
||||
{tsOutputChannels.fuelBase, GAUGE_NAME_FUEL_BASE, "ms", 3},
|
||||
{tsOutputChannels.fuelRunning, GAUGE_NAME_FUEL_RUNNING, "ms", 3},
|
||||
{tsOutputChannels.actualLastInjection, GAUGE_NAME_FUEL_LAST_INJECTION, "ms", 3},
|
||||
|
|
|
@ -617,6 +617,7 @@ void updateTunerStudioState(TunerStudioOutputChannels *tsOutputChannels DECLARE_
|
|||
// offset 112
|
||||
tsOutputChannels->veValue = engine->engineState.currentVe;
|
||||
tsOutputChannels->currentTargetAfr = ENGINE(engineState.targetAFR);
|
||||
tsOutputChannels->targetLambda = ENGINE(engineState.targetLambda);
|
||||
|
||||
if (hasMapSensor(PASS_ENGINE_PARAMETER_SIGNATURE)) {
|
||||
float mapValue = getMap(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||
|
|
|
@ -1620,6 +1620,7 @@ end_struct
|
|||
#define GAUGE_NAME_FUEL_INJ_DUTY "fuel: injector duty cycle"
|
||||
#define GAUGE_NAME_TCHARGE "fuel: SD tCharge"
|
||||
#define GAUGE_NAME_TARGET_AFR "fuel: target AFR"
|
||||
#define GAUGE_NAME_TARGET_LAMBDA "fuel: target lambda"
|
||||
#define GAUGE_NAME_LAMBDA "Lambda"
|
||||
#define GAUGE_NAME_IAC "Idle Air Valve"
|
||||
|
||||
|
|
|
@ -369,6 +369,7 @@ enable2ndByteCanID = false
|
|||
rawHighFuelPressure = scalar, U16, 274, "V",{1/@@PACK_MULT_VOLTAGE@@}, 0
|
||||
lowFuelPressure = scalar, S16, 276, "kpa", {1/@@PACK_MULT_PRESSURE@@}, 0
|
||||
highFuelPressure = scalar, S16, 278, "bar", {1/@@PACK_MULT_HIGH_PRESSURE@@}, 0
|
||||
targetLambda = scalar, U16, 280, "",{1/@@PACK_MULT_LAMBDA@@}, 0.0
|
||||
|
||||
;
|
||||
; see TunerStudioOutputChannels struct
|
||||
|
@ -1156,6 +1157,7 @@ gaugeCategory = Knock
|
|||
entry = injectorDutyCycle,@@GAUGE_NAME_FUEL_INJ_DUTY@@,float,"%.3f"
|
||||
entry = coilDutyCycle, @@GAUGE_NAME_DWELL_DUTY@@, float,"%.3f"
|
||||
entry = currentTargetAfr,@@GAUGE_NAME_TARGET_AFR@@, float,"%.3f"
|
||||
entry = targetLambda, @@GAUGE_NAME_TARGET_LAMBDA@@, float,"%.4f"
|
||||
|
||||
entry = accelerationX, @@GAUGE_NAME_ACCEL_X@@, float,"%.2f", { LIS302DLCsPin != 0 }
|
||||
entry = accelerationY, @@GAUGE_NAME_ACCEL_Y@@, float,"%.2f", { LIS302DLCsPin != 0 }
|
||||
|
|
Loading…
Reference in New Issue