summaryrefslogtreecommitdiff
path: root/ao-tools/altosui/AltosEepromReader.java
Commit message (Collapse)AuthorAge
* 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>
* altosui: Use recorded ground acceleration when reading eeprom filesKeith Packard2010-09-19
| | | | | | | | | The flight software records 1000 accelerometer samples and records that in the flight log. Use that value instead of using the very few samples recorded in the eeprom before boost is detected. This generates far more accurate accerometer data in the .csv files. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Stop parsing eeprom file after hitting 'landed' state0.7.1Keith Packard2010-09-09
| | | | | | | | | Sometimes there are additional records found in the eeprom file; the reader is mostly worried about not losing anything, so it reads as much as it can. However, the last record written for any flight is the 'landed' record, so we can stop looking at the file after hitting that. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Fill in time value of last Eeprom record read from fileKeith Packard2010-09-09
| | | | | | | The last record is handled separately, and was missing the code to compute the time. Sigh. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: eeprom files place 'boost' time in the flight number record.Keith Packard2010-09-05
| | | | | | | Instead of looking for the first state change record, use the Flight record to get the boost tick. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Record flight number when scanning file, not when runningKeith Packard2010-09-05
| | | | | | | | | The very first record in the eeprom is the flight number, but it is time-stamped with the 'boost' time, and so it gets sorted until much later, delaying the return of data until the rocket enters boost mode. This drops all of the nice pad GPS and state date on the floor. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Eeprom files contain only one date; save it.Keith Packard2010-09-05
| | | | | | | | While reading eeprom files, the GPS record is reconstructed each time the system sees the first GPS log item (the time field), but as the date isn't repeated, we need to copy it from the old GPS data record. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Remove debugging printf from AltosEepromReaderKeith Packard2010-09-05
| | | | | | | | These were in place while validing the GPS data reconstruction code that handles eeprom files missing the first GPS date line due to the record overwriting bug in old firmware versions. 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: AltosEepromReader was mis-setting boost tickKeith Packard2010-08-26
| | | | | | | It was supposed to use record.tick instead of the (unset) state.tick value. 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: 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: Add comments to Eeprom readerKeith Packard2010-08-06
|
* 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>