summaryrefslogtreecommitdiff
path: root/altosui/Altos.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-06-01 19:51:25 -0700
committerKeith Packard <keithp@keithp.com>2012-06-01 19:51:25 -0700
commit1824761f5b98e92485e2dd347b1c4d043ec207e2 (patch)
tree9c84ad0d7b4007ce668b901091695fc4ddbebd5e /altosui/Altos.java
parentab85337aa942cb73a08bd3b783771179773b9a67 (diff)
altosui: Quick hacks to download megametrum data and convert to CSV
Very little useful data crunching is done, but at least we can save and convert files Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/Altos.java')
-rw-r--r--altosui/Altos.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/altosui/Altos.java b/altosui/Altos.java
index aa2fd77a..1d393dbe 100644
--- a/altosui/Altos.java
+++ b/altosui/Altos.java
@@ -52,6 +52,17 @@ public class Altos {
static final int AO_LOG_PRODUCT = 2001;
static final int AO_LOG_SERIAL_NUMBER = 2002;
static final int AO_LOG_LOG_FORMAT = 2003;
+
+ /* Added for header fields in megametrum files */
+ static final int AO_LOG_BARO_RESERVED = 3000;
+ static final int AO_LOG_BARO_SENS = 3001;
+ static final int AO_LOG_BARO_OFF = 3002;
+ static final int AO_LOG_BARO_TCS = 3004;
+ static final int AO_LOG_BARO_TCO = 3005;
+ static final int AO_LOG_BARO_TREF = 3006;
+ static final int AO_LOG_BARO_TEMPSENS = 3007;
+ static final int AO_LOG_BARO_CRC = 3008;
+
static final int AO_LOG_SOFTWARE_VERSION = 9999;
/* Added to flag invalid records */
@@ -220,6 +231,7 @@ public class Altos {
static final int AO_LOG_FORMAT_TINY = 2;
static final int AO_LOG_FORMAT_TELEMETRY = 3;
static final int AO_LOG_FORMAT_TELESCIENCE = 4;
+ static final int AO_LOG_FORMAT_MEGAMETRUM = 5;
static final int AO_LOG_FORMAT_NONE = 127;
static boolean isspace(int c) {