summaryrefslogtreecommitdiff
path: root/altosui/AltosEepromDownload.java
Commit message (Collapse)AuthorAge
* altosui: Stop downloading eeprom data on a block full of invalid dataKeith Packard2012-09-12
| | | | | | | When no valid records are found within an eeprom block, we assume that no more data will be found within the entire storage area. Signed-off-by: Keith Packard <keithp@keithp.com>
* Reverted package name to 'altosui' from 'AltosUI'Tom Marble2012-09-11
| | | | Also added emacs backup regex (*~) to .gitignore
* Changed package name from altosui to AltosUITom Marble2012-09-10
|
* altosui: Catch errors in state value when saving flight logsKeith Packard2012-09-09
| | | | | | | | Use AltosLib.state_name() instead of directly accessing the state_to_string array so that any invalid state values are caught and replaced with 'invalid' instead of raising an exception. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Fix flight data download for TM. Look for MM flights when graphingKeith Packard2012-07-03
| | | | | | | | A couple of minor fixes, the first to not force the log format so that TM/Tm data will be downloaded correctly and the second to expand the set of files to include '.mega' files when plotting data. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: More changes to migrate code to altoslibKeith Packard2012-06-04
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Complete split out of separate java libraryKeith Packard2012-06-02
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Quick hacks to download megametrum data and convert to CSVKeith Packard2012-06-01
| | | | | | | Very little useful data crunching is done, but at least we can save and convert files Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Change flight data saving UI to separate download/delete selectionsKeith Packard2012-03-27
| | | | | | | | | First pop up a dialog to select flights for download. Download them. Then, after that, pop up a *new* dialog to select flights for delete. Offer to delete all of the downloaded flights by default. Then delete the flights. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Report error message back from libaltosKeith Packard2011-08-28
| | | | | | | This includes changing all of the error dialogs to show the error message rather than just the file name. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: AltosSerial.flush_input shouldn't discard Interrupted exceptionsKeith Packard2011-08-13
| | | | | | | | The eeprom download code wants to interrupt serial communication so that it can stop downloading stuff in the middle of a run. Make flush_input pass the exception along instead of discarding it. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Eliminate inter-chunk flush_input callsKeith Packard2011-08-13
| | | | | | | Once the serial line is nicely synchronized, we don't need to flush input between chunks. This speeds up eeprom downloading quite a bit. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add support for TeleScience eeprom downloadKeith Packard2011-08-13
| | | | | | | | Using the existing eeprom methods, fetch and save TeleScience eeprom data, storing to a filename generated from the serial/flight from the TM connected to the TS board. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/altosui: Report log format in the version commandKeith Packard2011-08-13
| | | | | | | | This will make it easier to figure out what the contents of the flash should look like from altosui; the current 'guessing' mechanism will not scale to many more formats. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Convert from channels to frequenciesKeith Packard2011-08-08
| | | | | | | | | | | | | Major areas: * Preferences are stored as frequencies instead of channels * Serial configuration is done using frequencies * UI is presented with frequency lists Signed-off-by: Keith Packard <keithp@keithp.com>
* Merge branch 'telemini' into telebtKeith Packard2011-04-19
|\
| * altosui: oops - lost state changes when downloading eeprom data.Keith Packard2011-04-13
| | | | | | | | | | | | | | This would cause the reader to just keep reading past the end of the flight. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos/altosui: Log averaged baro sensor data in Tm/TnKeith Packard2011-04-09
| | | | | | | | | | | | | | | | Instead of logging the best height guess from the kalman filter, log barometer data. The logged data consists of the average value betwen log points to reduce noise. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altosui: Add low-level Bluetooth APIsKeith Packard2011-04-08
|/ | | | | | | | | Adds the JNI functions to query and connect to arbitrary bluetooth devices. Adds Java wrappers to construct a list of proximate bluetooth devices. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Tell serial device which frame to use for timeout dialogsKeith Packard2011-03-27
| | | | | | | | | | For the timeout dialog to appear, a frame must be configured for it to appear near. This patch sends the frame from the eeprom download functions to the serial code. That path doesn't yet work as the eeprom download is still trying to talk to the serial device from the swing event thread, which prevents the cancel dialog from working. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Remove extra AltosEepromBlock layerKeith Packard2011-03-25
| | | | | | | | | | This was interposed between the download layer and the eeprom layer to hold a eeprom block full of flight log records. The addition of the tiny log format required reworking the code to hold chunks full of eeprom data without regard to their content, so this content-specific layer didn't seem useful anymore. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add support for downloading TeleMini/TeleNano flight logsKeith Packard2011-03-25
| | | | | | | | Splits the eeprom downloading code into eeprom block downloading and separate eeprom data parsing so that the new data logging format can share the data downloading code. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Display eeprom parsing errors to userKeith Packard2011-02-19
| | | | | | | | | When reading the eeprom, any parsing errors (most likely bad checksums) indicate some kind of problem with either the hardware or the flight software. Display these to the user and do not erase the flight. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Remove debug message when eeprom downloads are complete.Keith Packard2011-01-16
| | | | | | This message isn't useful now that this code appears to work. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Reset eeprom download instance variables before reading flightKeith Packard2011-01-16
| | | | | | | | To deal with downloading multiple flights in a single invocation, make sure all relevant instance variables are set back to start of flight download values each time a log is read. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add eeprom 'manage' ui to download and delete multiple flightsKeith Packard2011-01-12
| | | | | | | This shows the list of available flights and provides options to download and/or delete each one. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add support for parsing list of flights from the 'l' commandKeith Packard2011-01-11
| | | | | | | This adds parsing support to enumerate the available flights, but does not yet provide any UI to use it. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Split eeprom download code apartKeith Packard2011-01-11
| | | | | | | | Create separate 'download config data', 'read single record' and 'read block' functions. This code will be shared with future multi-log reading code for new firmware. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Flight data download GUI operations called only from main threadKeith Packard2010-11-25
| | | | | | | | Swing doesn't like UI functions being called from non-dispatch thread, so fix up the eeprom download code to use SwingUtilities.invokeLater to make sure this works right. Signed-off-by: Keith Packard <keithp@keithp.com>
* Move altosui to the top level, placing libaltos inside it.Keith Packard2010-11-24
Signed-off-by: Keith Packard <keithp@keithp.com>