summaryrefslogtreecommitdiff
path: root/ao-tools/altosui/AltosUI.java
Commit message (Collapse)AuthorAge
* Move altosui to the top level, placing libaltos inside it.Keith Packard2010-11-24
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* add a rudimentary --help for command line useBdale Garbee2010-11-22
|
* AltosSiteMap: major refactoringAnthony Towns2010-11-21
|
* altosui: switch channel selector to combo box. Shorten displayed device namesKeith Packard2010-11-19
| | | | | | | | | A combo box displays the current value, which is quite nice to have. Add a 'toShortString' for AltosDevice so that the window frames and error messages don't have extra spaces generated by the altos_device toString method. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Use timeouts to recover from broken packet links.Keith Packard2010-11-19
| | | | | | | | | | | This puts timeouts every place the system reads from the packet link and aborts the in-progress operation if it takes more than a second to get a response. Also mixed in here are persistent igniter status displays for the ejection testing UI. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Unify datafile selection to AltosDataChooserKeith Packard2010-11-19
| | | | | | | Instead of having several separate intefaces, use a single dialog for selecting data files for graph/export/replay. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add igniter ground testing codeKeith Packard2010-11-19
| | | | | | Not yet hooked up, but the UI is finished. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: eliminate menu bar, moving elements to buttons.Keith Packard2010-11-15
| | | | | | | This adds a new 'configure AltosUI' dialog to set the log directory and voice preferences. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: With --replay option, exit when replay window is closedKeith Packard2010-11-14
| | | | | | Otherwise, the application hangs around forever. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Open serial device at 'new' time. Prohibit duplicate opens.Keith Packard2010-11-13
| | | | | | | | | | | With the per-serial UI, there's never a reason to create a serial device without opening it right away. This eliminates the bug caused by not opening the serial device for telemetry reception. Serial devices can now be opened only once; this eliminates errors when trying to reflash or configure devices while receiving telemetry. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Eliminate unncessary import altosui linesKeith Packard2010-11-13
| | | | | | | Java appears to automatically import every module from the current package. Signed-off-by: Keith Packard <keithp@keithp.com>
* add --replay command line argumentAnthony Towns2010-11-11
|
* altosui: Create buttons for main actionsKeith Packard2010-11-08
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Split out flight monitoring to separate windowKeith Packard2010-11-08
| | | | | | | | | This creates a per-TD (or replay) window to contain the flight monitoring information, allowing multiple monitors. This also adds per-TD preferences for monitoring channel. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Remove ability to graph data in .csv filesKeith Packard2010-10-06
| | | | | | | There's no reason to support these files when the raw .eeprom or .telem files which generate them should be used instead. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add KML file export.Keith Packard2010-09-28
| | | | | | | Command line has switches now, --kml and --csv Export save dialog has combo box to select kml or csv result. Signed-off-by: Keith Packard <keithp@keithp.com>
* Merge branch 'master' of git://git.gag.com/fw/altosAnthony Towns2010-09-28
|\
| * altosui: Create iterables for log file scanning. Split out display threadsKeith Packard2010-09-27
| | | | | | | | | | | | | | | | | | Convert from log file reading paradigm to using iterators which is more idiomatic for java. Split more code out of AltosUI.java, including the display update threads for telemetry monitoring and logfile replay.x Signed-off-by: Keith Packard <keithp@keithp.com>
* | Merge branch 'master' of git://git.gag.com/fw/altosAnthony Towns2010-09-24
|\|
| * altosui: remove unused ReplayThread wrapper classesKeith Packard2010-09-20
| | | | | | | | | | | | | | These aren't used now that the replay opener dialog knows how to build a reader from a filename. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altosui: Factor some UI elements into separate classesKeith Packard2010-09-20
| | | | | | | | | | | | Clean up AltosUI by moving the two main tables to separate class files. Signed-off-by: Keith Packard <keithp@keithp.com>
* | Add graphing.Anthony Towns2010-09-15
|/
* altosui: conflating USB product and vendor IDs is a bad ideaKeith Packard2010-09-09
| | | | | | | | | | | We've now got a USB vendor ID called 'altusmetrum' for generic altusmetrum devices (old USB ID 0x000A) while the general vendor name for all devices is 'altusmetrum' as well. This patch splits vendors and products into separate name spaces, products are prefixed with product_ and vendor with (oddly) vendor_. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Display error dialog when AltOS JNI library can't be loadedKeith Packard2010-09-09
| | | | | | | Having an error dialog appear at application startup seems better than simply failing to present the device dialog later on. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Prevent voice altitude data from queueing upKeith Packard2010-09-05
| | | | | | | | | | | When flight status changes rapidly, the queue of voice data can get quite long. This change does two things -- first, it remembers when the altitude reporting happens due to flight events and delays the periodic reporting until a suitable time after that, second it ensures that the voice data has all been delivered before generating a new altitude report. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Start idle thread after the rocket leaves the padKeith Packard2010-09-05
| | | | | | | | This makes the first altitude report time consistently 10 seconds after launch, instead of some random time depending on when the rocket launched relative to the time the device connection was made. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: When replay thread is interrupted, don't make final reportKeith Packard2010-09-05
| | | | | | | | Normally, the replay process makes one final report after the file has been parsed. However, if the reading process is interrupted to display something else, this report is just annoying, so don't make it. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add elevation and range data to main displayKeith Packard2010-09-05
| | | | | | Reported by voice, it's useful to see these on the display as well. Signed-off-by: Keith Packard <keithp@keithp.com>
* Use autotools for altosui and libaltosKeith Packard2010-09-04
| | | | | | | This switches from hand-written Makefiles to automake with libtool for these parts of the system. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add icons to application and Windows menus.Keith Packard2010-09-04
| | | | | | | Use the altus-metrum icon for an application icon and a windows start menu/desktop icon. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Catch I/O errors on telemetry device, report to userKeith Packard2010-09-03
| | | | | | | This catches the USB device being unplugged and makes sure the user sees an error dialog in this case. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Allow 'connect to device' when already connectedKeith Packard2010-09-03
| | | | | | | | | | | | | Opening another serial device involves shutting down the display thread (to reset its state) and spawning another one. Shutting down the display thread normally closes the serial device as a part of the process, and if this isn't done before the new serial device is opened, then the new serial device ends up getting closed too. Interrupting the display thread and waiting for it to stop before opening the new serial device solves the problem. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Report telemetry CRC errors in UIKeith Packard2010-09-03
| | | | | | | Telemetry CRC errors can signal problems with TeleMetrum or TeleDongle units, so report them in the UI. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: add elevation and range informationKeith Packard2010-08-27
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: command line args are converted to csv formatKeith Packard2010-08-26
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add ability to create CSV file from telem or eeprom filesKeith Packard2010-08-24
| | | | | | | This creates a comma separated value file to export data for external programs. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: refactor logfile chooser dialog to share more codeKeith Packard2010-08-23
| | | | | | Move file opening logic into logfile chooser as it can be shared that way. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Separate out log file choosing dialog to share with CSV generatorKeith Packard2010-08-23
| | | | | | | This dialog will be shared with the CSV file generating code, so split it out instead of duplicating it. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add debug dongle API, split flash UI outKeith Packard2010-08-23
| | | | | | | | Create an API to talk through the debug port on another AltOS device. Split the flash UI out from the flash implementation so that a command line flash utility can be written. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add .ihx file reading code and stub out flashing UIKeith Packard2010-08-23
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add TeleMetrum configurationKeith Packard2010-08-22
| | | | | | | | This presents a dialog with all of the user-settable options in the TeleMetrum set for editing. Combo boxes are used for everything except the callsign. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Make teledongle callsign configurableKeith Packard2010-08-21
| | | | | | | Teledongle uses the callsign in packet mode; this provides a way to set that. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Select devices by USB vendor/product ID.Keith Packard2010-08-17
| | | | | | | | Because Win7 doesn't expose the product name, we're swtiching to using the USB idProduct/idVendor values. This patch adds support for selecting devices by those new IDs. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Start adding code to write csv files from eeprom/telem filesKeith Packard2010-08-07
| | | | | | | | This is a start to code which can write out a csv file full of flight data from either an eeprom or telem input file. It's not hooked up, but the restructuring necessary is finished and the output is started. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Compute flight state from eeprom dataKeith Packard2010-08-05
| | | | | | This lets eeprom files be used to replay flights. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Split flight record out of telemetry classKeith Packard2010-08-05
| | | | | | | This will permit either telemetry or eeprom data to be used to construct the sequence of flight events for reply or data generation. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Split status and info panels into separate filesKeith Packard2010-08-01
| | | | | | This moves some code out of AltosUI.java into separate files Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Clear displayed data rows as needed.Keith Packard2010-07-31
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Merge gps date and time classes into gps classKeith Packard2010-07-31
| | | | | | No reason to split out the date and time information from the other gps info. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: rename AltosEeprom -> AltosEepromDownload, split out Altos constantsKeith Packard2010-07-31
| | | | | | | Renames the eeprom downloading code and adds a new file to share the flight data constants across the various UI modules. Signed-off-by: Keith Packard <keithp@keithp.com>