automation around outputs section #197

datalog toolset
This commit is contained in:
rusefillc 2021-11-28 17:04:46 -05:00
parent 3fae399b7c
commit 6a9a267314
11 changed files with 448 additions and 24 deletions

View File

@ -0,0 +1,180 @@
entry = sd_present, "sd_present", int, "%d"
entry = isIgnitionEnabledIndicator, "isIgnitionEnabledIndicator", int, "%d"
entry = isInjectionEnabledIndicator, "isInjectionEnabledIndicator", int, "%d"
entry = sd_logging_internal, "sd_logging_internal", int, "%d"
entry = isCylinderCleanupActivated, "isCylinderCleanupActivated", int, "%d"
entry = isFuelPumpOn, "isFuelPumpOn", int, "%d"
entry = isFanOn, "radiator fan", int, "%d"
entry = isO2HeaterOn, "isO2HeaterOn", int, "%d"
entry = checkEngine, "checkEngine", int, "%d"
entry = needBurn, "needBurn", int, "%d"
entry = sd_msd, "sd_msd", int, "%d"
entry = clutchUpState, "clutch: up", int, "%d"
entry = clutchDownState, "clutch: down", int, "%d"
entry = isFan2On, "isFan2On", int, "%d"
entry = brakePedalState, "brake: down", int, "%d"
entry = toothLogReady, "toothLogReady", int, "%d"
entry = acSwitchState, "AC switch", int, "%d"
entry = isTpsError, "isTpsError", int, "%d"
entry = isCltError, "isCltError", int, "%d"
entry = isMapError, "isMapError", int, "%d"
entry = isIatError, "isIatError", int, "%d"
entry = acState, "acState", int, "%d"
entry = isTriggerError, "isTriggerError", int, "%d"
entry = hasCriticalError, "hasCriticalError", int, "%d"
entry = isWarnNow, "isWarnNow", int, "%d"
entry = isPedalError, "isPedalError", int, "%d"
entry = isKnockChipOk, "isKnockChipOk", int, "%d"
entry = launchTriggered, "launchTriggered", int, "%d"
entry = isTps2Error, "isTps2Error", int, "%d"
entry = isIdleClosedLoop, "isIdleClosedLoop", int, "%d"
entry = isIdleCoasting, "isIdleCoasting", int, "%d"
entry = RPMValue, "RPM", int, "%d"
entry = rpmAcceleration, "dRPM", int, "%d"
entry = speedToRpmRatio, "s2rpm", float, "%.3f"
entry = vehicleSpeedKph, "Vehicle Speed", int, "%d"
entry = internalMcuTemperature, "CPU Temperature", int, "%d"
entry = coolant, "CLT", float, "%.3f"
entry = intake, "IAT", float, "%.3f"
entry = auxTemp1, "auxTemp1", float, "%.3f"
entry = auxTemp2, "auxTemp2", float, "%.3f"
entry = TPSValue, "TPS", float, "%.3f"
entry = throttlePedalPosition, "Throttle pedal position", float, "%.3f"
entry = tpsADC, "tpsADC", int, "%d"
entry = MAFValue, "MAF", float, "%.3f"
entry = massAirFlowValue, "MAF air flow", float, "%.3f"
entry = MAPValue, "MAP", float, "%.3f"
entry = baroPressure, "baroPressure", float, "%.3f"
entry = lambdaValue, "Lambda", float, "%.3f"
entry = knockRetard, "knockRetard", float, "%.3f"
entry = VBatt, "VBatt", float, "%.3f"
entry = oilPressure, "Oil Pressure", float, "%.3f"
entry = vvtPositionB1I, "VVT: bank 1 intake", float, "%.3f"
entry = chargeAirMass, "air mass", float, "%.3f"
entry = crankingFuelMs, "crankingFuelMs", float, "%.3f"
entry = currentTargetAfr, "fuel: target AFR", float, "%.3f"
entry = baseFuel, "fuel: base mass", float, "%.3f"
entry = fuelRunning, "fuel: running", float, "%.3f"
entry = actualLastInjection, "fuel: Last injection", float, "%.3f"
entry = injectorDutyCycle, "fuel: injector duty cycle", float, "%.3f"
entry = veValue, "fuel: VE", float, "%.3f"
entry = injectionOffset, "injectionOffset", float, "%.3f"
entry = tCharge, "tCharge", float, "%.3f"
entry = injectorLagMs, "fuel: injector lag", float, "%.3f"
entry = iatCorrection, "fuel: IAT correction", float, "%.3f"
entry = cltCorrection, "fuel: CLT correction", float, "%.3f"
entry = baroCorrection, "fuel: Barometric pressure correction", float, "%.3f"
entry = currentEnginePhase, "Engine Phase", int, "%d"
entry = wallFuelAmount, "fuel: wall corr ms", float, "%.3f"
entry = wallFuelCorrection, "fuel: wall amount", float, "%.3f"
entry = deltaTps, "fuel: TPS change", float, "%.3f"
entry = tpsAccelFuel, "fuel: TPS acceleration extra fuel ms", float, "%.3f"
entry = ignitionAdvance, "timing", float, "%.3f"
entry = sparkDwellValue, "dwell: coil charge time", float, "%.3f"
entry = coilDutyCycle, "dwell: coil duty cycle", float, "%.3f"
entry = idleAirValvePosition, "Idle Air Valve", float, "%.3f"
entry = etbTarget, "ETB Target", float, "%.3f"
entry = etb1DutyCycle, "ETB Duty", float, "%.3f"
entry = etb1Error, "ETB Error", float, "%.3f"
entry = fuelTankLevel, "Fuel level", float, "%.3f"
entry = totalFuelConsumption, "fuel: Total consumed", int, "%d"
entry = fuelFlowRate, "fuel: Flow rate", float, "%.3f"
entry = veTableYAxis, "veTableYAxis", float, "%.3f"
entry = afrTableYAxis, "afrTableYAxis", float, "%.3f"
entry = knockLevel, "knock: current level", float, "%.3f"
entry = seconds, "Uptime", int, "%d"
entry = engineMode, "Engine Mode", int, "%d"
entry = firmwareVersion, "firmware", int, "%d"
entry = tsConfigVersion, "tsConfigVersion", int, "%d"
entry = calibrationValue, "calibrationValue", float, "%.3f"
entry = calibrationMode, "calibrationMode", int, "%d"
entry = fuelingLoad, "fuel: load", float, "%.3f"
entry = ignitionLoad, "ign: load", float, "%.3f"
entry = engineMakeCodeNameCrc16, "Engine CRC16", int, "%d"
entry = totalTriggerErrorCounter, "trg err", int, "%d"
entry = orderingErrorCounter, "orderingErrorCounter", int, "%d"
entry = warningCounter, "warning: counter", int, "%d"
entry = lastErrorCode, "warning: last", int, "%d"
entry = recentErrorCode1, "recentErrorCode1", int, "%d"
entry = recentErrorCode2, "recentErrorCode2", int, "%d"
entry = recentErrorCode3, "recentErrorCode3", int, "%d"
entry = recentErrorCode4, "recentErrorCode4", int, "%d"
entry = recentErrorCode5, "recentErrorCode5", int, "%d"
entry = recentErrorCode6, "recentErrorCode6", int, "%d"
entry = recentErrorCode7, "recentErrorCode7", int, "%d"
entry = recentErrorCode8, "recentErrorCode8", int, "%d"
entry = debugFloatField1, "debugFloatField1", float, "%.3f"
entry = debugFloatField2, "debugFloatField2", float, "%.3f"
entry = debugFloatField3, "debugFloatField3", float, "%.3f"
entry = debugFloatField4, "debugFloatField4", float, "%.3f"
entry = debugFloatField5, "debugFloatField5", float, "%.3f"
entry = debugFloatField6, "debugFloatField6", float, "%.3f"
entry = debugFloatField7, "debugFloatField7", float, "%.3f"
entry = debugIntField1, "debugIntField1", int, "%d"
entry = debugIntField2, "debugIntField2", int, "%d"
entry = debugIntField3, "debugIntField3", int, "%d"
entry = debugIntField4, "debugIntField4", int, "%d"
entry = debugIntField5, "debugIntField5", int, "%d"
entry = accelerationX, "Acceleration: X", float, "%.3f"
entry = accelerationY, "Acceleration: Y", float, "%.3f"
entry = egt1, "egt1", int, "%d"
entry = egt2, "egt2", int, "%d"
entry = egt3, "egt3", int, "%d"
entry = egt4, "egt4", int, "%d"
entry = egt5, "egt5", int, "%d"
entry = egt6, "egt6", int, "%d"
entry = egt7, "egt7", int, "%d"
entry = egt8, "egt8", int, "%d"
entry = TPS2Value, "TPS2", float, "%.3f"
entry = rawTps1Primary, "rawTps1Primary", float, "%.3f"
entry = rawPpsPrimary, "rawPpsPrimary", float, "%.3f"
entry = rawClt, "rawClt", float, "%.3f"
entry = rawIat, "rawIat", float, "%.3f"
entry = rawOilPressure, "rawOilPressure", float, "%.3f"
entry = tuneCrc16, "Tune CRC16", int, "%d"
entry = tcuCurrentGear, "Current Gear", int, "%d"
entry = rawPpsSecondary, "rawPpsSecondary", float, "%.3f"
entry = knock1, "knock1", int, "%d"
entry = knock2, "knock2", int, "%d"
entry = knock3, "knock3", int, "%d"
entry = knock4, "knock4", int, "%d"
entry = knock5, "knock5", int, "%d"
entry = knock6, "knock6", int, "%d"
entry = knock7, "knock7", int, "%d"
entry = knock8, "knock8", int, "%d"
entry = knock9, "knock9", int, "%d"
entry = knock10, "knock10", int, "%d"
entry = knock11, "knock11", int, "%d"
entry = knock12, "knock12", int, "%d"
entry = tcuDesiredGear, "Desired Gear", int, "%d"
entry = flexPercent, "Flex Ethanol %", float, "%.3f"
entry = rawIdlePositionSensor, "rawIdlePositionSensor", float, "%.3f"
entry = rawWastegatePosition, "rawWastegatePosition", float, "%.3f"
entry = wastegatePositionSensor, "Wastegate position sensor", float, "%.3f"
entry = idlePositionSensor, "Idle position sensor", float, "%.3f"
entry = rawLowFuelPressure, "rawLowFuelPressure", float, "%.3f"
entry = rawHighFuelPressure, "rawHighFuelPressure", float, "%.3f"
entry = lowFuelPressure, "Fuel pressure (low)", float, "%.3f"
entry = highFuelPressure, "Fuel pressure (high)", float, "%.3f"
entry = targetLambda, "fuel: target lambda", float, "%.3f"
entry = AFRValue, "Air/Fuel Ratio", float, "%.3f"
entry = VssAcceleration, "Vss Accel", float, "%.3f"
entry = lambdaValue2, "Lambda 2", float, "%.3f"
entry = AFRValue2, "Air/Fuel Ratio 2", float, "%.3f"
entry = vvtPositionB1E, "VVT: bank 1 exhaust", float, "%.3f"
entry = vvtPositionB2I, "VVT: bank 2 intake", float, "%.3f"
entry = vvtPositionB2E, "VVT: bank 2 exhaust", float, "%.3f"
entry = fuelPidCorrection1, "fuelPidCorrection1", int, "%d"
entry = fuelPidCorrection2, "fuelPidCorrection2", int, "%d"
entry = rawTps1Secondary, "rawTps1Secondary", float, "%.3f"
entry = rawTps2Primary, "rawTps2Primary", float, "%.3f"
entry = rawTps2Secondary, "rawTps2Secondary", float, "%.3f"
entry = knockCount, "knock: current level", int, "%d"
entry = accelerationZ, "Acceleration: Z", float, "%.3f"
entry = accelerationRoll, "Acceleration: Roll", float, "%.3f"
entry = accelerationYaw, "Acceleration: Yaw", float, "%.3f"
entry = vvtTargets1, "vvtTargets1", int, "%d"
entry = vvtTargets2, "vvtTargets2", int, "%d"
entry = vvtTargets3, "vvtTargets3", int, "%d"
entry = vvtTargets4, "vvtTargets4", int, "%d"
entry = turboSpeed, "Turbocharger Speed", int, "%d"

