fw/altos
14 years agodeliver sources.list.d fragment so updates are closer to automatic
Bdale Garbee [Wed, 19 Aug 2009 02:47:41 +0000 (20:47 -0600)]
deliver sources.list.d fragment so updates are closer to automatic

14 years agoupdate changelogs for Debian build
Bdale Garbee [Wed, 19 Aug 2009 02:17:31 +0000 (20:17 -0600)]
update changelogs for Debian build

14 years agowe need ChangeLog in the repo for git-buildpackage to work right
Bdale Garbee [Wed, 19 Aug 2009 02:17:08 +0000 (20:17 -0600)]
we need ChangeLog in the repo for git-buildpackage to work right

14 years agoupdate Debian changelog for build
Bdale Garbee [Wed, 19 Aug 2009 02:12:44 +0000 (20:12 -0600)]
update Debian changelog for build

14 years agoupdate Debian changelog for build
Bdale Garbee [Wed, 19 Aug 2009 02:12:22 +0000 (20:12 -0600)]
update Debian changelog for build

14 years agomove the ChangeLog creation to the prebuild target
Bdale Garbee [Wed, 19 Aug 2009 02:08:10 +0000 (20:08 -0600)]
move the ChangeLog creation to the prebuild target

14 years agoupdate Debian changelog for build
Bdale Garbee [Wed, 19 Aug 2009 00:57:56 +0000 (18:57 -0600)]
update Debian changelog for build

14 years agoupdate Debian changelog for build
Bdale Garbee [Wed, 19 Aug 2009 00:56:20 +0000 (18:56 -0600)]
update Debian changelog for build

14 years agoMerge branch 'master' into debian
Bdale Garbee [Wed, 19 Aug 2009 00:56:16 +0000 (18:56 -0600)]
Merge branch 'master' into debian

14 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

14 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>
14 years agoMerge branch 'master' into debian
Bdale Garbee [Wed, 19 Aug 2009 00:37:10 +0000 (18:37 -0600)]
Merge branch 'master' into debian

14 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

14 years agodon't ship a zero-length ChangeLog, when it's easy to make one...
Bdale Garbee [Wed, 19 Aug 2009 00:33:53 +0000 (18:33 -0600)]
don't ship a zero-length ChangeLog, when it's easy to make one...

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

14 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

14 years agoupdate Debian changelog for build
Bdale Garbee [Wed, 19 Aug 2009 00:24:50 +0000 (18:24 -0600)]
update Debian changelog for build

14 years agofixing things lintian points out
Bdale Garbee [Wed, 19 Aug 2009 00:24:22 +0000 (18:24 -0600)]
fixing things lintian points out

14 years agoupdate Debian changelog for build
Bdale Garbee [Wed, 19 Aug 2009 00:14:02 +0000 (18:14 -0600)]
update Debian changelog for build

14 years agofix merge conflict
Bdale Garbee [Wed, 19 Aug 2009 00:13:48 +0000 (18:13 -0600)]
fix merge conflict

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

14 years agoMerge branch 'master' into debian
Bdale Garbee [Wed, 19 Aug 2009 00:09:59 +0000 (18:09 -0600)]
Merge branch 'master' into debian

14 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

14 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>
14 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>
14 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>
14 years agoupdate Debian changelog for build
Bdale Garbee [Tue, 18 Aug 2009 20:40:58 +0000 (14:40 -0600)]
update Debian changelog for build

14 years agoMerge branch 'master' into debian
Bdale Garbee [Tue, 18 Aug 2009 20:40:54 +0000 (14:40 -0600)]
Merge branch 'master' into debian

14 years agore-add debugger sources
Keith Packard [Tue, 18 Aug 2009 20:36:54 +0000 (13:36 -0700)]
re-add debugger sources

14 years agoupdate Debian changelog for build
Bdale Garbee [Tue, 18 Aug 2009 20:03:48 +0000 (14:03 -0600)]
update Debian changelog for build

