altoslib: Write IMU headers to CSV file when present
authorKeith Packard <keithp@keithp.com>
Wed, 31 Mar 2021 16:23:14 +0000 (09:23 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 31 Mar 2021 16:23:14 +0000 (09:23 -0700)
The IMU data were being written, but somehow the header was not
included.

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

index 765eb44598f337b6fd9e58da4413c5346a021ebf..16c57ec187104e5f8449f3ba030d496f734bd894 100644 (file)
@@ -408,6 +408,10 @@ public class AltosCSV implements AltosWriter {
                        out.printf(",");
                        write_3d_accel_header();
                }
+               if (has_imu) {
+                       out.printf(",");
+                       write_imu_header();
+               }
                if (has_igniter) {
                        out.printf(",");
                        write_igniter_header();