View File

@ -0,0 +1,206 @@
sd_present = bits, U32, 0, [0:0]
isIgnitionEnabledIndicator = bits, U32, 0, [1:1]
isInjectionEnabledIndicator = bits, U32, 0, [2:2]
sd_logging_internal = bits, U32, 0, [3:3]
isCylinderCleanupActivated = bits, U32, 0, [4:4]
isFuelPumpOn = bits, U32, 0, [5:5]
isFanOn = bits, U32, 0, [6:6]
isO2HeaterOn = bits, U32, 0, [7:7]
checkEngine = bits, U32, 0, [8:8]
needBurn = bits, U32, 0, [9:9]
sd_msd = bits, U32, 0, [10:10]
clutchUpState = bits, U32, 0, [11:11]
clutchDownState = bits, U32, 0, [12:12]
isFan2On = bits, U32, 0, [13:13]
unusedb14 = bits, U32, 0, [14:14]
brakePedalState = bits, U32, 0, [15:15]
toothLogReady = bits, U32, 0, [16:16]
acSwitchState = bits, U32, 0, [17:17]
isTpsError = bits, U32, 0, [18:18]
isCltError = bits, U32, 0, [19:19]
isMapError = bits, U32, 0, [20:20]
isIatError = bits, U32, 0, [21:21]
acState = bits, U32, 0, [22:22]
isTriggerError = bits, U32, 0, [23:23]
hasCriticalError = bits, U32, 0, [24:24]
isWarnNow = bits, U32, 0, [25:25]
isPedalError = bits, U32, 0, [26:26]
isKnockChipOk = bits, U32, 0, [27:27]
launchTriggered = bits, U32, 0, [28:28]
isTps2Error = bits, U32, 0, [29:29]
isIdleClosedLoop = bits, U32, 0, [30:30]
isIdleCoasting = bits, U32, 0, [31:31]
RPMValue = scalar, U16, 4, "RPM", 1, 0
rpmAcceleration = scalar, U16, 6, "RPM/s", 1, 0
speedToRpmRatio = scalar, U16, 8, "value", 0.01, 0
vehicleSpeedKph = scalar, U08, 10, "kph", 1, 0
internalMcuTemperature = scalar, U08, 11, "deg C", 1, 0
coolant = scalar, U16, 12, "deg C", 0.01, 0
intake = scalar, U16, 14, "deg C", 0.01, 0
auxTemp1 = scalar, U16, 16, "deg C", 0.01, 0
auxTemp2 = scalar, U16, 18, "deg C", 0.01, 0
TPSValue = scalar, U16, 20, "%", 0.01, 0
throttlePedalPosition = scalar, U16, 22, "%", 0.01, 0
tpsADC = scalar, U16, 24, "ADC", 1, 0
MAFValue = scalar, U16, 26, "V", 0.001, 0
massAirFlowValue = scalar, U16, 28, "Kg/h", 0.1, 0
MAPValue = scalar, U16, 30, "kPa", 0.03333333333333333, 0
baroPressure = scalar, U16, 32, "kPa", 0.03333333333333333, 0
lambdaValue = scalar, U16, 34, "", 1.0E-4, 0
knockRetard = scalar, U08, 36, "deg", 0.1, 0
unused37 = scalar, U08, 37, "", 1, 0
VBatt = scalar, U16, 38, "V", 0.001, 0
oilPressure = scalar, U16, 40, "kPa", 0.03333333333333333, 0
vvtPositionB1I = scalar, U16, 42, "deg", 0.02, 0
chargeAirMass = scalar, U16, 44, "g", 0.001, 0
crankingFuelMs = scalar, U16, 46, "ms", 0.01, 0
currentTargetAfr = scalar, U16, 48, "ratio", 0.001, 0
baseFuel = scalar, U16, 50, "mg", 0.01, 0
fuelRunning = scalar, U16, 52, "mg", 0.01, 0
actualLastInjection = scalar, U16, 54, "ms", 0.0033333333333333335, 0
injectorDutyCycle = scalar, U08, 56, "%", 0.5, 0
veValue = scalar, U08, 57, "ratio", 0.5, 0
injectionOffset = scalar, U16, 58, "deg", 0.02, 0
tCharge = scalar, U16, 60, "deg C", 0.01, 0
injectorLagMs = scalar, U16, 62, "ms", 0.0033333333333333335, 0
iatCorrection = scalar, U16, 64, "%", 0.01, 0
cltCorrection = scalar, U16, 66, "%", 0.01, 0
baroCorrection = scalar, U16, 68, "%", 0.01, 0
currentEnginePhase = scalar, U16, 70, "deg", 1, 0
wallFuelAmount = scalar, U16, 72, "mg", 0.01, 0
wallFuelCorrection = scalar, S16, 74, "mg", 0.01, 0
unused76 = scalar, U16, 76, "", 1, 0
deltaTps = scalar, U16, 78, "ratio", 0.01, 0
unused80 = scalar, U16, 80, "", 1, 0
tpsAccelFuel = scalar, U16, 82, "ms", 0.0033333333333333335, 0
ignitionAdvance = scalar, U16, 84, "deg", 0.02, 0
sparkDwellValue = scalar, U16, 86, "ms", 0.0033333333333333335, 0
coilDutyCycle = scalar, U16, 88, "%", 0.01, 0
idleAirValvePosition = scalar, U16, 90, "%", 0.01, 0
etbTarget = scalar, U16, 92, "%", 0.01, 0
etb1DutyCycle = scalar, U16, 94, "%", 0.01, 0
etb1Error = scalar, U16, 96, "%", 0.01, 0
fuelTankLevel = scalar, U16, 98, "%", 0.01, 0
totalFuelConsumption = scalar, U16, 100, "grams", 1, 0
fuelFlowRate = scalar, U16, 102, "gram/s", 0.005, 0
veTableYAxis = scalar, U16, 104, "%", 0.01, 0
afrTableYAxis = scalar, U16, 106, "%", 0.01, 0
knockLevel = scalar, F32, 108, "Volts", 1, 0
seconds = scalar, U32, 112, "sec", 1, 0
engineMode = scalar, U32, 116, "em", 1, 0
firmwareVersion = scalar, U32, 120, "version_f", 1, 0
tsConfigVersion = scalar, U32, 124, "", 1, 0
calibrationValue = scalar, F32, 128, "", 1, 0
calibrationMode = scalar, U08, 132, "", 1, 0
unusedPadding = scalar, U08, 133, "", 1, 0
fuelingLoad = scalar, U16, 134, "%", 0.01, 0
ignitionLoad = scalar, U16, 136, "%", 0.01, 0
engineMakeCodeNameCrc16 = scalar, U16, 138, "crc16", 1, 0
totalTriggerErrorCounter = scalar, U32, 140, "counter", 1, 0
orderingErrorCounter = scalar, U32, 144, "", 1, 0
warningCounter = scalar, U16, 148, "count", 1, 0
lastErrorCode = scalar, U16, 150, "error", 1, 0
recentErrorCode1 = scalar, U16, 152, "error", 1, 0
recentErrorCode2 = scalar, U16, 154, "error", 1, 0
recentErrorCode3 = scalar, U16, 156, "error", 1, 0
recentErrorCode4 = scalar, U16, 158, "error", 1, 0
recentErrorCode5 = scalar, U16, 160, "error", 1, 0
recentErrorCode6 = scalar, U16, 162, "error", 1, 0
recentErrorCode7 = scalar, U16, 164, "error", 1, 0
recentErrorCode8 = scalar, U16, 166, "error", 1, 0
debugFloatField1 = scalar, F32, 168, "val", 1, 0
debugFloatField2 = scalar, F32, 172, "val", 1, 0
debugFloatField3 = scalar, F32, 176, "val", 1, 0
debugFloatField4 = scalar, F32, 180, "val", 1, 0
debugFloatField5 = scalar, F32, 184, "val", 1, 0
debugFloatField6 = scalar, F32, 188, "val", 1, 0
debugFloatField7 = scalar, F32, 192, "val", 1, 0
debugIntField1 = scalar, U32, 196, "val", 1, 0
debugIntField2 = scalar, U32, 200, "val", 1, 0
debugIntField3 = scalar, U32, 204, "val", 1, 0
debugIntField4 = scalar, U16, 208, "val", 1, 0
debugIntField5 = scalar, U16, 210, "val", 1, 0
accelerationX = scalar, U16, 212, "G", 0.01, 0
accelerationY = scalar, U16, 214, "G", 0.01, 0
egt1 = scalar, U16, 216, "deg C", 1, 0
egt2 = scalar, U16, 218, "deg C", 1, 0
egt3 = scalar, U16, 220, "deg C", 1, 0
egt4 = scalar, U16, 222, "deg C", 1, 0
egt5 = scalar, U16, 224, "deg C", 1, 0
egt6 = scalar, U16, 226, "deg C", 1, 0
egt7 = scalar, U16, 228, "deg C", 1, 0
egt8 = scalar, U16, 230, "deg C", 1, 0
TPS2Value = scalar, U16, 232, "%", 0.01, 0
rawTps1Primary = scalar, U16, 234, "V", 0.001, 0
rawPpsPrimary = scalar, U16, 236, "V", 0.001, 0
rawClt = scalar, U16, 238, "V", 0.001, 0
rawIat = scalar, U16, 240, "V", 0.001, 0
rawOilPressure = scalar, U16, 242, "V", 0.001, 0
tuneCrc16 = scalar, U16, 244, "crc16", 1, 0
unusedAt246 = scalar, U08, 246, "", 1, 0
tcuCurrentGear = scalar, U08, 247, "gear", 1, 0
rawPpsSecondary = scalar, U16, 248, "V", 0.001, 0
knock1 = scalar, U08, 250, "", 1, 0
knock2 = scalar, U08, 251, "", 1, 0
knock3 = scalar, U08, 252, "", 1, 0
knock4 = scalar, U08, 253, "", 1, 0
knock5 = scalar, U08, 254, "", 1, 0
knock6 = scalar, U08, 255, "", 1, 0
knock7 = scalar, U08, 256, "", 1, 0
knock8 = scalar, U08, 257, "", 1, 0
knock9 = scalar, U08, 258, "", 1, 0
knock10 = scalar, U08, 259, "", 1, 0
knock11 = scalar, U08, 260, "", 1, 0
knock12 = scalar, U08, 261, "", 1, 0
tcuDesiredGear = scalar, U08, 262, "gear", 1, 0
flexPercent = scalar, U08, 263, "%", 0.5, 0
rawIdlePositionSensor = scalar, U16, 264, "V", 0.001, 0
rawWastegatePosition = scalar, U16, 266, "V", 0.001, 0
wastegatePositionSensor = scalar, U16, 268, "%", 0.01, 0
idlePositionSensor = scalar, U16, 270, "%", 0.01, 0
rawLowFuelPressure = scalar, U16, 272, "V", 0.001, 0
rawHighFuelPressure = scalar, U16, 274, "V", 0.001, 0
lowFuelPressure = scalar, U16, 276, "kpa", 0.03333333333333333, 0
highFuelPressure = scalar, U16, 278, "bar", 0.1, 0
targetLambda = scalar, U16, 280, "", 1.0E-4, 0
AFRValue = scalar, U16, 282, "AFR", 0.001, 0
VssAcceleration = scalar, U16, 284, "m/s2", 0.0033333333333333335, 0
lambdaValue2 = scalar, U16, 286, "", 1.0E-4, 0
AFRValue2 = scalar, U16, 288, "AFR", 0.001, 0
vvtPositionB1E = scalar, U16, 290, "deg", 0.02, 0
vvtPositionB2I = scalar, U16, 292, "deg", 0.02, 0
vvtPositionB2E = scalar, U16, 294, "deg", 0.02, 0
fuelPidCorrection1 = scalar, U16, 296, "%", 0.01, 0
fuelPidCorrection2 = scalar, U16, 298, "%", 0.01, 0
rawTps1Secondary = scalar, U16, 300, "V", 0.001, 0
rawTps2Primary = scalar, U16, 302, "V", 0.001, 0
rawTps2Secondary = scalar, U16, 304, "V", 0.001, 0
knockCount = scalar, U16, 306, "", 1, 0
accelerationZ = scalar, U16, 308, "G", 0.01, 0
accelerationRoll = scalar, U16, 310, "", 0.01, 0
accelerationYaw = scalar, U16, 312, "", 0.01, 0
vvtTargets1 = scalar, U08, 314, "deg", 1, 0
vvtTargets2 = scalar, U08, 315, "deg", 1, 0
vvtTargets3 = scalar, U08, 316, "deg", 1, 0
vvtTargets4 = scalar, U08, 317, "deg", 1, 0
turboSpeed = scalar, U16, 318, "hz", 1, 0
unusedAtTheEnd1 = scalar, U08, 320, "", 1, 0
unusedAtTheEnd2 = scalar, U08, 321, "", 1, 0
unusedAtTheEnd3 = scalar, U08, 322, "", 1, 0
unusedAtTheEnd4 = scalar, U08, 323, "", 1, 0
unusedAtTheEnd5 = scalar, U08, 324, "", 1, 0
unusedAtTheEnd6 = scalar, U08, 325, "", 1, 0
unusedAtTheEnd7 = scalar, U08, 326, "", 1, 0
unusedAtTheEnd8 = scalar, U08, 327, "", 1, 0
unusedAtTheEnd9 = scalar, U08, 328, "", 1, 0
unusedAtTheEnd10 = scalar, U08, 329, "", 1, 0
unusedAtTheEnd11 = scalar, U08, 330, "", 1, 0
unusedAtTheEnd12 = scalar, U08, 331, "", 1, 0
unusedAtTheEnd13 = scalar, U08, 332, "", 1, 0
unusedAtTheEnd14 = scalar, U08, 333, "", 1, 0
unusedAtTheEnd15 = scalar, U08, 334, "", 1, 0
unusedAtTheEnd16 = scalar, U08, 335, "", 1, 0
unusedAtTheEnd17 = scalar, U08, 336, "", 1, 0
unusedAtTheEnd18 = scalar, U08, 337, "", 1, 0
unusedAtTheEnd19 = scalar, U08, 338, "", 1, 0
unusedAtTheEnd20 = scalar, U08, 339, "", 1, 0

