summaryrefslogtreecommitdiff
path: root/megalogger/datalogger.h
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2014-09-07 00:19:51 +1000
committerStanley Huang <stanleyhuangyc@gmail.com>2014-09-07 00:19:51 +1000
commit332f3d85d1204f864982ea7a192a8830c1bac012 (patch)
treee853c6423884de40d4e4cb7fdc176b0e92b96655 /megalogger/datalogger.h
parentdc68f92f175fa8e0bf761baed4b49dc1e2aa150b (diff)
download2021-arduino-obd-332f3d85d1204f864982ea7a192a8830c1bac012.tar.gz
2021-arduino-obd-332f3d85d1204f864982ea7a192a8830c1bac012.tar.bz2
2021-arduino-obd-332f3d85d1204f864982ea7a192a8830c1bac012.zip
add logging for battery voltage
Diffstat (limited to 'megalogger/datalogger.h')
-rw-r--r--megalogger/datalogger.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/megalogger/datalogger.h b/megalogger/datalogger.h
index 920af4c..95f688a 100644
--- a/megalogger/datalogger.h
+++ b/megalogger/datalogger.h
@@ -30,6 +30,9 @@ typedef struct {
#define PID_ACC 0x20
#define PID_GYRO 0x21
+#define PID_COMPASS 0x22
+#define PID_TEMP 0x23
+#define PID_VOLTAGE 0x24
#define FILE_NAME_FORMAT "/DAT%05d.CSV"
@@ -151,7 +154,7 @@ public:
{
uint16_t fileIndex;
char filename[24] = "/FRMATICS";
-
+
dataSize = 0;
if (SD.exists(filename)) {
for (fileIndex = 1; fileIndex; fileIndex++) {