summaryrefslogtreecommitdiff
path: root/ao-tools/lib
Commit message (Collapse)AuthorAge
* Remove stale tools (ao-dumplog, ao-postflight, ao-view)Keith Packard2011-08-23
| | | | | | | These tools have all been supplanted by altosui at this point, and keeping them around increases the build dependencies by quite a lot. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: ao-list was crashing with more than 3 devices connectedKeith Packard2011-08-13
| | | | | | | the list of devices was getting realloced for each new device, but that realloc was too small. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-dumplog: add --channel option (for use with -R option)Keith Packard2010-08-07
| | | | | | Sets the channel when downloading data with the -R option. Signed-off-by: Keith Packard <keithp@keithp.com>
* Telemetry code was mis-computing RSSIKeith Packard2010-07-14
| | | | | | | The RSSI data from the hardware reports in 1/2 dBm increments, and so must be divided to report plain RSSI numbers. Signed-off-by: Keith Packard <keithp@keithp.com>
* Allow product names to have suffixes (like board revisions)Keith Packard2010-02-25
| | | | | | | | When looking for a board by product name, just look at the prefix of the name instead of requiring an exact match. This will allow products to have board version suffixes. Signed-off-by: Keith Packard <keithp@keithp.com>
* Pull in a bit more data for filtering the start of the boostKeith Packard2010-02-11
|
* Switch to using internal cc1111 temperature sensorKeith Packard2010-01-10
| | | | | | | | v0.2 has no temperature sensor, and several of the v0.1 boards didn't get a temperature sensor loaded. Use the internal temperature sensor on the cc1111 in all cases instead. Signed-off-by: Keith Packard <keithp@keithp.com>
* Automatically extract flight number for eeprom and telem filenames.Keith Packard2009-11-22
| | | | | | | | | | | | Extract flight number from either telemetry or eeprom files and use that in the resulting filenames. To ensure that files remain unique, add a new field, -seq-%03d. This is appended only when the sequence number is non-zero as it shouldn't occur in normal usage. This also eliminates some duplicate filename creation code in the library and aoview sources. Signed-off-by: Keith Packard <keithp@keithp.com>
* Convert telemetry file GPS satellite information in cc_log_readKeith Packard2009-11-21
| | | | | | | The satellite info wasn't being correctly converted from telemetry files to the data log structure, so ao-postflight was not seeing it. Signed-off-by: Keith Packard <keithp@keithp.com>
* Eliminate SiRF state values from ao-view.Keith Packard2009-11-20
| | | | | | | With Skytraq not having any visible GPS state information, just remove this from the display. Signed-off-by: Keith Packard <keithp@keithp.com>
* Add GPS date/time output to ao-postflight.Keith Packard2009-11-20
| | | | | | | GPS date/time information was already being stored in the log, it just wasn't getting displayed by ao-postflight. Signed-off-by: Keith Packard <keithp@keithp.com>
* Stop using SiRF state info.Keith Packard2009-11-15
| | | | | | | | With the switch to the skytraq GPS unit, we don't have the same level of detail in the GPS stream, so stop reporting that in the telemetry stream, in the UI and writing it to eeprom. Signed-off-by: Keith Packard <keithp@keithp.com>
* Add date to GPS data, captured from GPRMC packet.Keith Packard2009-11-15
| | | | | | | Pull the date out of the GPS stream and send it over the telemetry link and write it to the eeprom. Signed-off-by: Keith Packard <keithp@keithp.com>
* Add flight number to telemetry stream.Keith Packard2009-11-15
| | | | | | | | This makes it easier to tie the telemetry and eeprom files together as they're now both labeled with serial and flight numbers, which should be unique. Signed-off-by: Keith Packard <keithp@keithp.com>
* Share telemetry parsing code in cc library.Keith Packard2009-11-14
| | | | | | | | ao-view had a private copy of the telemetry parsing code which included the ability to parse the newer version of that file. Those changes have been moved to the library version and the private copy removed. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-postflight: fix sloppy gps sat data realloc code (was crashing).Keith Packard2009-11-14
| | | | | | | Realloc'ing the wrong data, and failing to set the realloc'ed size was causing ao-postflight to crash while reading long logs. Signed-off-by: Keith Packard <keithp@keithp.com>
* Flush pending input when switching to remote packet modeKeith Packard2009-11-04
| | | | | | | Any pending input would just confuse the application, so pull it off the link and dump it. Signed-off-by: Keith Packard <keithp@keithp.com>
* Add ability to dump eeprom data over radio link.Keith Packard2009-11-03
| | | | | | | | This adds a '-R' option to ao-dumplog to redirect the connection through a USB attached TeleDongle over the radio link to a remote TeleMetrum device. Signed-off-by: Keith Packard <keithp@keithp.com>
* Add --gps option to ao-postflightKeith Packard2009-09-20
|
* Fix cc_period_make to not get stuck on samples with matching timeKeith Packard2009-09-06
| | | | | | | When two samples have matching times, step to the second one; otherwise, we'll get stuck forever. Signed-off-by: Keith Packard <keithp@keithp.com>
* Color plots, integrate only flight portion of data.Keith Packard2009-09-06
| | | | | | | | | | | Telemetry files have piles of pad data which shouldn't be integrated into the velocity data as it tends to generate huge values from the noise of the sensor. Also make the data lines colored to keep them visually distinct from the rest of the plot image. Signed-off-by: Keith Packard <keithp@keithp.com>
* Add plots to ao-postflight using the plplot libraryKeith Packard2009-09-06
| | | | | | It's not perfect, but it generates .svg plot output. Signed-off-by: Keith Packard <keithp@keithp.com>
* Use pressure speed for drogue and beyond states. Fix differentiation time.Keith Packard2009-09-06
| | | | | | | | Drogue state should always use pressure speeds. Differentiation code was using centi-seconds instead of seconds. Signed-off-by: Keith Packard <keithp@keithp.com>
* Add DSP code to filter data, allowing for integration/differentiationKeith Packard2009-09-06
| | | | | | | | This adds the computation of speed from both accelerometer and barometer measurements and then presents a periodic flight profile using filtered data as a detailed flight record. Signed-off-by: Keith Packard <keithp@keithp.com>
* Handle vageries of .telem files in ao-postflightKeith Packard2009-09-05
| | | | | | | Telem files have multiple entries of the same state, and sometimes long gaps between recordings. Deal with this as best as possible. Signed-off-by: Keith Packard <keithp@keithp.com>
* Add simple post-flight analysis tool (ao-postflight)Keith Packard2009-09-05
| | | | | | | This tool reads either an eeprom or telem log file and displays some rudimentary data (max accel/alt for each flight stage). Signed-off-by: Keith Packard <keithp@keithp.com>
* Add ao-dumplog to capture flight log from command lineKeith Packard2009-09-05
| | | | | | | This duplicates the functionality of the flight log stuf in ao-view, except from the command line where it belongs. Signed-off-by: Keith Packard <keithp@keithp.com>
* 'fix' ao-eeprom to read two blocks at once. Work around kernel bugs.Keith Packard2009-09-04
| | | | | | | The kernel appears to leave serial data undelivered at times. Reading two blocks at once appears to make it relinquish the queued data. Signed-off-by: Keith Packard <keithp@keithp.com>
* Parse the USB serial number as an integer.Keith Packard2009-09-04
| | | | | | | AltOS devices use simple integer serial numbers, so parse the USB value as such to make matching values more forgiving. Signed-off-by: Keith Packard <keithp@keithp.com>
* Move usb scanning code to ao-tools libraryKeith Packard2009-09-04
| | | | | | | | | | This will allow the scanning code to be used by the command line tools as well as the ao-view GUI. Now that ao-view depends on the ao-tools library, it has been moved to the ao-tools directory as well. Signed-off-by: Keith Packard <keithp@keithp.com>
* Use --tty/-T on command line to specify target deviceKeith Packard2009-08-18
| | | | | | | | Also, use the ALTOS_TTY environment variable in all tools. Note that the magic value of "BITBANG" switches the library to connecting through a CP2103 instead. Signed-off-by: Keith Packard <keithp@keithp.com>
* Rename tools to ao-<foo>Keith Packard2009-08-18
Use a consistent prefix to make it easier to remember which programs belong to this package Signed-off-by: Keith Packard <keithp@keithp.com>