View File

@ -0,0 +1,3 @@
At the moment gen_output_channels.sh generates the content here based on output_channels.txt
Things are a bit easier to troubleshoot without complete integration.

View File

@ -6,19 +6,19 @@ bit isInjectionEnabledIndicator;
bit sd_logging_internal
bit isCylinderCleanupActivated;
bit isFuelPumpOn;
bit isFanOn;
bit isFanOn;"radiator fan"
bit isO2HeaterOn;
bit checkEngine;
bit needBurn;
bit sd_msd
bit clutchUpState;
bit clutchDownState;
bit clutchUpState;@@INDICATOR_NAME_CLUTCH_UP@@
bit clutchDownState;@@INDICATOR_NAME_CLUTCH_DOWN@@
bit isFan2On
bit unusedb14;
bit brakePedalState;
bit brakePedalState;@@INDICATOR_NAME_BRAKE_DOWN@@
bit toothLogReady;
bit acSwitchState;
bit acSwitchState;@@INDICATOR_NAME_AC_SWITCH@@
bit isTpsError;
bit isCltError;
bit isMapError;

View File

@ -1,4 +1,4 @@
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) console/binary/output_channels.txt Sun Nov 28 16:27:26 EST 2021
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) console/binary/output_channels.txt Sun Nov 28 17:03:12 EST 2021
// by class com.rusefi.output.CHeaderConsumer
// begin
#pragma once
@ -24,6 +24,7 @@ struct ts_outputs_s {
offset 0 bit 5 */
bool isFuelPumpOn : 1 {};
/**
* "radiator fan"
offset 0 bit 6 */
bool isFanOn : 1 {};
/**
@ -39,9 +40,11 @@ struct ts_outputs_s {
offset 0 bit 10 */
bool sd_msd : 1 {};
/**
* @@INDICATOR_NAME_CLUTCH_UP@@
offset 0 bit 11 */
bool clutchUpState : 1 {};
/**
* @@INDICATOR_NAME_CLUTCH_DOWN@@
offset 0 bit 12 */
bool clutchDownState : 1 {};
/**
@ -51,12 +54,14 @@ struct ts_outputs_s {
offset 0 bit 14 */
bool unusedb14 : 1 {};
/**
* @@INDICATOR_NAME_BRAKE_DOWN@@
offset 0 bit 15 */
bool brakePedalState : 1 {};
/**
offset 0 bit 16 */
bool toothLogReady : 1 {};
/**
* @@INDICATOR_NAME_AC_SWITCH@@
offset 0 bit 17 */
bool acSwitchState : 1 {};
/**
@ -398,6 +403,7 @@ struct ts_outputs_s {
*/
scaled_channel<uint16_t, 100, 1> fuelTankLevel = (uint16_t)0;
/**
* @@GAUGE_NAME_FUEL_CONSUMPTION@@
grams
* offset 100
*/
@ -665,6 +671,7 @@ struct ts_outputs_s {
*/
scaled_channel<uint16_t, 100, 1> wastegatePositionSensor = (uint16_t)0;
/**
* @@GAUGE_NAME_IDLE_POSITION@@
%
* offset 270
*/
@ -797,4 +804,4 @@ struct ts_outputs_s {
};
// end
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) console/binary/output_channels.txt Sun Nov 28 16:27:26 EST 2021
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) console/binary/output_channels.txt Sun Nov 28 17:03:12 EST 2021

