altoslib: Compute 'vertical acceleration' for eeprom files
[fw/altos] / altosuilib / AltosGraphNew.java
index 08a3373..2505a02 100644 (file)
@@ -47,6 +47,7 @@ public class AltosGraphNew extends AltosUIGraphNew {
        static final private Color kalman_speed_color = new Color(0,255,0);
        static final private Color thrust_color = new Color(31,194,31);
        static final private Color accel_color = new Color(31,31,194);
+       static final private Color vert_accel_color = new Color(64,164,164);
        static final private Color kalman_accel_color = new Color(0,0,255);
        static final private Color voltage_color = new Color(194, 194, 31);
        static final private Color battery_voltage_color = new Color(194, 194, 31);
@@ -133,6 +134,11 @@ public class AltosGraphNew extends AltosUIGraphNew {
                                            true,
                                            accel_axis);
 
+               flight_series.register_axis(AltosUIFlightSeries.vert_accel_name,
+                                           vert_accel_color,
+                                           true,
+                                           accel_axis);
+
                flight_series.register_axis(AltosUIFlightSeries.kalman_accel_name,
                                            kalman_accel_color,
                                            false,