if (imgURL != null)
setIconImage(new ImageIcon(imgURL).getImage());
- AltosPreferences.init(this);
+ AltosPreferences.set_component(this);
pane = getContentPane();
gridbag = new GridBagLayout();
}
});
+
+ b = addButton(0, 2, "Scan Channels");
+ b.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ ScanChannels();
+ }
+ });
+
setTitle("AltOS");
pane.doLayout();
}
void FlashImage() {
- new AltosFlashUI(AltosUI.this);
+ AltosFlashUI.show(AltosUI.this);
}
void FireIgniter() {
new AltosIgniteUI(AltosUI.this);
}
+ void ScanChannels() {
+ new AltosScanUI(AltosUI.this);
+ }
+
/*
* Replay a flight from telemetry data
*/
AltosUI altosui = new AltosUI();
altosui.setVisible(true);
- AltosDevice[] devices = AltosUSBDevice.list(Altos.product_basestation);
- for (int i = 0; i < devices.length; i++)
- altosui.telemetry_window(devices[i]);
+ java.util.List<AltosDevice> devices = AltosUSBDevice.list(Altos.product_basestation);
+ for (AltosDevice device : devices)
+ altosui.telemetry_window(device);
}
}
}