+
+ // Telemetry format menu
+ telemetries = new JComboBox();
+ telemetries.addItem("Legacy TeleMetrum");
+ telemetries.addItem("Split Telemetry");
+ int telemetry = 1;
+ telemetry = AltosPreferences.telemetry(serial);
+ if (telemetry > Altos.ao_telemetry_split)
+ telemetry = Altos.ao_telemetry_split;
+ telemetries.setSelectedIndex(telemetry - 1);
+ telemetries.setMaximumRowCount(2);
+ telemetries.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ int telemetry = telemetries.getSelectedIndex() + 1;
+ reader.set_telemetry(telemetry);
+ }
+ });
+ c.gridx = 1;
+ c.gridy = 0;
+ c.fill = GridBagConstraints.NONE;
+ c.anchor = GridBagConstraints.WEST;
+ bag.add (telemetries, c);
+ c.insets = new Insets(0, 0, 0, 0);