Keith Packard [Mon, 30 Aug 2010 05:41:18 +0000 (22:41 -0700)]
altos: flush pending output when terminating packet mode
Just in case the last command sent hasn't been transmitted, hang
around for up to a second waiting for the data to get across the link.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 30 Aug 2010 04:45:19 +0000 (21:45 -0700)]
libaltos: cjnitest needs altos_flush now
Keith Packard [Mon, 30 Aug 2010 04:43:46 +0000 (21:43 -0700)]
libaltos: Missing OS_LDFLAGS on cjnitest build
Keith Packard [Mon, 30 Aug 2010 04:41:40 +0000 (21:41 -0700)]
libaltos: Mac OS X cannot use 'poll(2)' on serial lines.
Who ships this stuff, anyway? Instead of blocking, we'll poll every 100ms now,
otherwise, we won't be able to abort the read when the device is closed. Yay!
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 30 Aug 2010 04:40:21 +0000 (21:40 -0700)]
altosui: discard invalid lines while reading Eeprom flight data
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>
Keith Packard [Mon, 30 Aug 2010 04:36:47 +0000 (21:36 -0700)]
altosui: provide separate flush_input/flush_output for serial. deal with 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>
Keith Packard [Mon, 30 Aug 2010 00:33:59 +0000 (17:33 -0700)]
libaltos: AltusMetrum devices use more than one USB ID.
List all usb devices, picking those with AltusMetrum IDs.
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Sat, 28 Aug 2010 04:26:09 +0000 (22:26 -0600)]
update changelogs for Debian build
Bdale Garbee [Sat, 28 Aug 2010 04:24:51 +0000 (22:24 -0600)]
fix up for an 0.7 release
Bdale Garbee [Sat, 28 Aug 2010 04:13:38 +0000 (22:13 -0600)]
update changelogs for Debian build
Bdale Garbee [Fri, 27 Aug 2010 19:13:19 +0000 (13:13 -0600)]
update changelogs for Debian build
Bdale Garbee [Fri, 27 Aug 2010 19:12:46 +0000 (13:12 -0600)]
fix path to installed shared library
Bdale Garbee [Fri, 27 Aug 2010 18:41:26 +0000 (12:41 -0600)]
update changelogs for Debian build
Bdale Garbee [Fri, 27 Aug 2010 18:38:25 +0000 (12:38 -0600)]
Merge branch 'bdale'
Conflicts:
debian/control
Bdale Garbee [Fri, 27 Aug 2010 18:37:36 +0000 (12:37 -0600)]
Revert "lose the prebuild hook for now while I'm fumbling"
This reverts commit
a21b6bb60ac1c07ebd161534a4ea63bfde50dcdf.
Bdale Garbee [Fri, 27 Aug 2010 18:25:20 +0000 (12:25 -0600)]
fix man page delivery path
Bdale Garbee [Fri, 27 Aug 2010 18:18:28 +0000 (12:18 -0600)]
install altosui man page
Bdale Garbee [Fri, 27 Aug 2010 18:16:19 +0000 (12:16 -0600)]
fix permissions on installed jar file, switch from ao-view to altosui in
the desktop file
Bdale Garbee [Fri, 27 Aug 2010 18:06:01 +0000 (12:06 -0600)]
update Debian standards version
Bdale Garbee [Fri, 27 Aug 2010 18:04:13 +0000 (12:04 -0600)]
fix up the wrapper's path to the jar file
Keith Packard [Fri, 27 Aug 2010 18:00:31 +0000 (11:00 -0700)]
Merge remote branch 'origin/master' into new-packet-format
Keith Packard [Fri, 27 Aug 2010 17:58:55 +0000 (10:58 -0700)]
altosui: add elevation and range information
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Fri, 27 Aug 2010 17:51:24 +0000 (11:51 -0600)]
add an install target for altosui
Bdale Garbee [Fri, 27 Aug 2010 17:45:19 +0000 (11:45 -0600)]
add install target for libaltos
Bdale Garbee [Fri, 27 Aug 2010 17:26:29 +0000 (11:26 -0600)]
lose the prebuild hook for now while I'm fumbling
Bdale Garbee [Fri, 27 Aug 2010 17:17:54 +0000 (11:17 -0600)]
add a dummy install target
Bdale Garbee [Fri, 27 Aug 2010 09:08:53 +0000 (03:08 -0600)]
Merge branch 'new-packet-format' of ssh://git.gag.com/scm/git/fw/altos into new-package-format
Keith Packard [Fri, 27 Aug 2010 07:10:29 +0000 (00:10 -0700)]
altos: prepare for sdcc 2.9.1
A few minor language changes -- non-standard keywords are now prefixed
with __, such as 'at', 'interrupt', 'naked'.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 27 Aug 2010 06:55:44 +0000 (23:55 -0700)]
altosui: command line args are converted to csv format
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 27 Aug 2010 06:54:53 +0000 (23:54 -0700)]
altosui: Remove debug printf from AltosState.java
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 27 Aug 2010 06:53:06 +0000 (23:53 -0700)]
altosui: When parsing saved telem files, errors shouldn't abort file
Make syntax errors in telem files just skip the current line and move
on to the next one instead of abandoning the whole file.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 27 Aug 2010 06:50:51 +0000 (23:50 -0700)]
altosui: Serial line is in UTF-8 encoding. Deal with it.
We read bytes from the serial line and need to convert each line into
a string. So, save the bytes and at EOL, pass the whole mess to the
string constructor with the appropriate encoding info.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 27 Aug 2010 06:49:37 +0000 (23:49 -0700)]
altosui: Add support for old (version < 3) telemetry files
This lets the code read telemetry files from pre-released versions of
the software. Not strictly necessary for production, but useful for
analysing old files.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 27 Aug 2010 06:47:38 +0000 (23:47 -0700)]
altosui: AltosEepromReader was mis-setting boost tick
It was supposed to use record.tick instead of the (unset) state.tick
value.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 27 Aug 2010 06:44:25 +0000 (23:44 -0700)]
altosui: add rssi and distance/dir from pad to CSV files
Just adds a couple more fields to the CSV files that might be interesting.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 27 Aug 2010 06:43:00 +0000 (23:43 -0700)]
altosui: Add AltosGreatCircle constructors
This adds constructurs from AltosGPS pairs and also one from empty
args (which defines both distance and bearing as 0).
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 27 Aug 2010 06:41:26 +0000 (23:41 -0700)]
altosui: Move number parsing code to Altos general class
This moves these shared functions to the global shared class.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 27 Aug 2010 06:37:29 +0000 (23:37 -0700)]
altos: mark gps date written only after it gets into eeprom
Data logging doesn't start until boost detect occurs. As the GPS date
is only logged once, if that happens before logging is written to the
flash, then the GPS date will never get saved.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 26 Aug 2010 22:59:09 +0000 (15:59 -0700)]
altos: print GPS state flags in GPS 'g' command
Having the GPS state information can help with GPS debugging.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 26 Aug 2010 22:57:09 +0000 (15:57 -0700)]
altos: always rebuild ao_product.c to track git version
The git version is built into ao_product.c and saved in eeprom log
files, providing useful diagnostics about the firmware revision used
for each flight. However, if ao_product.c isn't recompiled, then the
updated version won't be included. Force recompilation of this file
each time make is run to ensure that the final output contains an
updated version number.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 24 Aug 2010 23:43:38 +0000 (16:43 -0700)]
altosui: flush replies from serial link when entering debug mode
We use replies in debug mode a lot and depend on them matching the
expected parameters. The case which caused trouble was using
TeleMetrum to reprogram TeleDongle -- sending the 'm 0' command (to
disable telemetry monitoring on TeleDongle) to the TeleMetrum caused
it to reply 'Syntax Error' which confused the subsequent flashing
operation. Flushing that reply gets things back in sync.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 24 Aug 2010 11:02:27 +0000 (04:02 -0700)]
altosui: write USB serial number string while flashing
USB serial number is encoded in UCS2 as a part of the string
descriptors. Place those right after the other rom config bits so that
altosui can find it. altosui is changed to write the serial number there.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 24 Aug 2010 11:01:47 +0000 (04:01 -0700)]
altosui: always display romconfig ui while flashing
Keith Packard [Tue, 24 Aug 2010 11:01:14 +0000 (04:01 -0700)]
altosui: fetch existing romconfig for flashing
Keith Packard [Tue, 24 Aug 2010 10:59:09 +0000 (03:59 -0700)]
altosui: Delay mapping Flash UI until flashing actually starts
The flash operation may be abandoned before it even starts; this makes
sure the UI doesn't flash up on the screen.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 24 Aug 2010 10:58:00 +0000 (03:58 -0700)]
altosui: disable radio monitoring while using serial line for debugging
Keith Packard [Tue, 24 Aug 2010 07:29:11 +0000 (00:29 -0700)]
altosui: Add ability to create CSV file from telem or eeprom files
This creates a comma separated value file to export data for
external programs.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 24 Aug 2010 06:15:05 +0000 (23:15 -0700)]
altosui: refactor logfile chooser dialog to share more code
Move file opening logic into logfile chooser as it can be shared that way.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 24 Aug 2010 06:01:36 +0000 (23:01 -0700)]
altosui: Separate out log file choosing dialog to share with CSV generator
This dialog will be shared with the CSV file generating code, so split
it out instead of duplicating it.
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Tue, 24 Aug 2010 05:11:22 +0000 (23:11 -0600)]
Merge branch 'new-packet-format' of ssh://git.gag.com/scm/git/fw/altos into new-package-format
Keith Packard [Tue, 24 Aug 2010 05:08:30 +0000 (22:08 -0700)]
altosui: make default Manifest look for built-in freetts
Keith Packard [Tue, 24 Aug 2010 05:03:36 +0000 (22:03 -0700)]
altos: Place rom config variables in fixed location
The device serial number and radio calibration values are stored in
flash, mostly so that TeleDongle gets them saved.
Placing them in well-known locations (starting at 0xa0) makes it
possible to find the previous configuration and to re-write it
easily, without requiring the .map file.
altosui doesn't have the .map file parsing code, so it relies upon
this new technique. As a benefit, it reads the old values from the
device before reprogramming it.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 24 Aug 2010 05:02:21 +0000 (22:02 -0700)]
altosui: Finish device programming code
Altosui can now reprogram Altusmetrum devices.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 24 Aug 2010 05:01:38 +0000 (22:01 -0700)]
altosui: Remove debug printf from AltosRomconfig
Keith Packard [Tue, 24 Aug 2010 05:01:11 +0000 (22:01 -0700)]
altosui: flush serial output before waiting for reply
Keith Packard [Tue, 24 Aug 2010 05:00:16 +0000 (22:00 -0700)]
altosui: remove debug printf from AltosHexfile
Keith Packard [Tue, 24 Aug 2010 04:58:50 +0000 (21:58 -0700)]
altosui: Add lots more cc1111 debug interface functions
These are sufficient to program the flash.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 24 Aug 2010 04:55:49 +0000 (21:55 -0700)]
libaltos: use pipe to wake up getchar on close. use mutexes
Keith Packard [Tue, 24 Aug 2010 04:54:47 +0000 (21:54 -0700)]
altosui: pad TM config dialog values to avoid clipping descenders
Keith Packard [Tue, 24 Aug 2010 04:53:37 +0000 (21:53 -0700)]
ao-dumplog: Fix --remote and --channel options to actually work
Keith Packard [Mon, 23 Aug 2010 21:32:58 +0000 (14:32 -0700)]
altosui: Add debug dongle API, split flash UI out
Create an API to talk through the debug port on another AltOS
device. Split the flash UI out from the flash implementation so that a
command line flash utility can be written.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 23 Aug 2010 18:53:19 +0000 (11:53 -0700)]
altosui: Add .ihx file reading code and stub out flashing UI
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Thu, 5 Aug 2010 19:00:15 +0000 (15:00 -0400)]
working on java packaging details
Bdale Garbee [Thu, 5 Aug 2010 19:15:04 +0000 (15:15 -0400)]
add freetts as a build dep
Keith Packard [Mon, 23 Aug 2010 06:06:15 +0000 (23:06 -0700)]
altosui: Set callsign when fetching eeprom data over the air
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>
Keith Packard [Mon, 23 Aug 2010 06:05:20 +0000 (23:05 -0700)]
altosui: Add TeleMetrum configuration
This presents a dialog with all of the user-settable options in the
TeleMetrum set for editing. Combo boxes are used for everything except
the callsign.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 22 Aug 2010 00:57:31 +0000 (17:57 -0700)]
altosui: Make teledongle callsign configurable
Teledongle uses the callsign in packet mode; this provides a way to
set that.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 22 Aug 2010 00:09:41 +0000 (17:09 -0700)]
altos: Define USB product ID in per-product Makefile.defs file
This allows Win7 to tell which kind of device is connected purely by
USB id as it doesn't expose the USB product ID string to user space.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 18 Aug 2010 01:22:28 +0000 (18:22 -0700)]
altosui: Select devices by USB vendor/product ID.
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>
Keith Packard [Wed, 18 Aug 2010 01:19:43 +0000 (18:19 -0700)]
libaltos: integrate Windows support.
This adds Windows support for discovery and I/O.
The API to the library is mostly unchanged, except that it now exports
product and vendor USB IDs as Win7 doesn't expose the product name
anywhere that we've been able to find, so we'll be updating the
firmware to use unique idProduct values for each product.
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Thu, 12 Aug 2010 02:11:50 +0000 (22:11 -0400)]
update changelogs for Debian build
Bdale Garbee [Wed, 11 Aug 2010 21:15:39 +0000 (17:15 -0400)]
update changelogs for Debian build
Bdale Garbee [Wed, 11 Aug 2010 12:50:27 +0000 (08:50 -0400)]
update changelogs for Debian build
Bdale Garbee [Wed, 11 Aug 2010 12:36:59 +0000 (08:36 -0400)]
update changelogs for Debian build
Keith Packard [Sun, 8 Aug 2010 02:30:55 +0000 (22:30 -0400)]
ao-dumplog: add --channel option (for use with -R option)
Sets the channel when downloading data with the -R option.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 7 Aug 2010 04:42:25 +0000 (00:42 -0400)]
altosui: Start adding code to write csv files from eeprom/telem files
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>
Keith Packard [Sat, 7 Aug 2010 04:40:59 +0000 (00:40 -0400)]
altos: add callsign to packet mode, increase payload to 64 bytes
Untested, but it 'should' work. Need to add callsign setting to packet
mode users.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 6 Aug 2010 17:09:21 +0000 (13:09 -0400)]
altosui: Add comments to Eeprom reader
Keith Packard [Fri, 6 Aug 2010 02:49:53 +0000 (22:49 -0400)]
altosui: Compute flight state from eeprom data
This lets eeprom files be used to replay flights.
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Thu, 5 Aug 2010 19:16:48 +0000 (15:16 -0400)]
update changelogs for Debian build
Bdale Garbee [Thu, 5 Aug 2010 19:16:24 +0000 (15:16 -0400)]
update changelogs for Debian build
Bdale Garbee [Thu, 5 Aug 2010 19:15:04 +0000 (15:15 -0400)]
add freetts as a build dep
Bdale Garbee [Thu, 5 Aug 2010 19:02:17 +0000 (15:02 -0400)]
update changelogs for Debian build
Bdale Garbee [Thu, 5 Aug 2010 19:00:46 +0000 (15:00 -0400)]
update changelogs for Debian build
Bdale Garbee [Thu, 5 Aug 2010 19:00:15 +0000 (15:00 -0400)]
working on java packaging details
Keith Packard [Thu, 5 Aug 2010 17:50:18 +0000 (13:50 -0400)]
altosui: Split flight record out of telemetry class
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>
Keith Packard [Thu, 5 Aug 2010 17:40:17 +0000 (13:40 -0400)]
altosui: Explicitly initialize Altos class
Because the Altos class is never instantiated, the static initializers
are never called, leaving the string to state mapping empty. Hand-code
the call to the initialer instead.
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Thu, 5 Aug 2010 04:54:05 +0000 (00:54 -0400)]
move to science menu
Keith Packard [Sat, 31 Jul 2010 17:34:21 +0000 (10:34 -0700)]
altosui: Split status and info panels into separate files
This moves some code out of AltosUI.java into separate files
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 31 Jul 2010 17:24:56 +0000 (10:24 -0700)]
altosui: Clear displayed data rows as needed.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 31 Jul 2010 17:07:38 +0000 (10:07 -0700)]
altosui: Merge gps date and time classes into gps class
No reason to split out the date and time information from the other gps info.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 31 Jul 2010 17:05:15 +0000 (10:05 -0700)]
altosui: Capture config and version info in .eeprom files
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>
Keith Packard [Sat, 31 Jul 2010 16:57:49 +0000 (09:57 -0700)]
altosui: rename AltosEeprom -> AltosEepromDownload, split out Altos constants
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>
Bdale Garbee [Sat, 31 Jul 2010 16:55:27 +0000 (10:55 -0600)]
update changelogs for Debian build
Bdale Garbee [Sat, 31 Jul 2010 16:55:07 +0000 (10:55 -0600)]
see if my new freetts package works
Bdale Garbee [Thu, 29 Jul 2010 19:30:36 +0000 (13:30 -0600)]
update changelogs for Debian build
Keith Packard [Thu, 29 Jul 2010 19:07:49 +0000 (12:07 -0700)]
Merge remote branch 'origin/master'
Keith Packard [Thu, 29 Jul 2010 19:06:06 +0000 (12:06 -0700)]
Make altosui test script executable
Bdale Garbee [Thu, 29 Jul 2010 18:57:31 +0000 (12:57 -0600)]
update changelogs for Debian build
Bdale Garbee [Thu, 29 Jul 2010 18:56:59 +0000 (12:56 -0600)]
add a jdk to the build deps