summaryrefslogtreecommitdiff
path: root/ao-tools/altosui/AltosUI.java
Commit message (Collapse)AuthorAge
* 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>
* Reset GPS ready status when GPS comes unlocked on the padKeith Packard2010-07-28
| | | | | | | If GPS becomes unlocked, then report that in the UI and via voice. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: report rocket ground bearing at landing only if knownKeith Packard2010-07-28
| | | | | | if state.from_pad is null, then there isn't any data to report. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add progress bar for eeprom downloading statusKeith Packard2010-07-28
| | | | | | | This has a progress bar tracking the state and block count while downloading stuff from telemetrum. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add eeprom data capture function. No UI yet.Keith Packard2010-07-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Remove debug printfKeith Packard2010-07-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Add voice test command for help in adjusting volume.Keith Packard2010-07-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Make voice and channel menus work.Keith Packard2010-07-28
| | | | | | Stores voice and channel data to preferences. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Catch errors opening USB devices. Limit list to relevant devicesKeith Packard2010-07-28
| | | | | | | Avoids a segfault when failing to open a device. Limit listed telemetry devices to just TeleDongle units. Signed-off-by: Keith Packard <keithp@keithp.com>
* Java voice reporting cleanups.Keith Packard2010-07-27
| | | | | | | | Make sure it says something at the end of a log file replay. Make sure it reports max speed after motor burn out, and max height after apogee. Signed-off-by: Keith Packard <keithp@keithp.com>
* Java clean ups -- use varargs where possible, remove AltosSerialReaderKeith Packard2010-07-27
| | | | | | | | Add methods that format stuff using String.format for voice and serial link, remove AltosSerialReader class and just embed that in the AltosSerial class directly. Signed-off-by: Keith Packard <keithp@keithp.com>
* Switch AltosUI to libaltos for device accessKeith Packard2010-07-26
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Finish basic flight monitoring UI with voice using FreeTTSKeith Packard2010-05-17
| | | | | | | This captures telemetry data to log files and presents flight status information in audio form using FreeTTS. Signed-off-by: Keith Packard <keithp@keithp.com>
* More ALtosUI changesKeith Packard2010-04-22
|
* Enable telemetry monitoringKeith Packard2010-04-06
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Interrupt running replay thread when starting another replayKeith Packard2010-04-05
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Add Linux device discoveryKeith Packard2010-04-05
| | | | | AltosDeviceLinux.java scans /proc to locate suitable devices. This will be hooked up to the UI shortly.
* Clean up some altosui commentsKeith Packard2010-04-04
|
* Use RXTX for serial comm. Add logdir preference savingKeith Packard2010-04-04
|
* Remove unused cell renderer classKeith Packard2010-04-02
|
* Remove GPS data missing from skytraq. Save max height/accel/speedKeith Packard2010-04-02
|
* Report current gps nsat, not last locked nsatKeith Packard2010-04-02
|
* Clean up GPS data formattingKeith Packard2010-04-02
|