altoslib: MegaMetrum data telem packets have sensor data, not flight no
authorKeith Packard <keithp@keithp.com>
Sun, 18 Nov 2012 18:08:38 +0000 (10:08 -0800)
committerKeith Packard <keithp@keithp.com>
Sun, 18 Nov 2012 18:08:38 +0000 (10:08 -0800)
Setting the seen_flight bit without a flight number leads to bogus
file names

Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosTelemetryRecordMegaData.java

index 16a7b80cc0f037a12e1cfc62c3f18c2a8982820a..98b9f4c5e435747299824d71f2572719b9822a77 100644 (file)
@@ -87,7 +87,7 @@ public class AltosTelemetryRecordMegaData extends AltosTelemetryRecordRaw {
                next.kalman_speed = speed / 16.0;
                next.kalman_height = height;
 
-               next.seen |= AltosRecord.seen_flight | AltosRecord.seen_temp_volt;
+               next.seen |= AltosRecord.seen_sensor | AltosRecord.seen_temp_volt;
 
                return next;
        }