View File

@ -42,3 +42,5 @@ java -DSystemOut.name=logs/gen_live_documentation \
-cp ../java_tools/ConfigDefinition.jar \
com.rusefi.ldmp.UsagesReader integration/LiveData.yaml
[ $? -eq 0 ] || { echo "ERROR generating"; exit 1; }
bash gen_output_channels.sh

View File

@ -1276,6 +1276,37 @@ gaugeCategory = DynoView
[Datalog]
; Channel Label Type Format
entry = time, @@GAUGE_NAME_TIME@@, float, "%.3f"
entry = sd_present, "sd_present", int, "%d"
entry = isIgnitionEnabledIndicator, "isIgnitionEnabledIndicator", int, "%d"
entry = isInjectionEnabledIndicator, "isInjectionEnabledIndicator", int, "%d"
entry = sd_logging_internal, "sd_logging_internal", int, "%d"
entry = isCylinderCleanupActivated, "isCylinderCleanupActivated", int, "%d"
entry = isFuelPumpOn, "isFuelPumpOn", int, "%d"
entry = isFanOn, "isFanOn", int, "%d"
entry = isO2HeaterOn, "isO2HeaterOn", int, "%d"
entry = checkEngine, "checkEngine", int, "%d"
entry = needBurn, "needBurn", int, "%d"
entry = sd_msd, "sd_msd", int, "%d"
entry = clutchUpState, "clutch: up", int, "%d"
entry = clutchDownState, "clutch: down", int, "%d"
entry = isFan2On, "isFan2On", int, "%d"
entry = brakePedalState, "brakePedalState", int, "%d"
entry = toothLogReady, "toothLogReady", int, "%d"
entry = acSwitchState, "acSwitchState", int, "%d"
entry = isTpsError, "isTpsError", int, "%d"
entry = isCltError, "isCltError", int, "%d"
entry = isMapError, "isMapError", int, "%d"
entry = isIatError, "isIatError", int, "%d"
entry = acState, "acState", int, "%d"
entry = isTriggerError, "isTriggerError", int, "%d"
entry = hasCriticalError, "hasCriticalError", int, "%d"
entry = isWarnNow, "isWarnNow", int, "%d"
entry = isPedalError, "isPedalError", int, "%d"
entry = isKnockChipOk, "isKnockChipOk", int, "%d"
entry = launchTriggered, "launchTriggered", int, "%d"
entry = isTps2Error, "isTps2Error", int, "%d"
entry = isIdleClosedLoop, "isIdleClosedLoop", int, "%d"
entry = isIdleCoasting, "isIdleCoasting", int, "%d"
entry = RPMValue, "RPM", int, "%d"
entry = rpmAcceleration, "dRPM", int, "%d"
entry = speedToRpmRatio, "s2rpm", float, "%.3f"
@ -1425,12 +1456,6 @@ entry = vvtTargets3, "vvtTargets3", int, "%d"
entry = vvtTargets4, "vvtTargets4", int, "%d"
entry = turboSpeed, "Turbocharger Speed", int, "%d"
entry = clutchUpState, @@INDICATOR_NAME_CLUTCH_UP@@,int,"%d"
entry = clutchDownState, @@INDICATOR_NAME_CLUTCH_DOWN@@,int,"%d"
entry = brakePedalState, @@INDICATOR_NAME_BRAKE_DOWN@@,int,"%d"
entry = acSwitchState, @@INDICATOR_NAME_AC_SWITCH@@,int,"%d"
entry = isFanOn, "radiator fan",int,"%d"
[Menu]
menuDialog = main

