summaryrefslogtreecommitdiff
path: root/ao-tools/altosui/AltosEepromDownload.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: 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>