fw/altos
7 years agorewind packaging changelog to last tagged version
Bdale Garbee [Thu, 25 Aug 2011 07:37:31 +0000 (01:37 -0600)]
rewind packaging changelog to last tagged version

7 years agoao-view is no longer included in the altos package, so have the old-style
Bdale Garbee [Thu, 25 Aug 2011 07:35:18 +0000 (01:35 -0600)]
ao-view is no longer included in the altos package, so have the old-style
Debian menu entry point to altosui instead

7 years agochanges in preparation for upload to Debian
Bdale Garbee [Thu, 25 Aug 2011 07:35:06 +0000 (01:35 -0600)]
changes in preparation for upload to Debian

7 years agodon't deliver sources.list fragment in official Debian packages
Bdale Garbee [Thu, 25 Aug 2011 07:30:36 +0000 (01:30 -0600)]
don't deliver sources.list fragment in official Debian packages

7 years agoprepare to release
Bdale Garbee [Thu, 25 Aug 2011 07:11:47 +0000 (01:11 -0600)]
prepare to release

7 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Thu, 25 Aug 2011 06:34:49 +0000 (00:34 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

Conflicts:
doc/altusmetrum.xsl

7 years agomore tweaks
Bdale Garbee [Thu, 25 Aug 2011 06:32:47 +0000 (00:32 -0600)]
more tweaks

7 years agodoc: Remove duplicate documentation about max flight log
Keith Packard [Thu, 25 Aug 2011 06:21:02 +0000 (23:21 -0700)]
doc: Remove duplicate documentation about max flight log

This was described in detail in both the System Operation and AltosUI
chapters. Remove the duplicate from the AltosUI chapter.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoMerge remote-tracking branch 'origin/master'
Keith Packard [Thu, 25 Aug 2011 06:06:44 +0000 (23:06 -0700)]
Merge remote-tracking branch 'origin/master'

7 years agodoc: Describe max flight log, ignite mode and pad orientation
Keith Packard [Thu, 25 Aug 2011 06:06:01 +0000 (23:06 -0700)]
doc: Describe max flight log, ignite mode and pad orientation

These describe what these configuration parmaeters do, not how to set them.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Thu, 25 Aug 2011 05:51:38 +0000 (23:51 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

Conflicts:
doc/altusmetrum.xsl

7 years agotweak tweak tweak
Bdale Garbee [Thu, 25 Aug 2011 05:50:31 +0000 (23:50 -0600)]
tweak tweak tweak

7 years agodoc: Move the remaining command-mode descriptions to the appendix
Keith Packard [Thu, 25 Aug 2011 05:29:56 +0000 (22:29 -0700)]
doc: Move the remaining command-mode descriptions to the appendix

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Thu, 25 Aug 2011 05:23:56 +0000 (23:23 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

7 years agomore changes
Bdale Garbee [Thu, 25 Aug 2011 05:23:45 +0000 (23:23 -0600)]
more changes

7 years agodoc: Updating Firmware is now a separate chapter
Keith Packard [Thu, 25 Aug 2011 05:20:29 +0000 (22:20 -0700)]
doc: Updating Firmware is now a separate chapter

The Flash Image paragraph references it, change the reference wording.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agodoc: Move updating device firmware section to separate chapter
Keith Packard [Thu, 25 Aug 2011 05:18:29 +0000 (22:18 -0700)]
doc: Move updating device firmware section to separate chapter

This isn't central to operation of the devices, so move it out to a
separate chapter

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Thu, 25 Aug 2011 05:15:20 +0000 (23:15 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

7 years agomore tweaking
Bdale Garbee [Thu, 25 Aug 2011 05:15:15 +0000 (23:15 -0600)]
more tweaking

7 years agodoc: use 'radio link' to refer to packet command mode
Keith Packard [Thu, 25 Aug 2011 05:12:39 +0000 (22:12 -0700)]
doc: use 'radio link' to refer to packet command mode

Make sure 'radio link' doesn't refer to telemetry and eliminate use of
'RF link' and other similar but not identical phrases.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agomore tweaks
Bdale Garbee [Thu, 25 Aug 2011 05:03:23 +0000 (23:03 -0600)]
more tweaks

7 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Thu, 25 Aug 2011 04:42:39 +0000 (22:42 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

7 years agomore doc tweaks
Bdale Garbee [Thu, 25 Aug 2011 04:42:33 +0000 (22:42 -0600)]
more doc tweaks

7 years agodoc: Move Packet Command Mode section to System Operations chapter
Keith Packard [Thu, 25 Aug 2011 04:39:48 +0000 (21:39 -0700)]
doc: Move Packet Command Mode section to System Operations chapter

It makes far more sense here.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agodoc: Describe packet command mode a bit better.
Keith Packard [Thu, 25 Aug 2011 04:31:05 +0000 (21:31 -0700)]
doc: Describe packet command mode a bit better.

Include comments about TeleMini in the introduction, and then explain
a bit better what the best method of reliably initiating packet
command mode are (start operation, then boot telemini).

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agomore doc tweaking
Bdale Garbee [Thu, 25 Aug 2011 04:27:35 +0000 (22:27 -0600)]
more doc tweaking

7 years agodoc: Document pad-mode 'on-board data logging' indicator
Keith Packard [Thu, 25 Aug 2011 03:59:28 +0000 (20:59 -0700)]
doc: Document pad-mode 'on-board data logging' indicator

There wasn't any documentation for this field in the 'Launch Pad' tab.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agodoc: Spelling corrections in altusmetrum.xsl
Keith Packard [Thu, 25 Aug 2011 03:42:09 +0000 (20:42 -0700)]
doc: Spelling corrections in altusmetrum.xsl

Lots of minor spelling errors.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agodoc tweaks through chap 3
Bdale Garbee [Thu, 25 Aug 2011 03:39:21 +0000 (21:39 -0600)]
doc tweaks through chap 3

7 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Thu, 25 Aug 2011 03:26:26 +0000 (21:26 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

7 years agoaltos/windows: Get latest JRE 1.6 version (Version 6 update 27)
Keith Packard [Thu, 25 Aug 2011 03:22:29 +0000 (20:22 -0700)]
altos/windows: Get latest JRE 1.6 version (Version 6 update 27)

No reason to download stale java bits.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Make flight monitor font size configurable
Keith Packard [Thu, 25 Aug 2011 02:13:03 +0000 (19:13 -0700)]
altosui: Make flight monitor font size configurable

Tiny netbooks aren't tall enough for the 'usual' font size, so provide
a smaller option. Then provide a bigger option, just because.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Don't trust companion telemetry record 'channels' count
Keith Packard [Wed, 24 Aug 2011 08:48:28 +0000 (01:48 -0700)]
altosui: Don't trust companion telemetry record 'channels' count

It can be bogus, allowing the code to walk off the end of the
allocated data array.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoupdate changelogs for Debian build
Bdale Garbee [Wed, 24 Aug 2011 07:53:02 +0000 (01:53 -0600)]
update changelogs for Debian build

7 years agoprepare for another rebuild 0.9.7.1
Bdale Garbee [Wed, 24 Aug 2011 07:51:54 +0000 (01:51 -0600)]
prepare for another rebuild

7 years agoadd pkg-config to the build deps
Bdale Garbee [Wed, 24 Aug 2011 07:50:56 +0000 (01:50 -0600)]
add pkg-config to the build deps

7 years agoupdate changelogs for Debian build
Bdale Garbee [Wed, 24 Aug 2011 07:45:28 +0000 (01:45 -0600)]
update changelogs for Debian build

7 years agoroll changelog back in prep for another test build
Bdale Garbee [Wed, 24 Aug 2011 07:43:59 +0000 (01:43 -0600)]
roll changelog back in prep for another test build

7 years agoanother test round
Bdale Garbee [Wed, 24 Aug 2011 07:41:53 +0000 (01:41 -0600)]
another test round

7 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Wed, 24 Aug 2011 07:38:58 +0000 (01:38 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

7 years agoaltosui: Try to get dialogs to look a little better
Keith Packard [Wed, 24 Aug 2011 07:29:36 +0000 (00:29 -0700)]
altosui: Try to get dialogs to look a little better

grid bag constraints are not my friend.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Add tool-tips to config dialogs
Keith Packard [Wed, 24 Aug 2011 07:09:51 +0000 (00:09 -0700)]
altosui: Add tool-tips to config dialogs

Provides more information about the various settings, and, when
they're disabled, tells the user why.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoRemove stale tools (ao-dumplog, ao-postflight, ao-view)
Keith Packard [Wed, 24 Aug 2011 06:20:00 +0000 (23:20 -0700)]
Remove stale tools (ao-dumplog, ao-postflight, ao-view)

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>
7 years agoaltosui: Use system look&feel
Keith Packard [Wed, 24 Aug 2011 05:51:57 +0000 (22:51 -0700)]
altosui: Use system look&feel

Turn on the 'be less ugly bit'

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoupdate changelogs for Debian build
Bdale Garbee [Wed, 24 Aug 2011 03:37:17 +0000 (21:37 -0600)]
update changelogs for Debian build

7 years agorewind changelog to 0.9.6.0 for rebuild 0.9.7.0
Bdale Garbee [Wed, 24 Aug 2011 03:33:53 +0000 (21:33 -0600)]
rewind changelog to 0.9.6.0 for rebuild

7 years agoupdate changelogs for Debian build
Bdale Garbee [Wed, 24 Aug 2011 02:11:01 +0000 (20:11 -0600)]
update changelogs for Debian build

7 years agoturn off auto-tagging during Debian build
Bdale Garbee [Wed, 24 Aug 2011 02:10:14 +0000 (20:10 -0600)]
turn off auto-tagging during Debian build

7 years agoaltosui: add tool-tips to the button box.
Keith Packard [Wed, 24 Aug 2011 01:56:07 +0000 (18:56 -0700)]
altosui: add tool-tips to the button box.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agolibaltos: fix Mac OS X function signatures
Keith Packard [Tue, 23 Aug 2011 20:29:23 +0000 (13:29 -0700)]
libaltos: fix Mac OS X function signatures

altos_list_start was declared to take a (int time) parameter for some reason.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Update mac os X library
Keith Packard [Tue, 23 Aug 2011 06:35:28 +0000 (23:35 -0700)]
altosui: Update mac os X library

This has been tested on 32-bit OS X and it works; dunno about
64-bit.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Reset all config data on 'reset' command
Keith Packard [Tue, 23 Aug 2011 06:34:55 +0000 (23:34 -0700)]
altosui: Reset all config data on 'reset' command

This lets you switch altimeters without getting any stale data.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Only 'show' config dialog once
Keith Packard [Tue, 23 Aug 2011 06:33:52 +0000 (23:33 -0700)]
altosui: Only 'show' config dialog once

Otherwise, the dialog jumps back to the initial position each time the
data is updated.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: fix 'magic' string to signal end of config data
Keith Packard [Tue, 23 Aug 2011 06:32:36 +0000 (23:32 -0700)]
altosui: fix 'magic' string to signal end of config data

Was using "done", which happens to be displayed by the 'l'
command. Switch to 'all finished' which doesn't appear in the config
data output. Yes, this method is a kludge.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Can't configure flight log max on TeleMini
Keith Packard [Tue, 23 Aug 2011 06:31:54 +0000 (23:31 -0700)]
altosui: Can't configure flight log max on TeleMini

It's only got space for one flight.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Make monitor-idle display correct 'On-board data logging' status
Keith Packard [Tue, 23 Aug 2011 06:12:30 +0000 (23:12 -0700)]
altosui: Make monitor-idle display correct 'On-board data logging' status

Count number of stored flights and see if there's space for another
one.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Add --summary option to dump flight stats to stdout
Keith Packard [Tue, 23 Aug 2011 01:25:34 +0000 (18:25 -0700)]
altosui: Add --summary option to dump flight stats to stdout

useful for quickly capturing sense of a flight.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Show filename in AltosGraph window
Keith Packard [Tue, 23 Aug 2011 01:24:54 +0000 (18:24 -0700)]
altosui: Show filename in AltosGraph window

Makes it easier to tell multiple windows apart

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Add date/time/serial/flight to flight stats tab
Keith Packard [Tue, 23 Aug 2011 01:23:41 +0000 (18:23 -0700)]
altosui: Add date/time/serial/flight to flight stats tab

And switch to using the AltosConvert units conversions functions.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Capture date/time/serial/flight in AltosFlightStats
Keith Packard [Tue, 23 Aug 2011 01:22:21 +0000 (18:22 -0700)]
altosui: Capture date/time/serial/flight in AltosFlightStats

Time is the time when boost was detected.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Add a few simple unit conversions
Keith Packard [Tue, 23 Aug 2011 01:21:35 +0000 (18:21 -0700)]
altosui: Add a few simple unit conversions

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agodoc: Add Installation Recommendations chapter
Keith Packard [Tue, 23 Aug 2011 00:18:02 +0000 (17:18 -0700)]
doc: Add Installation Recommendations chapter

Document installation suggestions, including mounting, RFI, antenna
issues and ground testing.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agodoc: Add note about telemetry disable mode to 1.0 release notes
Keith Packard [Tue, 23 Aug 2011 00:17:43 +0000 (17:17 -0700)]
doc: Add note about telemetry disable mode to 1.0 release notes

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Attempt to make both 32- and 64-bit windows DLLs
Keith Packard [Mon, 22 Aug 2011 05:52:45 +0000 (22:52 -0700)]
altosui: Attempt to make both 32- and 64-bit windows DLLs

We'll see if they work...

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui/windows: Fix a bunch of windows compiler warnings.
Keith Packard [Mon, 22 Aug 2011 05:12:53 +0000 (22:12 -0700)]
altosui/windows: Fix a bunch of windows compiler warnings.

Some of these may have actually been serious -- a write length was
getting stored in a signed char...

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos-fat/windows: Check and install Java 1.6 as needed
Keith Packard [Mon, 22 Aug 2011 05:12:04 +0000 (22:12 -0700)]
altos-fat/windows: Check and install Java 1.6 as needed

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Mon, 22 Aug 2011 22:08:55 +0000 (16:08 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

7 years agoaltosui: Clean up command line processing. Add --graph
Keith Packard [Mon, 22 Aug 2011 02:18:54 +0000 (19:18 -0700)]
altosui: Clean up command line processing. Add --graph

Make the command line processing a bit less ad-hoc, track 'mode' of
processing and deal with all files on the command line.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos/altosui: Add ability to disable telemetry/rdf completely
Keith Packard [Fri, 19 Aug 2011 01:02:02 +0000 (18:02 -0700)]
altos/altosui: Add ability to disable telemetry/rdf completely

This turns off the telemetry system so that it never transmits telemetry
or RDF tones. In idle mode, it will still accept packet mode connections.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoBump version to 0.9.7
Keith Packard [Sat, 20 Aug 2011 18:35:55 +0000 (11:35 -0700)]
Bump version to 0.9.7

Bdale is flying 0.9.6 at chili blaster, make sure later firmware gets
a later version number.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Merge common config code in ao_config.c
Keith Packard [Sat, 20 Aug 2011 18:28:53 +0000 (11:28 -0700)]
altos: Merge common config code in ao_config.c

This shuffles code around in ao_config.c to share some common code
segments for starting and committing config changes.

This also stops printing out changes as they are made which aren't
needed by the UI code.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Disable 'max flight log' config when there are stored flights
Keith Packard [Sat, 20 Aug 2011 18:19:57 +0000 (11:19 -0700)]
altosui: Disable 'max flight log' config when there are stored flights

When flights are stored in flash, the maximum flight log value cannot
be changed as the flight data might need to be moved around in
memory. Check for this case by looking for stored flights and
disabling the combo box when storage is not empty.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: remove debug printf in pad pane
Keith Packard [Sat, 20 Aug 2011 17:43:28 +0000 (10:43 -0700)]
altosui: remove debug printf in pad pane

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoupdate changelogs for Debian build
Bdale Garbee [Sat, 20 Aug 2011 15:28:04 +0000 (09:28 -0600)]
update changelogs for Debian build

7 years agoupdate changelogs for Debian build
Bdale Garbee [Sat, 20 Aug 2011 15:24:29 +0000 (09:24 -0600)]
update changelogs for Debian build

7 years agoupdate changelogs for Debian build debian/0.9.6.0
Bdale Garbee [Sat, 20 Aug 2011 04:47:50 +0000 (22:47 -0600)]
update changelogs for Debian build

7 years agoaltosui: Add 'On-board Data Logging' indicator to pad tab
Keith Packard [Mon, 15 Aug 2011 04:11:41 +0000 (21:11 -0700)]
altosui: Add 'On-board Data Logging' indicator to pad tab

This shows whether the on-board data memory is full, or is ready to
record the flight. This is indicated in the telemetry stream by a
flight number of '0'.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Ancient log files used 'apogee' for 'coast' state
Keith Packard [Mon, 15 Aug 2011 04:09:42 +0000 (21:09 -0700)]
altosui: Ancient log files used 'apogee' for 'coast' state

2009-07-18-serial-004-flight-000 says 'apogee' for the apogee-detect
phase of the flight; map this to coast so that this flight replays
correctly (although the log terminates at apogee...)

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Lost change that reported flight 0 when log memory was full
Keith Packard [Mon, 15 Aug 2011 02:19:50 +0000 (19:19 -0700)]
altos: Lost change that reported flight 0 when log memory was full

commit 52ac83fedbfd380d14d4df2e79992bbdfba3552a added coded to check
for a full flight log and complain with a special tone.

It also reported flight 0 over telemetry, and that part of the patch
got lost when moving to the new telemetry format. This patch
resurrects that piece.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Respect storage limits in flight log max config 0.9.6.0
Keith Packard [Sun, 14 Aug 2011 07:00:54 +0000 (00:00 -0700)]
altosui: Respect storage limits in flight log max config

Compute the maximum flight log using the data returned from the 'f'
command (total storage and erase block size). Limit menu to choices
which fall within this limit, complain if the user asks for too big a value.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: don't set channel when using radio setting
Keith Packard [Sun, 14 Aug 2011 07:00:07 +0000 (00:00 -0700)]
altosui: don't set channel when using radio setting

altos now sets the radio back to channel 0 when the radio setting is
changed.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: use raw height while waiting for landing
Keith Packard [Sun, 14 Aug 2011 06:58:03 +0000 (23:58 -0700)]
altos: use raw height while waiting for landing

This avoids any noise introduced by the kalman filter, making landing
detection much more reliable. This patch also changes the interval to
10s so that the height bounds can be increased to 4m.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Reset radio channel to zero when using radio setting
Keith Packard [Sun, 14 Aug 2011 06:56:55 +0000 (23:56 -0700)]
altos: Reset radio channel to zero when using radio setting

Otherwise, it's hard to set the frequency over the radio link.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Correct AO_CONFIG_MINOR from 6 to 7
Keith Packard [Sun, 14 Aug 2011 06:56:06 +0000 (23:56 -0700)]
altos: Correct AO_CONFIG_MINOR from 6 to 7

Forgot to bump this when adding radio setting.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: AltosSerial.flush_input shouldn't discard Interrupted exceptions
Keith Packard [Sun, 14 Aug 2011 04:10:15 +0000 (21:10 -0700)]
altos: AltosSerial.flush_input shouldn't discard Interrupted exceptions

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>
7 years agoaltosui: Eliminate inter-chunk flush_input calls
Keith Packard [Sun, 14 Aug 2011 04:09:19 +0000 (21:09 -0700)]
altosui: Eliminate inter-chunk flush_input calls

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>
7 years agoaltosui: Devices with log-format can also delete flights
Keith Packard [Sun, 14 Aug 2011 04:05:46 +0000 (21:05 -0700)]
altosui: Devices with log-format can also delete flights

Any device with either flight-log-max or log-format can delete flights.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Add support for TeleScience eeprom download
Keith Packard [Sun, 14 Aug 2011 01:39:35 +0000 (18:39 -0700)]
altosui: Add support for TeleScience eeprom download

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>
7 years agoaltosui: Clean up eeprom parsing a bit
Keith Packard [Sun, 14 Aug 2011 01:36:18 +0000 (18:36 -0700)]
altosui: Clean up eeprom parsing a bit

Export basic parsing and checksum functions for shared use.
Create 'erased' function to check a chunk of eeprom data for data.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: wait 10s for companion to boot
Keith Packard [Sun, 14 Aug 2011 01:31:08 +0000 (18:31 -0700)]
altos: wait 10s for companion to boot

In case the companion is delayed while booting, retry the setup 10
times with a 1s delay between tries.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Send serial/flight to companion board
Keith Packard [Sun, 14 Aug 2011 01:30:00 +0000 (18:30 -0700)]
altos: Send serial/flight to companion board

Lets the companion log them for later matching with TeleMetrum log

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Send SPI message at flight state changes
Keith Packard [Sat, 13 Aug 2011 04:41:25 +0000 (21:41 -0700)]
altos: Send SPI message at flight state changes

Get the companion board starting its data logging as soon as possible
after boost starts.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Add companion support to the flight UI and CSV conversion
Keith Packard [Fri, 12 Aug 2011 21:58:34 +0000 (14:58 -0700)]
altosui: Add companion support to the flight UI and CSV conversion

Shows the companion data in a new tab. Also put companion data into
CSV file.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Check for companion init packet validity was busted
Keith Packard [Fri, 12 Aug 2011 13:29:13 +0000 (06:29 -0700)]
altos: Check for companion init packet validity was busted

Was using board_id == ~board_id instead of board_id ==
~board_id_inverse.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: add the 'L' command to show the status of a linked companion board
Keith Packard [Fri, 12 Aug 2011 12:42:05 +0000 (05:42 -0700)]
altos: add the 'L' command to show the status of a linked companion board

This prints out whether there is a board connected, along with the
various values fetched from it.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Make sure companion task exits cleanly when done
Keith Packard [Fri, 12 Aug 2011 12:41:15 +0000 (05:41 -0700)]
altos: Make sure companion task exits cleanly when done

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Put SPI in slower mode when talking to companion board
Keith Packard [Fri, 12 Aug 2011 12:38:16 +0000 (05:38 -0700)]
altos: Put SPI in slower mode when talking to companion board

The AVR CPU on the other side just can't go very fast. This reduces
the SPI clock by a factor of 16, just under 200kHz. As the companion
commands are reasonably short, this shouldn't have a huge effect on
overall SPI utilization.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Add SPI-based companion board support
Keith Packard [Sat, 9 Jul 2011 23:59:16 +0000 (16:59 -0700)]
altos: Add SPI-based companion board support

This sends current flight state information and retrieves companion
data to include in telemetry.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Don't try to use non-basestations for remote eeprom download
Keith Packard [Sun, 14 Aug 2011 01:38:38 +0000 (18:38 -0700)]
altos: Don't try to use non-basestations for remote eeprom download

Companion boards may also have eeprom data to fetch; don't try to use
them as a radio.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos/altosui: Report log format in the version command
Keith Packard [Sat, 13 Aug 2011 04:43:56 +0000 (21:43 -0700)]
altos/altosui: Report log format in the version command

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>