14 years agoupdate Debian changelog for build
Bdale Garbee [Tue, 18 Aug 2009 20:03:41 +0000 (14:03 -0600)]
update Debian changelog for build

14 years agoMerge branch 'master' into debian
Bdale Garbee [Tue, 18 Aug 2009 20:03:16 +0000 (14:03 -0600)]
Merge branch 'master' into debian

14 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

14 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>
14 years agoupdate Debian changelog for build
Bdale Garbee [Tue, 18 Aug 2009 18:59:36 +0000 (12:59 -0600)]
update Debian changelog for build

14 years agoupdate Debian changelog for build
Bdale Garbee [Tue, 18 Aug 2009 18:59:28 +0000 (12:59 -0600)]
update Debian changelog for build

14 years agodeliver firmware files too
Bdale Garbee [Tue, 18 Aug 2009 18:59:15 +0000 (12:59 -0600)]
deliver firmware files too

14 years agoupdate Debian changelog for build
Bdale Garbee [Tue, 18 Aug 2009 18:52:39 +0000 (12:52 -0600)]
update Debian changelog for build

14 years agooops, need to force prefix to /usr for Debian policy compliance
Bdale Garbee [Tue, 18 Aug 2009 18:49:05 +0000 (12:49 -0600)]
oops, need to force prefix to /usr for Debian policy compliance

14 years agoupdate Debian changelog for build
Bdale Garbee [Tue, 18 Aug 2009 18:39:41 +0000 (12:39 -0600)]
update Debian changelog for build

14 years agoMerge branch 'master' into debian
Bdale Garbee [Tue, 18 Aug 2009 18:39:17 +0000 (12:39 -0600)]
Merge branch 'master' into debian

14 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>
14 years agoupdate Debian changelog for build
Bdale Garbee [Tue, 18 Aug 2009 18:16:23 +0000 (12:16 -0600)]
update Debian changelog for build

14 years agoupdate Debian changelog for build
Bdale Garbee [Tue, 18 Aug 2009 18:06:03 +0000 (12:06 -0600)]
update Debian changelog for build

14 years agofix the changelog version extraction to work for a native version
Bdale Garbee [Tue, 18 Aug 2009 18:05:46 +0000 (12:05 -0600)]
fix the changelog version extraction to work for a native version

14 years agoupdate Debian changelog for build
Bdale Garbee [Tue, 18 Aug 2009 17:58:29 +0000 (11:58 -0600)]
update Debian changelog for build

14 years agoupdate Debian changelog for build
Bdale Garbee [Tue, 18 Aug 2009 17:58:18 +0000 (11:58 -0600)]
update Debian changelog for build

14 years agooops, fix syntax
Bdale Garbee [Tue, 18 Aug 2009 17:58:11 +0000 (11:58 -0600)]
oops, fix syntax

14 years agoupdate Debian changelog for build
Bdale Garbee [Tue, 18 Aug 2009 17:57:52 +0000 (11:57 -0600)]
update Debian changelog for build

14 years agocall debian/rules prebuild before creating source tarball
Bdale Garbee [Tue, 18 Aug 2009 17:57:00 +0000 (11:57 -0600)]
call debian/rules prebuild before creating source tarball

14 years agoupdate Debian changelog for build
Bdale Garbee [Tue, 18 Aug 2009 17:54:11 +0000 (11:54 -0600)]
update Debian changelog for build

14 years agoadd a prebuild target for use from git-buildpackage clean hook, that creates
Bdale Garbee [Tue, 18 Aug 2009 17:53:31 +0000 (11:53 -0600)]
add a prebuild target for use from git-buildpackage clean hook, that creates
a new debian/changelog entry based on git-describe output

14 years agoupdate Debian changelog for build
Bdale Garbee [Tue, 18 Aug 2009 17:52:46 +0000 (11:52 -0600)]
update Debian changelog for build

14 years agoallow pass-in of VERSION, only call git describe if VERSION not set yet
Bdale Garbee [Tue, 18 Aug 2009 06:08:30 +0000 (00:08 -0600)]
allow pass-in of VERSION, only call git describe if VERSION not set yet

