altoslib: Move computed state from AltosRecord to AltosState
[fw/altos] / altoslib / AltosTelemetryRecordRaw.java
index dc1b8947d4ff665f074967293e04a7519dc41336..c21da6fc1cbe26f87eb480f0ecf6fce9477cc6f0 100644 (file)
 
 package org.altusmetrum.AltosLib;
 
-import java.lang.*;
-import java.text.*;
-import java.util.HashMap;
-
 public class AltosTelemetryRecordRaw extends AltosTelemetryRecord {
        int[]   bytes;
        int     serial;
@@ -69,7 +65,7 @@ public class AltosTelemetryRecordRaw extends AltosTelemetryRecord {
                if (previous != null)
                        next = previous.clone();
                else
-                       next = new AltosRecord();
+                       next = new AltosRecordNone();
                next.serial = serial;
                next.tick = tick;
                return next;