ETB to SD logs
This commit is contained in:
parent
aa8d0eb640
commit
02fb27440e
|
@ -217,6 +217,15 @@ static void printSensors(Logging *log) {
|
||||||
reportSensorF(log, GAUGE_NAME_VBAT, "V", getVBatt(PASS_ENGINE_PARAMETER_SIGNATURE), 2); // log column #6
|
reportSensorF(log, GAUGE_NAME_VBAT, "V", getVBatt(PASS_ENGINE_PARAMETER_SIGNATURE), 2); // log column #6
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 312
|
||||||
|
reportSensorF(log, GAUGE_NAME_ETB_TARGET, "v", tsOutputChannels.etbTarget, 2);
|
||||||
|
// 316
|
||||||
|
reportSensorF(log, GAUGE_NAME_ETB_DUTY, "e", tsOutputChannels.etb1DutyCycle, 2);
|
||||||
|
// 320
|
||||||
|
reportSensorF(log, GAUGE_NAME_ETB_ERROR, "d", tsOutputChannels.etb1Error, 2);
|
||||||
|
|
||||||
|
|
||||||
reportSensorF(log, GAUGE_NAME_FUEL_BARO_CORR, "x", engine->engineState.baroCorrection, 2);
|
reportSensorF(log, GAUGE_NAME_FUEL_BARO_CORR, "x", engine->engineState.baroCorrection, 2);
|
||||||
|
|
||||||
reportSensorF(log, GAUGE_NAME_AIR_FLOW, "v", getAirFlowGauge(PASS_ENGINE_PARAMETER_SIGNATURE), 2);
|
reportSensorF(log, GAUGE_NAME_AIR_FLOW, "v", getAirFlowGauge(PASS_ENGINE_PARAMETER_SIGNATURE), 2);
|
||||||
|
|
|
@ -295,8 +295,11 @@ DISPLAY(DISPLAY_IF(hasEtbPedalPositionSensor))
|
||||||
/* DISPLAY_ELSE */
|
/* DISPLAY_ELSE */
|
||||||
DISPLAY_TEXT(No_Pedal_Sensor);
|
DISPLAY_TEXT(No_Pedal_Sensor);
|
||||||
/* DISPLAY_ENDIF */
|
/* DISPLAY_ENDIF */
|
||||||
|
// 312
|
||||||
tsOutputChannels.etbTarget = targetPosition;
|
tsOutputChannels.etbTarget = targetPosition;
|
||||||
|
// 316
|
||||||
tsOutputChannels.etb1DutyCycle = currentEtbDuty;
|
tsOutputChannels.etb1DutyCycle = currentEtbDuty;
|
||||||
|
// 320
|
||||||
// Error is positive if the throttle needs to open further
|
// Error is positive if the throttle needs to open further
|
||||||
tsOutputChannels.etb1Error = targetPosition - actualThrottlePosition;
|
tsOutputChannels.etb1Error = targetPosition - actualThrottlePosition;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1183,6 +1183,9 @@ end_struct
|
||||||
#define GAUGE_NAME_VBAT "VBatt"
|
#define GAUGE_NAME_VBAT "VBatt"
|
||||||
#define GAUGE_NAME_ENGINE_LOAD "Engine Load"
|
#define GAUGE_NAME_ENGINE_LOAD "Engine Load"
|
||||||
#define GAUGE_NAME_CPU_TEMP "CPU Temperature"
|
#define GAUGE_NAME_CPU_TEMP "CPU Temperature"
|
||||||
|
#define GAUGE_NAME_ETB_TARGET "ETB position target"
|
||||||
|
#define GAUGE_NAME_ETB_ERROR "ETB position error"
|
||||||
|
#define GAUGE_NAME_ETB_DUTY "ETB duty cycle"
|
||||||
|
|
||||||
#define GAUGE_NAME_ACCEL_X "Acceleration: X"
|
#define GAUGE_NAME_ACCEL_X "Acceleration: X"
|
||||||
#define GAUGE_NAME_ACCEL_Y "Acceleration: Y"
|
#define GAUGE_NAME_ACCEL_Y "Acceleration: Y"
|
||||||
|
|
|
@ -848,9 +848,9 @@ gaugeCategory = Throttle Body (incl. ETB)
|
||||||
tpsADCGauge = tpsADC, "tps1 ADC", "ADC", 0, 1024, 0, 0, 0, 0, 0, 0
|
tpsADCGauge = tpsADC, "tps1 ADC", "ADC", 0, 1024, 0, 0, 0, 0, 0, 0
|
||||||
TPSGauge = TPSValue, "Throttle position", "%", 0, 100, 0, 0, 100, 100, 1, 1
|
TPSGauge = TPSValue, "Throttle position", "%", 0, 100, 0, 0, 100, 100, 1, 1
|
||||||
|
|
||||||
etbTargetGauge = etbTarget, "ETB position target", "%", 0, 100, 0, 0, 100, 100, 1, 1
|
etbTargetGauge = etbTarget, @@GAUGE_NAME_ETB_TARGET@@, "%", 0, 100, 0, 0, 100, 100, 1, 1
|
||||||
etbErrorGauge = etb1Error, "ETB position error", "%", -20, 20, -10, -5, 5, 10, 2, 0
|
etbErrorGauge = etb1Error, @@GAUGE_NAME_ETB_ERROR@@, "%", -20, 20, -10, -5, 5, 10, 2, 0
|
||||||
etbDutyCycleGauge = etb1DutyCycle, "ETB duty cycle", "%", -100, 100, -75, -50, 50, 75, 0, 0
|
etbDutyCycleGauge = etb1DutyCycle, @@GAUGE_NAME_ETB_DUTY@@, "%", -100, 100, -75, -50, 50, 75, 0, 0
|
||||||
|
|
||||||
|
|
||||||
[WueAnalyze]
|
[WueAnalyze]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package com.rusefi.config.generated;
|
package com.rusefi.config.generated;
|
||||||
|
|
||||||
// this file was generated automatically by rusEfi tool ConfigDefinition.jar based on integration\rusefi_config.txt Fri Sep 20 19:43:59 EDT 2019
|
// this file was generated automatically by rusEfi tool ConfigDefinition.jar based on integration\rusefi_config.txt Fri Sep 20 20:31:53 EDT 2019
|
||||||
|
|
||||||
// by class com.rusefi.output.FileJavaFieldsConsumer
|
// by class com.rusefi.output.FileJavaFieldsConsumer
|
||||||
import com.rusefi.config.*;
|
import com.rusefi.config.*;
|
||||||
|
@ -583,6 +583,9 @@ public class Fields {
|
||||||
public static final String GAUGE_NAME_DWELL_DUTY = "dwell: coil duty cycle";
|
public static final String GAUGE_NAME_DWELL_DUTY = "dwell: coil duty cycle";
|
||||||
public static final String GAUGE_NAME_ECU_TEMPERATURE = "ECU temperature";
|
public static final String GAUGE_NAME_ECU_TEMPERATURE = "ECU temperature";
|
||||||
public static final String GAUGE_NAME_ENGINE_LOAD = "Engine Load";
|
public static final String GAUGE_NAME_ENGINE_LOAD = "Engine Load";
|
||||||
|
public static final String GAUGE_NAME_ETB_DUTY = "ETB duty cycle";
|
||||||
|
public static final String GAUGE_NAME_ETB_ERROR = "ETB position error";
|
||||||
|
public static final String GAUGE_NAME_ETB_TARGET = "ETB position target";
|
||||||
public static final String GAUGE_NAME_FUEL_BARO_CORR = "fuel: Barometric pressure correction";
|
public static final String GAUGE_NAME_FUEL_BARO_CORR = "fuel: Barometric pressure correction";
|
||||||
public static final String GAUGE_NAME_FUEL_BASE = "fuel: base";
|
public static final String GAUGE_NAME_FUEL_BASE = "fuel: base";
|
||||||
public static final String GAUGE_NAME_FUEL_CHARGE_TEMP = "fuel: Estimated charge temperature";
|
public static final String GAUGE_NAME_FUEL_CHARGE_TEMP = "fuel: Estimated charge temperature";
|
||||||
|
|
Loading…
Reference in New Issue