altoslib: comment out unused methods
[fw/altos] / altoslib / AltosTelemetryRecordLegacy.java
index 85071d9c42116e758e7179e8283e857466366ca9..211760691e23668b3b52a0eda839861e10cbb61d 100644 (file)
@@ -17,9 +17,7 @@
 
 package org.altusmetrum.AltosLib;
 
-import java.lang.*;
 import java.text.*;
-import java.util.HashMap;
 
 /*
  * Telemetry data contents
@@ -232,7 +230,7 @@ public class AltosTelemetryRecordLegacy extends AltosTelemetryRecord {
        final static String AO_TELEM_SAT_SVID   = "s_v";
        final static String AO_TELEM_SAT_C_N_0  = "s_c";
 
-       AltosRecord     record;
+       AltosRecordTM   record;
 
        private void parse_v4(String[] words, int i) throws ParseException {
                AltosTelemetryMap       map = new AltosTelemetryMap(words, i);
@@ -366,7 +364,7 @@ public class AltosTelemetryRecordLegacy extends AltosTelemetryRecord {
                String[] words = line.split("\\s+");
                int     i = 0;
 
-               record = new AltosRecord();
+               record = new AltosRecordTM();
 
                if (words[i].equals("CRC") && words[i+1].equals("INVALID")) {
                        i += 2;
@@ -388,15 +386,17 @@ public class AltosTelemetryRecordLegacy extends AltosTelemetryRecord {
        }
 
        /*
-        * Given a hex dump of a legacy telemetry line, construct an AltosRecord from that
+        * Given a hex dump of a legacy telemetry line, construct an AltosRecordTM from that
         */
 
        int[]   bytes;
        int     adjust;
 
+       /*
        private int int8(int i) {
                return AltosLib.int8(bytes, i + 1 + adjust);
        }
+       */
        private int uint8(int i) {
                return AltosLib.uint8(bytes, i + 1 + adjust);
        }
@@ -422,7 +422,7 @@ public class AltosTelemetryRecordLegacy extends AltosTelemetryRecord {
        static final int AO_GPS_COURSE_VALID    = (1 << 7);
 
        public AltosTelemetryRecordLegacy(int[] in_bytes, int in_rssi, int in_status) {
-               record = new AltosRecord();
+               record = new AltosRecordTM();
 
                bytes = in_bytes;
                record.version = 4;
@@ -478,7 +478,7 @@ public class AltosTelemetryRecordLegacy extends AltosTelemetryRecord {
                        record.gps = new AltosGPS();
                        record.new_gps = true;
 
-                       record.seen |= record.seen_gps_time | record.seen_gps_lat | record.seen_gps_lon;
+                       record.seen |= AltosRecord.seen_gps_time | AltosRecord.seen_gps_lat | AltosRecord.seen_gps_lon;
                        record.gps.nsat = (gps_flags & AO_GPS_NUM_SAT_MASK);
                        record.gps.locked = (gps_flags & AO_GPS_VALID) != 0;
                        record.gps.connected = true;