From c349dc3ff40420ea3f7a36018d4a3b0850c46dfe Mon Sep 17 00:00:00 2001 From: Stanley Huang Date: Sat, 11 Jan 2014 20:50:02 +1100 Subject: Update OBD logger --- obdlogger/datalogger.h | 8 ++++---- obdlogger/obdlogger.ino | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/obdlogger/datalogger.h b/obdlogger/datalogger.h index 43cae04..2c4ebfe 100644 --- a/obdlogger/datalogger.h +++ b/obdlogger/datalogger.h @@ -248,7 +248,7 @@ public: dataSize += sdfile.print(pid, HEX); dataSize += sdfile.write(','); dataSize += sdfile.print(value1, 6); - dataSize += sdfile.write(' '); + dataSize += sdfile.write(','); dataSize += sdfile.print(value2, 6); dataSize += sdfile.write('\n'); m_lastDataTime = dataTime; @@ -276,7 +276,7 @@ public: dataSize += sdfile.print(pid, HEX); dataSize += sdfile.write(','); dataSize += sdfile.print(value1); - dataSize += sdfile.write(' '); + dataSize += sdfile.write(','); dataSize += sdfile.print(value2); dataSize += sdfile.write('\n'); m_lastDataTime = dataTime; @@ -304,9 +304,9 @@ public: dataSize += sdfile.print(pid, HEX); dataSize += sdfile.write(','); dataSize += sdfile.print(value1); - dataSize += sdfile.write(' '); + dataSize += sdfile.write(','); dataSize += sdfile.print(value2); - dataSize += sdfile.write(' '); + dataSize += sdfile.write(','); dataSize += sdfile.print(value3); dataSize += sdfile.write('\n'); m_lastDataTime = dataTime; diff --git a/obdlogger/obdlogger.ino b/obdlogger/obdlogger.ino index ef91a2d..ab57f16 100644 --- a/obdlogger/obdlogger.ino +++ b/obdlogger/obdlogger.ino @@ -599,8 +599,8 @@ private: void showECUCap() { char buffer[24]; - byte pidlist[] = {PID_RPM, PID_SPEED, PID_THROTTLE, PID_ENGINE_LOAD, PID_ABS_ENGINE_LOAD, PID_MAF_FLOW, PID_INTAKE_MAP, PID_FUEL_LEVEL, PID_FUEL_PRESSURE, PID_COOLANT_TEMP, PID_INTAKE_TEMP, PID_AMBIENT_TEMP, PID_TIMING_ADVANCE, PID_BAROMETRIC}; - const char* namelist[] = {"RPM", "SPEED", "THROTTLE", "ENG.LOAD1", "ENG.LOAD2", "MAF", "MAP", "FUEL LV.", "FUEL PRE.", "COOLANT", "INTAKE","AMBIENT", "IGNITION", "BARO"}; + byte pidlist[] = {PID_RPM, PID_SPEED, PID_THROTTLE, PID_ENGINE_LOAD, PID_CONTROL_MODULE_VOLTAGE, PID_MAF_FLOW, PID_INTAKE_MAP, PID_FUEL_LEVEL, PID_FUEL_PRESSURE, PID_COOLANT_TEMP, PID_INTAKE_TEMP, PID_AMBIENT_TEMP, PID_TIMING_ADVANCE, PID_BAROMETRIC}; + const char* namelist[] = {"RPM", "SPEED", "THROTTLE", "ENG.LOAD", "CTRL VOLT", "MAF", "MAP", "FUEL LV.", "FUEL PRE.", "COOLANT", "INTAKE","AMBIENT", "IGNITION", "BARO"}; byte i = 0; lcd.clear(); lcd.setFont(FONT_SIZE_SMALL); -- cgit v1.2.3