14 years agosee if this works
Bdale Garbee [Tue, 18 Aug 2009 06:06:24 +0000 (00:06 -0600)]
see if this works

14 years agoundo the post-commit hook stuff
Bdale Garbee [Tue, 18 Aug 2009 06:03:27 +0000 (00:03 -0600)]
undo the post-commit hook stuff

14 years agotweak makefile to use version file instead of calling git describe directly
Bdale Garbee [Tue, 18 Aug 2009 05:55:47 +0000 (23:55 -0600)]
tweak makefile to use version file instead of calling git describe directly

14 years agoadd version to the list of ignored files
Bdale Garbee [Tue, 18 Aug 2009 05:53:35 +0000 (23:53 -0600)]
add version to the list of ignored files

14 years agoadd build dependencies
Bdale Garbee [Tue, 18 Aug 2009 05:39:35 +0000 (23:39 -0600)]
add build dependencies

14 years agobuild as a Debian specific package since we have no "upstream"
Bdale Garbee [Tue, 18 Aug 2009 05:32:49 +0000 (23:32 -0600)]
build as a Debian specific package since we have no "upstream"

14 years agoadd a config file for git-buildpackage
Bdale Garbee [Tue, 18 Aug 2009 05:31:52 +0000 (23:31 -0600)]
add a config file for git-buildpackage

14 years agodon't fail to clean if Makefile not present
Bdale Garbee [Tue, 18 Aug 2009 05:31:20 +0000 (23:31 -0600)]
don't fail to clean if Makefile not present

14 years agopackage for Debian
Bdale Garbee [Tue, 18 Aug 2009 05:30:20 +0000 (23:30 -0600)]
package for Debian

14 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>
14 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>
14 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>
14 years agoCheck more alsa return statuses
Keith Packard [Sun, 9 Aug 2009 22:55:19 +0000 (15:55 -0700)]
Check more alsa return statuses

14 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>
14 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>
14 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

14 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

14 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>
14 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>
14 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

14 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

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

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

14 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

14 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>
14 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>
14 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>
14 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

14 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

14 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>
14 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>
14 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>
14 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>
14 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>
14 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

14 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>
14 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>
14 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

14 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>
14 years agoMake window taller
Keith Packard [Tue, 30 Jun 2009 22:24:53 +0000 (15:24 -0700)]
Make window taller

14 years agoUse 16kHz voice
Keith Packard [Tue, 30 Jun 2009 22:24:31 +0000 (15:24 -0700)]
Use 16kHz voice

14 years agoAdd telem replay and larger labels
Keith Packard [Tue, 30 Jun 2009 18:58:30 +0000 (11:58 -0700)]
Add telem replay and larger labels

Replays telemetry files in real time
Shows height/state/rssi in big values at the top.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoUpdate aoview/.gitignore
Keith Packard [Tue, 30 Jun 2009 06:06:47 +0000 (23:06 -0700)]
Update aoview/.gitignore

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoUse flite to announce flight state
Keith Packard [Tue, 30 Jun 2009 06:05:27 +0000 (23:05 -0700)]
Use flite to announce flight state

This uses the flite voice synthesis library from festival to announce
altitude and speed information during the rocket flight.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoAdd GPS speed and error data to telemetry and aoview
Keith Packard [Tue, 30 Jun 2009 06:03:58 +0000 (23:03 -0700)]
Add GPS speed and error data to telemetry and aoview

Having switched to the SiRF binary GPS format, the velocity and error data
can now be displayed.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoConvert GPS to SiRF binary protocol.
Keith Packard [Mon, 29 Jun 2009 20:54:00 +0000 (13:54 -0700)]
Convert GPS to SiRF binary protocol.

This switches the GPS unit from NMEA to SiRF protocol at startup and then
parses the binary data. The binary data uses a different encoding of lat/lon
than the NMEA strings, and so the telemetry and eeprom data formats change
with this switch.

Signed-off-by: Keith Packard <keithp@keithp.com>