altosui: Add eeprom data capture function. No UI yet.
[fw/altos] / ao-tools / altosui / AltosUI.java
index 511c37093539fee08e7840862bc15e03088a807d..92c3d0a3f43ccbbb3c3a401b2739adb8bd0713d3 100644 (file)
@@ -474,7 +474,6 @@ public class AltosUI extends JFrame {
                void close() {
                        serial.close();
                        serial.remove_monitor(telem);
-                       System.out.println("DisplayThread done");
                }
 
                public DeviceThread(AltosSerial s) {
@@ -614,6 +613,7 @@ public class AltosUI extends JFrame {
         * a TeleDongle over the packet link
         */
        private void SaveFlightData() {
+               AltosEeprom.SaveFlightData(AltosUI.this);
        }
 
        /* Create the AltosUI menus
@@ -721,6 +721,13 @@ public class AltosUI extends JFrame {
                                        }
                                });
                        menu.add(radioitem);
+                       item = new JMenuItem("Test Voice",KeyEvent.VK_T);
+                       item.addActionListener(new ActionListener() {
+                                       public void actionPerformed(ActionEvent e) {
+                                               voice.speak("That's one small step for man; one giant leap for mankind.");
+                                       }
+                               });
+                       menu.add(item);
                }
 
                // Channel menu