fw/altos
10 years agomore build deps for plotting lib
Bdale Garbee [Sun, 6 Sep 2009 23:48:10 +0000 (17:48 -0600)]
more build deps for plotting lib

10 years agoupdate changelogs for Debian build
Bdale Garbee [Sun, 6 Sep 2009 23:47:56 +0000 (17:47 -0600)]
update changelogs for Debian build

10 years agoupdate changelogs for Debian build
Bdale Garbee [Sun, 6 Sep 2009 23:46:39 +0000 (17:46 -0600)]
update changelogs for Debian build

10 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Sun, 6 Sep 2009 23:46:10 +0000 (17:46 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

10 years agoUse plplotd instead of plplotd-gnome2
Keith Packard [Sun, 6 Sep 2009 23:45:47 +0000 (16:45 -0700)]
Use plplotd instead of plplotd-gnome2

10 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Sun, 6 Sep 2009 23:34:08 +0000 (17:34 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

10 years agoAdd plots to ao-postflight using the plplot library
Keith Packard [Sun, 6 Sep 2009 23:24:35 +0000 (16:24 -0700)]
Add plots to ao-postflight using the plplot library

It's not perfect, but it generates .svg plot output.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoupdate changelogs for Debian build
Bdale Garbee [Sun, 6 Sep 2009 20:15:57 +0000 (14:15 -0600)]
update changelogs for Debian build

10 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Sun, 6 Sep 2009 20:15:53 +0000 (14:15 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

10 years agoDon't look at NULL strings (summary_name)
Keith Packard [Sun, 6 Sep 2009 20:15:10 +0000 (13:15 -0700)]
Don't look at NULL strings (summary_name)

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoUse pressure speed for drogue and beyond states. Fix differentiation time.
Keith Packard [Sun, 6 Sep 2009 20:08:54 +0000 (13:08 -0700)]
Use pressure speed for drogue and beyond states. Fix differentiation time.

Drogue state should always use pressure speeds.

Differentiation code was using centi-seconds instead of seconds.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoupdate changelogs for Debian build
Bdale Garbee [Sun, 6 Sep 2009 20:05:55 +0000 (14:05 -0600)]
update changelogs for Debian build

10 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Sun, 6 Sep 2009 20:05:51 +0000 (14:05 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

10 years agoInitialize summary_name and detail_name so stuff appears on stdout.
Keith Packard [Sun, 6 Sep 2009 20:04:31 +0000 (13:04 -0700)]
Initialize summary_name and detail_name so stuff appears on stdout.

Uninitialized variables lead to mysterious results.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoupdate changelogs for Debian build
Bdale Garbee [Sun, 6 Sep 2009 20:02:14 +0000 (14:02 -0600)]
update changelogs for Debian build

10 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Sun, 6 Sep 2009 20:02:09 +0000 (14:02 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

10 years agoAdd DSP code to filter data, allowing for integration/differentiation
Keith Packard [Sun, 6 Sep 2009 19:51:48 +0000 (12:51 -0700)]
Add DSP code to filter data, allowing for integration/differentiation

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>
10 years agoupdate changelogs for Debian build
Bdale Garbee [Sun, 6 Sep 2009 16:40:06 +0000 (10:40 -0600)]
update changelogs for Debian build

10 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Sun, 6 Sep 2009 16:39:23 +0000 (10:39 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

10 years agoHandle vageries of .telem files in ao-postflight
Keith Packard [Sun, 6 Sep 2009 05:45:49 +0000 (22:45 -0700)]
Handle vageries of .telem files in ao-postflight

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>
10 years agoAdd simple post-flight analysis tool (ao-postflight)
Keith Packard [Sun, 6 Sep 2009 05:03:31 +0000 (22:03 -0700)]
Add simple post-flight analysis tool (ao-postflight)

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>
10 years agoAdd ao-dumplog to capture flight log from command line
Keith Packard [Sat, 5 Sep 2009 07:29:26 +0000 (00:29 -0700)]
Add ao-dumplog to capture flight log from command line

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>
10 years agoAdd --device/-D support to the command line tools and manuals
Keith Packard [Fri, 4 Sep 2009 22:30:22 +0000 (15:30 -0700)]
Add --device/-D support to the command line tools and manuals

Use the new cc_usbdevs_find_by_arg function to locate suitable target
devices connected via USB.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoupdate changelogs for Debian build
Bdale Garbee [Fri, 4 Sep 2009 22:03:55 +0000 (16:03 -0600)]
update changelogs for Debian build

10 years ago'fix' ao-eeprom to read two blocks at once. Work around kernel bugs.
Keith Packard [Fri, 4 Sep 2009 22:01:32 +0000 (15:01 -0700)]
'fix' ao-eeprom to read two blocks at once. Work around kernel bugs.

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>
10 years agoAdd 'ao-list' utility to show attached AltOS devices
Keith Packard [Fri, 4 Sep 2009 21:23:02 +0000 (14:23 -0700)]
Add 'ao-list' utility to show attached AltOS devices

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoParse the USB serial number as an integer.
Keith Packard [Fri, 4 Sep 2009 21:21:19 +0000 (14:21 -0700)]
Parse the USB serial number as an integer.

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>
10 years agoMove usb scanning code to ao-tools library
Keith Packard [Fri, 4 Sep 2009 20:00:02 +0000 (13:00 -0700)]
Move usb scanning code to ao-tools library

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>
10 years agoSet all of the values to reset the radio for telemetry
Keith Packard [Fri, 4 Sep 2009 19:25:37 +0000 (12:25 -0700)]
Set all of the values to reset the radio for telemetry

Was sizeof(rdf_setup) instead of sizeof(telemetry_setup) when
resetting the radio back to telemetry data mode from rdf mode. With
the length value removed from the rdf config, these two arrays are no
longer the same length, and so the last config value was not set
leaving the radio sending garbage.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoMake RDF beacon only run on pad and after landing.
Keith Packard [Fri, 4 Sep 2009 18:46:55 +0000 (11:46 -0700)]
Make RDF beacon only run on pad and after landing.

It's pretty much impossible to RDF the rocket during flight, and it
interferes with the telemetry data stream. Leave it enabled on the pad
so that radios can be tested, and then re-enable it once the rocket
has landed.

This patch also turns the rdf 'on' time into a parameter so it can be
changed, and then sets that parameter to 500ms, once every 5 seconds.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoAdd back the RDF tone generator
Keith Packard [Fri, 4 Sep 2009 18:45:52 +0000 (11:45 -0700)]
Add back the RDF tone generator

Tracking the rocket on the ground may be easier using tones than using
the digital data stream, so we'll try that and see what we think.

This reverts commit 3a3bfd471a868d546d83cdc431b53c8f5208edb9.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoupdate changelogs for Debian build
Bdale Garbee [Thu, 3 Sep 2009 05:18:15 +0000 (23:18 -0600)]
update changelogs for Debian build

10 years agoMerge commit 'origin/master'
Bdale Garbee [Thu, 3 Sep 2009 05:17:37 +0000 (23:17 -0600)]
Merge commit 'origin/master'

10 years agoRemove bit-banging debug support from TM board builds
Keith Packard [Thu, 3 Sep 2009 05:01:52 +0000 (22:01 -0700)]
Remove bit-banging debug support from TM board builds

Our current TM boards don't have the wires to do bit-banging to
another cc1111 board, so it doesn't make sense to fill up their flash
with useless code (and the 'help' text with useless commands). Leave
this to the TI board until we have boards that can serve as debug dongles.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoMake the ao_log_record structures 8 bytes again.
Keith Packard [Thu, 3 Sep 2009 05:00:37 +0000 (22:00 -0700)]
Make the ao_log_record structures 8 bytes again.

When the GPS signal strength data was added, the structure was
accidentally extended to 9 bytes, making all log records 9 bytes
long. While not a serious problem, this left log records spanning
across eeprom block boundaries, which seems like a bad plan.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoMake eeprom reads and writes across block boundary work
Keith Packard [Thu, 3 Sep 2009 04:57:54 +0000 (21:57 -0700)]
Make eeprom reads and writes across block boundary work

Reading and writing across the block boundary was not stepping the
eeprom position after the partial i/o operation at the end of the
first block. This meant that the operation would re-use the end of the
previous block, either re-reading or re-writing it.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoupdate changelogs for Debian build
Bdale Garbee [Mon, 31 Aug 2009 22:48:03 +0000 (16:48 -0600)]
update changelogs for Debian build

10 years agopixmap file should not be executable
Bdale Garbee [Mon, 31 Aug 2009 22:47:44 +0000 (16:47 -0600)]
pixmap file should not be executable

10 years agoupdate changelogs for Debian build
Bdale Garbee [Mon, 31 Aug 2009 22:42:55 +0000 (16:42 -0600)]
update changelogs for Debian build

10 years agodeliver an icon for the Debian menu system
Bdale Garbee [Mon, 31 Aug 2009 22:42:37 +0000 (16:42 -0600)]
deliver an icon for the Debian menu system

10 years agoupdate changelogs for Debian build
Bdale Garbee [Mon, 31 Aug 2009 22:26:00 +0000 (16:26 -0600)]
update changelogs for Debian build

10 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Mon, 31 Aug 2009 22:25:32 +0000 (16:25 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

10 years agoEnable GPS degraded mode, set 10 sec degraded timeout.
Keith Packard [Sat, 22 Aug 2009 20:38:56 +0000 (13:38 -0700)]
Enable GPS degraded mode, set 10 sec degraded timeout.

No reason not to let the GPS report solutions whenever it likes, let's
see how this works.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoTurn off GPS tracking data when not present in data stream
Keith Packard [Fri, 21 Aug 2009 17:47:46 +0000 (10:47 -0700)]
Turn off GPS tracking data when not present in data stream

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoupdate changelogs for Debian build
Bdale Garbee [Wed, 19 Aug 2009 08:21:23 +0000 (02:21 -0600)]
update changelogs for Debian build

10 years agofix location for delivery of sources.list fragment
Bdale Garbee [Wed, 19 Aug 2009 08:21:06 +0000 (02:21 -0600)]
fix location for delivery of sources.list fragment

10 years agoupdate changelogs for Debian build
Bdale Garbee [Wed, 19 Aug 2009 08:11:11 +0000 (02:11 -0600)]
update changelogs for Debian build

10 years agooops, aoview is now ao-view!
Bdale Garbee [Wed, 19 Aug 2009 08:11:00 +0000 (02:11 -0600)]
oops, aoview is now ao-view!

10 years agoupdate changelogs for Debian build
Bdale Garbee [Wed, 19 Aug 2009 08:07:16 +0000 (02:07 -0600)]
update changelogs for Debian build

10 years agoenable support for Debian menus
Bdale Garbee [Wed, 19 Aug 2009 08:06:49 +0000 (02:06 -0600)]
enable support for Debian menus

10 years agoupdate changelogs for Debian build
Bdale Garbee [Wed, 19 Aug 2009 06:52:57 +0000 (00:52 -0600)]
update changelogs for Debian build

10 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos 0.5
Bdale Garbee [Wed, 19 Aug 2009 06:49:24 +0000 (00:49 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

10 years agoUpdate ao-view to add GPS satellite tracking data
Keith Packard [Wed, 19 Aug 2009 06:38:16 +0000 (23:38 -0700)]
Update ao-view to add GPS satellite tracking data

This adds another column to the display to hold per-satellite GPS
tracking data and a count of the visible and locked sats.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoHandle GPS satellite tracking data
Keith Packard [Wed, 19 Aug 2009 05:35:15 +0000 (22:35 -0700)]
Handle GPS satellite tracking data

SiRF message #4 includes signal strength and GPS engine state for each
of the satellites being tracked. This data is now parsed and sent to
eeprom and the radio.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoupdate changelogs for Debian build
Bdale Garbee [Wed, 19 Aug 2009 03:57:01 +0000 (21:57 -0600)]
update changelogs for Debian build

10 years agoadd support for building Debian package
Bdale Garbee [Wed, 19 Aug 2009 03:49:39 +0000 (21:49 -0600)]
add support for building Debian package

10 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Wed, 19 Aug 2009 00:56:09 +0000 (18:56 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

10 years agoAdd ao-ejection.1 man page
Keith Packard [Wed, 19 Aug 2009 00:55:22 +0000 (17:55 -0700)]
Add ao-ejection.1 man page

Document the input requirements and output format

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Wed, 19 Aug 2009 00:36:03 +0000 (18:36 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

10 years agoCreate ChangeLog from git log
Keith Packard [Wed, 19 Aug 2009 00:30:43 +0000 (17:30 -0700)]
Create ChangeLog from git log

10 years agoFix ao-bitbang examples to not have . in the first column
Keith Packard [Wed, 19 Aug 2009 00:29:29 +0000 (17:29 -0700)]
Fix ao-bitbang examples to not have . in the first column

10 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Wed, 19 Aug 2009 00:09:38 +0000 (18:09 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

Conflicts:
ao-tools/ao-bitbang/Makefile.am
ao-tools/ao-eeprom/Makefile.am
ao-tools/ao-load/Makefile.am
ao-tools/ao-load/ao-load.c
ao-tools/ao-rawload/Makefile.am

10 years agoAdd manual pages for remaining commands.
Keith Packard [Tue, 18 Aug 2009 22:21:57 +0000 (15:21 -0700)]
Add manual pages for remaining commands.

Manuals written for ao-bitbang, ao-eeprom, ao-load, ao-rawload and
ao-view.

Manual for ao-dbg updated to reflect program name change.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoUse --tty/-T on command line to specify target device
Keith Packard [Tue, 18 Aug 2009 19:19:31 +0000 (12:19 -0700)]
Use --tty/-T on command line to specify target device

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>
10 years agoRename tools to ao-<foo>
Keith Packard [Tue, 18 Aug 2009 19:40:24 +0000 (12:40 -0700)]
Rename tools to ao-<foo>

Use a consistent prefix to make it easier to remember which programs
belong to this package

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agore-add debugger sources
Keith Packard [Tue, 18 Aug 2009 20:36:54 +0000 (13:36 -0700)]
re-add debugger sources

10 years agoStart working on using getopt for the tty name
Keith Packard [Tue, 18 Aug 2009 19:19:31 +0000 (12:19 -0700)]
Start working on using getopt for the tty name

10 years agoRename tools to ao-<foo>
Keith Packard [Tue, 18 Aug 2009 19:40:24 +0000 (12:40 -0700)]
Rename tools to ao-<foo>

Use a consistent prefix to make it easier to remember which programs
belong to this package

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoRemove unused cctools code paths for old libusb and cp2103 ioctls.
Keith Packard [Tue, 18 Aug 2009 18:34:28 +0000 (11:34 -0700)]
Remove unused cctools code paths for old libusb and cp2103 ioctls.

Communication with the CP2103 board has gone through three revisions,
first using ioctls supported by the CP2103 kernel driver, then using
the old synchronous usb library and now using the newer libusb
asynchronous interface. There's no reason to keep shipping the old
stale code now that the new stuff works reliably.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agotest for sdcc, nickle and readline
Keith Packard [Tue, 18 Aug 2009 03:47:31 +0000 (20:47 -0700)]
test for sdcc, nickle and readline

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoSync USB data after each memory write command
Keith Packard [Mon, 10 Aug 2009 03:43:10 +0000 (20:43 -0700)]
Sync USB data after each memory write command

This makes sure we flush the USB link often enough for the other end to keep
up.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoHandle partial ALSA PCM writes
Keith Packard [Sun, 9 Aug 2009 23:08:07 +0000 (16:08 -0700)]
Handle partial ALSA PCM writes

The ALSA spec says that snd_pcm_writei will not return a partial write, but
at least on the OLPC, that's not true. Deal with this.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoCheck more alsa return statuses
Keith Packard [Sun, 9 Aug 2009 22:55:19 +0000 (15:55 -0700)]
Check more alsa return statuses

10 years agoDon't report distance to rocket without valid GPS
Keith Packard [Sat, 18 Jul 2009 08:47:34 +0000 (01:47 -0700)]
Don't report distance to rocket without valid GPS

When there's no valid GPS data, don't try to report the distance and bearing
to the rocket after landing.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoAdd B command to set serial baud rate
Keith Packard [Sat, 18 Jul 2009 08:05:33 +0000 (01:05 -0700)]
Add B command to set serial baud rate

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoGet rid of spaces after minus sign in climb value
Keith Packard [Sat, 18 Jul 2009 08:05:13 +0000 (01:05 -0700)]
Get rid of spaces after minus sign in climb value

10 years agoSwitch to 57600 baud for GPS data
Keith Packard [Sat, 18 Jul 2009 08:04:39 +0000 (01:04 -0700)]
Switch to 57600 baud for GPS data

10 years agoDrain serial port before changing speed
Keith Packard [Sat, 18 Jul 2009 08:04:17 +0000 (01:04 -0700)]
Drain serial port before changing speed

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoDisplay last known GPS coord while unlocked
Keith Packard [Sat, 18 Jul 2009 07:44:42 +0000 (00:44 -0700)]
Display last known GPS coord while unlocked

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agouse g_source_destroy instead of free on serial object
Keith Packard [Sat, 18 Jul 2009 07:44:01 +0000 (00:44 -0700)]
use g_source_destroy instead of free on serial object

10 years agoTrim aoview_serial_set_callback args down to just port and callback
Keith Packard [Sat, 18 Jul 2009 07:43:22 +0000 (00:43 -0700)]
Trim aoview_serial_set_callback args down to just port and callback

10 years agoReset GPS at boot time
Keith Packard [Sat, 18 Jul 2009 05:11:03 +0000 (22:11 -0700)]
Reset GPS at boot time

10 years agoFix up serial debug output
Keith Packard [Sat, 18 Jul 2009 05:10:43 +0000 (22:10 -0700)]
Fix up serial debug output

10 years agoAllow the GPS port to run at 4800 baud if desired
Keith Packard [Sat, 18 Jul 2009 04:34:13 +0000 (21:34 -0700)]
Allow the GPS port to run at 4800 baud if desired

10 years agoInitialize the GPS serial protocol state
Keith Packard [Sat, 18 Jul 2009 04:33:53 +0000 (21:33 -0700)]
Initialize the GPS serial protocol state

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoUse uint8_t for comparisons to avoid int conversions
Keith Packard [Sat, 18 Jul 2009 04:33:18 +0000 (21:33 -0700)]
Use uint8_t for comparisons to avoid int conversions

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoAdd AO_GPS_RUNNING state.
Keith Packard [Sat, 18 Jul 2009 04:30:53 +0000 (21:30 -0700)]
Add AO_GPS_RUNNING state.

This tracks whether the GPS receiver has ever sent a valid report to the
flight computer, allowing the user to tell whether the GPS receiver is
working at all.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoAdd M command to monitor serial bytes
Keith Packard [Sat, 18 Jul 2009 04:25:35 +0000 (21:25 -0700)]
Add M command to monitor serial bytes

10 years agoSupport the not-connected GPS state
Keith Packard [Sat, 18 Jul 2009 04:24:45 +0000 (21:24 -0700)]
Support the not-connected GPS state

10 years agoUse 57600 baud for GPS. Clean up gps init.
Keith Packard [Sat, 18 Jul 2009 02:23:10 +0000 (19:23 -0700)]
Use 57600 baud for GPS. Clean up gps init.

Assume GPS is either in 4800 NMEA or 57600 SiRF mode, send just the sequence
to get from 4800 NMEA to 5760 SiRF.

Also, eliminate threads from the gps test program.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoTry harder to get the GPS receiver serial link sync'd up.
Keith Packard [Sat, 18 Jul 2009 00:09:20 +0000 (17:09 -0700)]
Try harder to get the GPS receiver serial link sync'd up.

We cannot assume that the GPS receiver is in any particular state when it
boots, so we try to send the serial configuration at several rates and hope
that it eventually sees something that it likes.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoRolling average for pad location. Say 'GPS ready'.
Keith Packard [Sat, 18 Jul 2009 00:06:18 +0000 (17:06 -0700)]
Rolling average for pad location. Say 'GPS ready'.

Use a rolling average for the pad location, instead of just averaging all
positions. This filters out old (presumably less accurate) values eventually.

When enough GPS samples have been acquired, say 'GPS ready'.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoSplit GPS data into a separate column
Keith Packard [Fri, 17 Jul 2009 23:22:51 +0000 (16:22 -0700)]
Split GPS data into a separate column

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoFix up SiRF parsing and test code so that it actually works
Keith Packard [Fri, 17 Jul 2009 23:03:35 +0000 (16:03 -0700)]
Fix up SiRF parsing and test code so that it actually works

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoAdd host-side gps protocol testing program
Keith Packard [Fri, 17 Jul 2009 20:58:14 +0000 (13:58 -0700)]
Add host-side gps protocol testing program

11 years agoHook aoview directly to alsa
Keith Packard [Sat, 11 Jul 2009 07:56:13 +0000 (00:56 -0700)]
Hook aoview directly to alsa

This skips the flite internal audio stuff which opened and closed the audio
device for each phrase. This caused the first part of some phrases to be
missed when using an external audio device.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoShow speed. Format numbers. Timeout and report final status.
Keith Packard [Fri, 10 Jul 2009 03:55:10 +0000 (20:55 -0700)]
Show speed. Format numbers. Timeout and report final status.

The speed value is now shown in the top label bar. Ascent shows
accelerometer-derived data, otherwise it's baro derived.

All of the numbers displayed are now given sensible printf formats so they
don't contain way too many digits.

Instead of doing periodic reporting based on flight tick count, data is
reported every 10 seconds based on wall time. After landing, or when no data
have been received for a while, final flight information is spoken.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoDont smash aoview_monitor_parse input buffer
Keith Packard [Sun, 5 Jul 2009 15:35:28 +0000 (08:35 -0700)]
Dont smash aoview_monitor_parse input buffer

11 years agoIntegrate flite into aoview directly. Fix great circle computation.
Keith Packard [Tue, 30 Jun 2009 22:25:52 +0000 (15:25 -0700)]
Integrate flite into aoview directly. Fix great circle computation.

Use a separate thread for flite rather than a separate program.
Save voice state to gconf.
Add filters for replay file selection

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoMake window taller
Keith Packard [Tue, 30 Jun 2009 22:24:53 +0000 (15:24 -0700)]
Make window taller