altosui: Fixed width format for new IMU values.
authorKeith Packard <keithp@keithp.com>
Sun, 3 Jun 2012 02:06:08 +0000 (19:06 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 3 Jun 2012 02:06:08 +0000 (19:06 -0700)
Signed-off-by: Keith Packard <keithp@keithp.com>
altosui/AltosCSV.java

index b88bedba2f512e60532acafaa7cc7d0248135e43..db398a6157519589f32d062d73e82a4308281802 100644 (file)
@@ -152,7 +152,7 @@ public class AltosCSV implements AltosWriter {
                        imu = new AltosIMU();
                if (mag == null)
                        mag = new AltosMag();
-               out.printf("%d,%d,%d,%d,%d,%d,%d,%d,%d",
+               out.printf("%6d,%6d,%6d,%6d,%6d,%6d,%6d,%6d,%6d",
                           imu.accel_x, imu.accel_y, imu.accel_z,
                           imu.gyro_x, imu.gyro_y, imu.gyro_z,
                           mag.x, mag.y, mag.z);