summaryrefslogtreecommitdiff
path: root/ao-tools/altosui/AltosEepromDownload.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>
* altosui: New AltosSerial.set_radio function sets channel/callKeith Packard2010-11-23
| | | | | | | | | Use this anytime you need to set the device radio channel and call sign, either for telemetry reception or packet mode origination. This uses the saved callsign and per-device radio channel number. Do not use this when opening a telemetrum as there won't be a saved channel number. Signed-off-by: Keith Packard <keithp@keithp.com>
* 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: 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>
* altosui: Fix more calls to AltosPreferences.channel()Keith Packard2010-11-08
| | | | | | Oops. Two more. Signed-off-by: Keith Packard <keithp@keithp.com>
* 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: discard invalid lines while reading Eeprom flight dataKeith Packard2010-08-29
| | | | | | | This shouldn't happen, but it's easy enough to get back in sync by just skipping lines with weird contents. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: provide separate flush_input/flush_output for serial. deal with ↵Keith Packard2010-08-29
| | | | | | | | | | | | | | | | | monitor automatically (yes, this should be two patches, but the diffs in AltosSerial were merged together). First, this replaces the existing flush/flush_reply mess with two simple functions, one to flush output to the serial device, making sure that all data written will be seen while we wait for input. The other sucks any pending input off of the serial line and discards it. Second, AltosSerial now tracks whether the serial line is being used for telemetry monitoring. If so, it enables monitoring, otherwise it disables it. Eliminates a bunch of manual state tracking elsewhere. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Set callsign when fetching eeprom data over the airKeith Packard2010-08-22
| | | | | | | | The updated firmware places the callsign in each packet to comply with regulations, this ensures that TeleDongle has the current callsign configured. 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: 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: Capture config and version info in .eeprom filesKeith Packard2010-07-31
| | | | | | | | | | Instead of only writing the serial number to the .eeprom file, write all of the config values and all of the version reply to the .eeprom file. The config values, in particular, contain the accelerometer calibration data which is needed to correctly compute acceleration from the captured accelerometer data. 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>