From 19de1e8040e749dcc2888ac3d3c209450d7265d7 Mon Sep 17 00:00:00 2001 From: cTn Date: Fri, 20 Jun 2014 11:55:14 +0200 Subject: [PATCH] add MSP_ANALOG support to logger --- tabs/logging.html | 1 + tabs/logging.js | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/tabs/logging.html b/tabs/logging.html index 4f2b9ac3..2fa90fc7 100644 --- a/tabs/logging.html +++ b/tabs/logging.html @@ -7,6 +7,7 @@
3 columns (x, y, z)
one column
7 columns
+
4 columns
8 columns by default
8 columns by default
4 columns
diff --git a/tabs/logging.js b/tabs/logging.js index 5da35654..ced6a921 100644 --- a/tabs/logging.js +++ b/tabs/logging.js @@ -167,6 +167,12 @@ function tab_initialize_logging() { sample += ',' + GPS_DATA.speed; sample += ',' + GPS_DATA.ground_course; break; + case 'MSP_ANALOG': + sample += ',' + ANALOG.voltage; + sample += ',' + ANALOG.amperage; + sample += ',' + ANALOG.mAhdrawn; + sample += ',' + ANALOG.rssi; + break; case 'MSP_RC': for (var chan = 0; chan < RC.active_channels; chan++) { sample += ',' + RC.channels[chan]; @@ -219,6 +225,12 @@ function tab_initialize_logging() { head += ',' + 'gpsSpeed'; head += ',' + 'gpsGroundCourse'; break; + case 'MSP_ANALOG': + head += ',' + 'voltage'; + head += ',' + 'amperage'; + head += ',' + 'mAhdrawn'; + head += ',' + 'rssi'; + break; case 'MSP_RC': for (var chan = 0; chan < RC.active_channels; chan++) { head += ',' + 'RC' + chan;