Merge pull request #1627 from mck1117/logging-fields

Add datalog fields
This commit is contained in:
rusefillc 2020-07-21 09:17:30 -04:00 committed by GitHub
commit b08b9f9292
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -43,6 +43,9 @@ static const LogField fields[] = {
{tsOutputChannels.etb1DutyCycle, "ETB Duty", "%", 1},
{tsOutputChannels.etb1Error, "ETB Error", "%", 3},
{tsOutputChannels.fuelTankLevel, "fuel level", "%", 0},
{tsOutputChannels.fuelingLoad, GAUGE_NAME_FUEL_LOAD, "%", 1},
{tsOutputChannels.ignitionLoad, GAUGE_NAME_IGNITION_LOAD, "%", 1},
{tsOutputChannels.massAirFlow, GAUGE_NAME_AIR_FLOW, "kg/h", 1},
};
void writeHeader(char* buffer) {

View File

@ -1127,6 +1127,8 @@ gaugeCategory = Sensors - Raw
entry = AFRValue, @@GAUGE_NAME_AFR@@, float, "%.2f"
entry = VBatt, @@GAUGE_NAME_VBAT@@, float, "%.2f"
entry = engineLoad, @@GAUGE_NAME_ENGINE_LOAD@@, float, "%.1f"
entry = fuelingLoad, @@GAUGE_NAME_FUEL_LOAD@@, float, "%.1f"
entry = ignitionLoad, @@GAUGE_NAME_IGNITION_LOAD@@, float, "%.1f"
entry = ignitionAdvance, @@GAUGE_NAME_TIMING_ADVANCE@@, float, "%.2f"
entry = knockLevel, @@GAUGE_NAME_KNOCK_LEVEL@@, float, "%.2f"
entry = knockCount, @@GAUGE_NAME_KNOCK_COUNTER@@, int, "%d"