altoslib: Missing headers for mag sensor in CSV output
authorKeith Packard <keithp@keithp.com>
Mon, 10 Nov 2014 22:41:17 +0000 (14:41 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 10 Nov 2014 22:41:17 +0000 (14:41 -0800)
Kelsey Black <nmonic@gmail.com> reported that the TeleMega CSV output
was missing the header labels for the mag sensor data.

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

index 2357dbc77707d6e4bdfb302a40dfdb9f24bc5ddc..2ad50097622e01de54be751b47e6f59cff9a6d73 100644 (file)
@@ -158,7 +158,7 @@ public class AltosCSV implements AltosWriter {
        }
 
        void write_advanced_header() {
-               out.printf("accel_x,accel_y,accel_z,gyro_x,gyro_y,gyro_z");
+               out.printf("accel_x,accel_y,accel_z,gyro_x,gyro_y,gyro_z,mag_x,mag_y,mag_z");
        }
 
        void write_advanced(AltosState state) {