telegps: Add graph display
[fw/altos] / telegps / TeleGPS.java
index bef0bbc69d5ab04c36c3653a943037a75090cd3e..5a707547d480e131ee16332d1de2bd731cd23def 100644 (file)
@@ -246,6 +246,16 @@ public class TeleGPS
        }
 
        void graph() {
        }
 
        void graph() {
+               AltosDataChooser chooser;
+               chooser = new AltosDataChooser(this);
+               AltosStateIterable states = chooser.runDialog();
+               if (states == null)
+                       return;
+               try {
+                       new TeleGPSGraphUI(states, chooser.file());
+               } catch (InterruptedException ie) {
+               } catch (IOException ie) {
+               }
        }
 
        void flash() {
        }
 
        void flash() {