Binary file not shown.

View File

@ -286,8 +286,8 @@ public class ConfigDefinition {
List<ConfigurationConsumer> destinations = new ArrayList<>();
if (TS_OUTPUTS_DESTINATION != null) {
destinations.add(new OutputsSectionConsumer(TS_OUTPUTS_DESTINATION + File.separator + "output_channels.ini", state));
destinations.add(new DataLogConsumer(TS_OUTPUTS_DESTINATION + File.separator + "data_logs.ini", state));
destinations.add(new OutputsSectionConsumer(TS_OUTPUTS_DESTINATION + File.separator + "generated/output_channels.ini", state));
destinations.add(new DataLogConsumer(TS_OUTPUTS_DESTINATION + File.separator + "generated/data_logs.ini", state));
}
if (tsInputFileFolder != null && needToUpdateTsFiles) {
CharArrayWriter tsWriter = new CharArrayWriter();

View File

@ -57,9 +57,6 @@ public class DataLogConsumer implements ConfigurationConsumer {
private String handle(ConfigField configField) {
if (configField.getName().contains("unused"))
return "";
if (configField.isBit()) {
return "";
}
if (configField.isArray()) {

View File

@ -67,6 +67,7 @@ public class OutputsTest {
@Test
public void generateDataLog() throws IOException {
String test = "struct total\n" +
"bit issue_294_31,\"si_example\",\"nada_example\"\n" +
"uint8_t[2 iterate] autoscale knock;;\"\",1, 0, 0, 0, 0\n" +
"\tuint16_t autoscale baseFuel;@@GAUGE_NAME_FUEL_BASE@@\\nThis is the raw value we take from the fuel map or base fuel algorithm, before the corrections;\"mg\",{1/@@PACK_MULT_PERCENT@@}, 0, 0, 0, 0\n" +
"float afr_type;PID dTime;\"ms\", 1, 0, 0, 3000, 0\n" +
@ -85,13 +86,16 @@ public class OutputsTest {
DataLogConsumer dataLogConsumer = new DataLogConsumer(null, state);
state.readBufferedReader(reader, Collections.singletonList(dataLogConsumer));
assertEquals(
"entry = knock1, \"knock1\", int, \"%d\"\n" +
"entry = issue_294_31, \"issue_294_31\", int, \"%d\"\n" +
"entry = knock1, \"knock1\", int, \"%d\"\n" +
"entry = knock2, \"knock2\", int, \"%d\"\n" +
"entry = baseFuel, \"hello\", float, \"%.3f\"\n" +
"entry = afr_type, \"PID dTime\", float, \"%.3f\"\n" +
"entry = speedToRpmRatio, \"s2rpm\", float, \"%.3f\"\n" +
"entry = afr_typet, \"afr_typet\", int, \"%d\"\n" +
"entry = vehicleSpeedKph, \"vehicleSpeedKph\", int, \"%d\"\n", new String(dataLogConsumer.getTsWriter().toCharArray()));
"entry = baseFuel, \"hello\", float, \"%.3f\"\n" +
"entry = afr_type, \"PID dTime\", float, \"%.3f\"\n" +
"entry = speedToRpmRatio, \"s2rpm\", float, \"%.3f\"\n" +
"entry = afr_typet, \"afr_typet\", int, \"%d\"\n" +
"entry = vehicleSpeedKph, \"vehicleSpeedKph\", int, \"%d\"\n" +
"entry = isForcedInduction, \"Does the vehicle have a turbo or supercharger?\", int, \"%d\"\n" +
"entry = enableFan1WithAc, \"+Turn on this fan when AC is on.\", int, \"%d\"\n", new String(dataLogConsumer.getTsWriter().toCharArray()));
}
}