fw/altos
14 years agoupdate changelogs for Debian build debian/0.6+109+geda5e11
Bdale Garbee [Sat, 6 Mar 2010 03:11:11 +0000 (19:11 -0800)]
update changelogs for Debian build

14 years agoupdate changelogs for Debian build debian/0.6+108+g6e61170
Bdale Garbee [Fri, 5 Mar 2010 00:33:39 +0000 (17:33 -0700)]
update changelogs for Debian build

14 years agoNeed to duplicate new altitude conversion code in aoview.
Keith Packard [Mon, 1 Mar 2010 02:24:46 +0000 (18:24 -0800)]
Need to duplicate new altitude conversion code in aoview.

Altitude conversion is now done with a smaller table and interpolation
instead of a giant table.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoupdate changelogs for Debian build debian/0.6+106+ga1478f6
Bdale Garbee [Sun, 28 Feb 2010 00:36:13 +0000 (17:36 -0700)]
update changelogs for Debian build

14 years agoMerge remote branch 'origin/master'
Keith Packard [Sat, 27 Feb 2010 23:19:33 +0000 (15:19 -0800)]
Merge remote branch 'origin/master'

14 years agoAdd .gitignore for ao-bringup
Keith Packard [Sat, 27 Feb 2010 23:18:47 +0000 (15:18 -0800)]
Add .gitignore for ao-bringup

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoFix up LED colors for each product.
Keith Packard [Sat, 27 Feb 2010 23:14:04 +0000 (15:14 -0800)]
Fix up LED colors for each product.

Different products assign different color LEDs to the two available
LED drivers (P1_0, P1_1). Make the LED color pin assignments
per-product (in ao_pins.h), then deal with not always having a green LED.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoEliminate deadlock when writing config from radio link
Keith Packard [Sat, 27 Feb 2010 23:11:44 +0000 (15:11 -0800)]
Eliminate deadlock when writing config from radio link

Writing the 'Saved\r\n' string would fill the packet buffer and cause
a flush to occur, which would need to wait for the radio link to
receive and transmit a packet. The radio link always re-fetches the
radio channel number when lighting up the radio, so it need to look in
the config space. If the config mutex was held by the config writing
process while the radio was trying to get the channel number, then
we'd get a deadlock.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoLeave .ihx files in the build directory too - easier to debug that way
Keith Packard [Sat, 27 Feb 2010 23:10:16 +0000 (15:10 -0800)]
Leave .ihx files in the build directory too - easier to debug that way

sdcdb wants the .ihx and .cdb files in the same directory, so humor it
by copying the .ihx files to the src directory instead of moving them.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agocreate a turn on script for lighting up TeleDongle v0.2 boards
Bdale Garbee [Fri, 26 Feb 2010 22:21:12 +0000 (15:21 -0700)]
create a turn on script for lighting up TeleDongle v0.2 boards

14 years agoAdd LED test
Keith Packard [Fri, 26 Feb 2010 18:33:13 +0000 (10:33 -0800)]
Add LED test

14 years agoFix and document the ao-rawload --run flag
Keith Packard [Fri, 26 Feb 2010 00:40:13 +0000 (16:40 -0800)]
Fix and document the ao-rawload --run flag

This allows ram-based programs to be loaded and executed easily.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoAllow product names to have suffixes (like board revisions)
Keith Packard [Fri, 26 Feb 2010 00:33:34 +0000 (16:33 -0800)]
Allow product names to have suffixes (like board revisions)

When looking for a board by product name, just look at the prefix of
the name instead of requiring an exact match. This will allow products
to have board version suffixes.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoAdd ao_radio_xmit to help test boards without flashing them.
Keith Packard [Fri, 26 Feb 2010 00:32:57 +0000 (16:32 -0800)]
Add ao_radio_xmit to help test boards without flashing them.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoupdate changelogs for Debian build debian/0.6+95+g2f45953
Bdale Garbee [Thu, 25 Feb 2010 00:30:23 +0000 (17:30 -0700)]
update changelogs for Debian build

14 years agoun-muck changelog
Bdale Garbee [Thu, 25 Feb 2010 00:29:47 +0000 (17:29 -0700)]
un-muck changelog

14 years agodebugging
Bdale Garbee [Thu, 25 Feb 2010 00:27:51 +0000 (17:27 -0700)]
debugging

14 years agoconditionalize use of git on executability of /usr/bin/git binary
Bdale Garbee [Thu, 25 Feb 2010 00:25:28 +0000 (17:25 -0700)]
conditionalize use of git on executability of /usr/bin/git binary

14 years agoupdate changelogs for Debian build
Bdale Garbee [Thu, 25 Feb 2010 00:22:45 +0000 (17:22 -0700)]
update changelogs for Debian build

14 years agosee if this works
Bdale Garbee [Thu, 25 Feb 2010 00:22:20 +0000 (17:22 -0700)]
see if this works

14 years agomove git-using variable declaration into the prebuild target
Bdale Garbee [Thu, 25 Feb 2010 00:13:29 +0000 (17:13 -0700)]
move git-using variable declaration into the prebuild target

14 years agoupdate changelogs for Debian build debian/0.6+88+gdeccc10
Bdale Garbee [Wed, 24 Feb 2010 23:44:44 +0000 (16:44 -0700)]
update changelogs for Debian build

14 years agoadd gawk as a build dependency since strtonum is a gawk extension
Bdale Garbee [Wed, 24 Feb 2010 23:43:32 +0000 (16:43 -0700)]
add gawk as a build dependency since strtonum is a gawk extension

14 years agoupdate changelogs for Debian build debian/0.6+86+g2491282
Bdale Garbee [Wed, 24 Feb 2010 21:57:26 +0000 (14:57 -0700)]
update changelogs for Debian build

14 years agoupdate changelogs for Debian build debian/0.6+85+g82fdbfe
Bdale Garbee [Wed, 24 Feb 2010 21:53:27 +0000 (14:53 -0700)]
update changelogs for Debian build

14 years agoMust install .map files for ao-load to work
Keith Packard [Sun, 21 Feb 2010 05:35:43 +0000 (21:35 -0800)]
Must install .map files for ao-load to work

ao-load uses the .map files to rewrite the serial number and other
config parameters into the program flash.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoAdd back stack size checking to altos linking phase
Keith Packard [Sun, 21 Feb 2010 05:20:05 +0000 (21:20 -0800)]
Add back stack size checking to altos linking phase

This verifies that the stack start specified during the compile
will work with the resulting program

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoQuiet make output.
Keith Packard [Sun, 21 Feb 2010 05:05:45 +0000 (21:05 -0800)]
Quiet make output.

This borrows ideas from the notmuch project to reduce the command line
clutter seen when compiling or linking stuff.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoUpdate .gitignore files
Keith Packard [Sun, 21 Feb 2010 04:36:08 +0000 (20:36 -0800)]
Update .gitignore files

14 years agoChange altos build process to support per-product compile-time changes
Keith Packard [Sun, 21 Feb 2010 04:22:16 +0000 (20:22 -0800)]
Change altos build process to support per-product compile-time changes

This creates per-product subdirectories and recompiles everything for
each product, allowing per-product compile-time changes for things
like peripheral pin assignments and attached serial devices.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoChange barometer conversion code to shrink conversion table
Keith Packard [Sun, 21 Feb 2010 04:21:07 +0000 (20:21 -0800)]
Change barometer conversion code to shrink conversion table

14 years agoLog GPS data on pad after boost detect.
Keith Packard [Sun, 14 Feb 2010 00:42:27 +0000 (16:42 -0800)]
Log GPS data on pad after boost detect.

This wakes up the two GPS reporting tasks and gets them to report out
any existing GPS data to the log file. To make sure the timestamps in
that GPS data are accurate, this also records GPS time on receipt of
the GPS data instead of when that is logged.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoPull in a bit more data for filtering the start of the boost
Keith Packard [Sun, 7 Feb 2010 08:25:22 +0000 (00:25 -0800)]
Pull in a bit more data for filtering the start of the boost

14 years agoCompute daytime using GPS as time base
Keith Packard [Sun, 7 Feb 2010 08:24:56 +0000 (00:24 -0800)]
Compute daytime using GPS as time base

14 years agoMissing ao_mutex_put in gps_dump
Keith Packard [Fri, 12 Feb 2010 02:48:56 +0000 (18:48 -0800)]
Missing ao_mutex_put in gps_dump

14 years agoSwitch to using internal cc1111 temperature sensor
Keith Packard [Mon, 11 Jan 2010 00:31:50 +0000 (16:31 -0800)]
Switch to using internal cc1111 temperature sensor

v0.2 has no temperature sensor, and several of the v0.1 boards didn't
get a temperature sensor loaded. Use the internal temperature sensor
on the cc1111 in all cases instead.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoForce idle mode by shorting the SPI clock to ground at boot time.
Keith Packard [Sun, 10 Jan 2010 06:06:19 +0000 (22:06 -0800)]
Force idle mode by shorting the SPI clock to ground at boot time.

This allows you to override the flight mode detection code in case the
accelerometer calibration is broken somehow. Hold the SPI clock shoted
to ground until the LED comes on, then remove it.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoAdd simple gps dump command 'g'
Keith Packard [Sun, 10 Jan 2010 04:57:48 +0000 (20:57 -0800)]
Add simple gps dump command 'g'

This just dumps out the data in a very simple format to verify the GPS
receiver.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoRemove flash debugging printfs
Keith Packard [Sun, 10 Jan 2010 04:57:29 +0000 (20:57 -0800)]
Remove flash debugging printfs

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoDon't set ao_flash_setup_done until we're actually done.
Keith Packard [Sun, 10 Jan 2010 04:42:57 +0000 (20:42 -0800)]
Don't set ao_flash_setup_done until we're actually done.

Because we're accessing this variable outside of the mutex, we need to
make sure it isn't set until the data it covers has been initialized.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoDump config block from read/write config and flash_status commands
Keith Packard [Sun, 10 Jan 2010 04:04:42 +0000 (20:04 -0800)]
Dump config block from read/write config and flash_status commands

14 years agoDump more flash parameters for the flash_status command
Keith Packard [Sun, 10 Jan 2010 03:46:46 +0000 (19:46 -0800)]
Dump more flash parameters for the flash_status command

14 years agoAdd 'f' command to display flash status register contents
Keith Packard [Sun, 10 Jan 2010 01:57:52 +0000 (17:57 -0800)]
Add 'f' command to display flash status register contents

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoAdd at45db161d.h header file for new flash part.
Keith Packard [Sat, 9 Jan 2010 17:55:04 +0000 (09:55 -0800)]
Add at45db161d.h header file for new flash part.

Forgot to add this when I added the driver.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoRemove green LED and temp sensor from v0.2 code
Keith Packard [Sat, 9 Jan 2010 09:29:41 +0000 (01:29 -0800)]
Remove green LED and temp sensor from v0.2 code

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoAdd AT45DBxx1D driver
Keith Packard [Sat, 9 Jan 2010 09:22:06 +0000 (01:22 -0800)]
Add AT45DBxx1D driver

This driver supports the AT45DB011D through AT45DB321D DataFlash
parts as found in TeleMetrum v0.2

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoRemove dbg driver code from telemetrum/teledongle
Keith Packard [Sun, 20 Dec 2009 04:32:18 +0000 (20:32 -0800)]
Remove dbg driver code from telemetrum/teledongle

The only board with debug outputs is the TI dongle at this point, so
the debug modules were disabled in TM and TD some time
ago. Unfortunately, the code was not removed then.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoEnsure that ao_alarm waits at least the specified time
Keith Packard [Sat, 19 Dec 2009 23:31:36 +0000 (15:31 -0800)]
Ensure that ao_alarm waits at least the specified time

Because the timer tick may happen soon, it's important to delay by
another tick to ensure that we don't wake up early.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoDisable monitor mode before attempting radio test.
Keith Packard [Sat, 19 Dec 2009 22:03:11 +0000 (14:03 -0800)]
Disable monitor mode before attempting radio test.

If monitor mode is left active, then the radio lock will not be able
to be acquired for the radio test.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoupdate changelogs for Debian build debian/0.6+60+g10d1bbc
Bdale Garbee [Sat, 19 Dec 2009 20:53:38 +0000 (13:53 -0700)]
update changelogs for Debian build

14 years agoUse ao_radio_get/ao_radio_put in packet code.
Keith Packard [Sat, 19 Dec 2009 19:34:16 +0000 (11:34 -0800)]
Use ao_radio_get/ao_radio_put in packet code.

The ao_radio_get function both acquires the mutex *and* configures the
radio channel and frequency. Failing to use this in the packet code
would leave the radio frequency unconfigured.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoupdate changelogs for Debian build debian/0.6+58+gbbb152c
Bdale Garbee [Sat, 19 Dec 2009 19:15:29 +0000 (12:15 -0700)]
update changelogs for Debian build

14 years agoupdate changelogs for Debian build debian/0.6+57+g7ac8efe
Bdale Garbee [Sat, 19 Dec 2009 19:05:40 +0000 (12:05 -0700)]
update changelogs for Debian build

14 years agoAdd --cal to man page
Keith Packard [Wed, 16 Dec 2009 07:58:29 +0000 (23:58 -0800)]
Add --cal to man page

14 years agoAllow radio calibration to be set from ao-load
Keith Packard [Sun, 6 Dec 2009 03:50:38 +0000 (19:50 -0800)]
Allow radio calibration to be set from ao-load

This moves the initial radio calibration value into const memory where
it will be used if no eeprom configuration value is available, either
on an unprogrammed board with eeprom or a device without an eeprom.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoRe-order config values. Change frequency to cal
Keith Packard [Sat, 5 Dec 2009 23:36:12 +0000 (15:36 -0800)]
Re-order config values. Change frequency to cal

Place more often used values at top, and consistently call the radio
value 'calibration' instead of 'frequency'.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoupdate changelogs for Debian build debian/0.6+53+gcd49847
Bdale Garbee [Sat, 5 Dec 2009 18:03:42 +0000 (11:03 -0700)]
update changelogs for Debian build

14 years agoAdd radio calibration configuration.
Keith Packard [Sat, 5 Dec 2009 07:38:26 +0000 (23:38 -0800)]
Add radio calibration configuration.

The crystal we use is only good for 20ppm, which generates a fairly
significant error bounds at our RF frequency. This commit adds a
configuration variable that sets the RF frequency control variable so
that the output frequency can be adjusted.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoMake ao_cmd_decimal produce both 32 and 16 bit values.
Keith Packard [Sat, 5 Dec 2009 07:36:54 +0000 (23:36 -0800)]
Make ao_cmd_decimal produce both 32 and 16 bit values.

ao_cmd_lex_u32 is produced in addition to ao_cmd_lex_i so that
functions can easily read 32-bit values from the command line.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoRemove send_serial and serial_baud commands.
Keith Packard [Sat, 5 Dec 2009 07:35:40 +0000 (23:35 -0800)]
Remove send_serial and serial_baud commands.

No longer useful, and they take up space.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoupdate changelogs for Debian build debian/0.6+49+g9a1d7dd
Bdale Garbee [Sat, 5 Dec 2009 04:02:07 +0000 (21:02 -0700)]
update changelogs for Debian build

14 years agoChange default callsign to "N0CALL"
Keith Packard [Fri, 4 Dec 2009 22:35:39 +0000 (14:35 -0800)]
Change default callsign to "N0CALL"

14 years agoupdate changelogs for Debian build debian/0.6+47+g4053309
Bdale Garbee [Thu, 26 Nov 2009 18:18:37 +0000 (11:18 -0700)]
update changelogs for Debian build

14 years agoupdate changelogs for Debian build debian/0.6+46+gab1075e
Bdale Garbee [Thu, 26 Nov 2009 18:16:04 +0000 (11:16 -0700)]
update changelogs for Debian build

14 years agochange home URL in control file to be the AltOS page
Bdale Garbee [Thu, 26 Nov 2009 18:15:13 +0000 (11:15 -0700)]
change home URL in control file to be the AltOS page

14 years agofix absolute path in debian/dirs, add Suggests for slim-altusmetrum
Bdale Garbee [Thu, 26 Nov 2009 17:40:07 +0000 (10:40 -0700)]
fix absolute path in debian/dirs, add Suggests for slim-altusmetrum

14 years agoupdate changelogs for Debian build debian/0.6+43+gd6ba07e
Bdale Garbee [Sun, 22 Nov 2009 17:18:44 +0000 (10:18 -0700)]
update changelogs for Debian build

14 years agoAutomatically extract flight number for eeprom and telem filenames.
Keith Packard [Sun, 22 Nov 2009 09:10:44 +0000 (01:10 -0800)]
Automatically extract flight number for eeprom and telem filenames.

Extract flight number from either telemetry or eeprom files and use
that in the resulting filenames. To ensure that files remain unique,
add a new field, -seq-%03d. This is appended only when the sequence
number is non-zero as it shouldn't occur in normal usage.

This also eliminates some duplicate filename creation code in the
library and aoview sources.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoao-postflight: don't try to use missing gps sat data
Keith Packard [Sun, 22 Nov 2009 08:52:58 +0000 (00:52 -0800)]
ao-postflight: don't try to use missing gps sat data

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoao-postflight: compute barometric alt for each GPS position
Keith Packard [Sun, 22 Nov 2009 06:12:21 +0000 (22:12 -0800)]
ao-postflight: compute barometric alt for each GPS position

Print that to the --gps file, and use that in the --kml file for the
altitude. Gives a very different picture of our flight tracks,
presumably far more accurate (at least in altitude).

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoDon't crash if --plot isn't passed on ao-postflight command line
Keith Packard [Sun, 22 Nov 2009 06:11:45 +0000 (22:11 -0800)]
Don't crash if --plot isn't passed on ao-postflight command line

Crashing is not nice.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoConvert telemetry file GPS satellite information in cc_log_read
Keith Packard [Sun, 22 Nov 2009 05:10:09 +0000 (21:10 -0800)]
Convert telemetry file GPS satellite information in cc_log_read

The satellite info wasn't being correctly converted from telemetry
files to the data log structure, so ao-postflight was not seeing it.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoFix --plot arg handling. Add -all option.
Keith Packard [Sun, 22 Nov 2009 05:09:03 +0000 (21:09 -0800)]
Fix --plot arg handling. Add -all option.

The --plot file name handing is special as the library wants a
filename instead of a stdio file pointer.

Add a --all option that just creates all of the possible outputs.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoMake TD print 0000-00-00 for invalid dates.
Keith Packard [Sun, 22 Nov 2009 04:36:20 +0000 (20:36 -0800)]
Make TD print 0000-00-00 for invalid dates.

This 'shouldn't' happen, but in case it does, I want to know about it.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoMake ao-postflight create filenames using input filenames.
Keith Packard [Sun, 22 Nov 2009 04:35:22 +0000 (20:35 -0800)]
Make ao-postflight create filenames using input filenames.

Instead of requiring the user to provide names for the various output
options, just create them from the input name by replacing the extension.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoDocument ao-postflight --gps and --kml options.
Keith Packard [Sun, 22 Nov 2009 03:52:26 +0000 (19:52 -0800)]
Document ao-postflight --gps and --kml options.

These were missing from the man page, but included in the --help output.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoDecode HDOP data from skytraq GPS
Keith Packard [Sun, 22 Nov 2009 02:57:45 +0000 (18:57 -0800)]
Decode HDOP data from skytraq GPS

The hdop data was getting dropped on the floor, but is rather useful
when deciding if the GPS position is crazy or not. This reports HDOP *
5 (giving a useful range of .2-50).

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoupdate changelogs for Debian build debian/0.6+32+g87e6f3e
Bdale Garbee [Fri, 20 Nov 2009 20:19:02 +0000 (13:19 -0700)]
update changelogs for Debian build

14 years agoEliminate SiRF state values from ao-view.
Keith Packard [Fri, 20 Nov 2009 20:16:37 +0000 (12:16 -0800)]
Eliminate SiRF state values from ao-view.

With Skytraq not having any visible GPS state information, just
remove this from the display.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoAdd GPS date/time output to ao-postflight.
Keith Packard [Fri, 20 Nov 2009 19:56:48 +0000 (11:56 -0800)]
Add GPS date/time output to ao-postflight.

GPS date/time information was already being stored in the log, it just
wasn't getting displayed by ao-postflight.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoReduce igniter firing time from 500ms to 50ms.
Keith Packard [Fri, 20 Nov 2009 19:55:28 +0000 (11:55 -0800)]
Reduce igniter firing time from 500ms to 50ms.

Given that the system will brown-out with the longer pulse, it doesn't
make sense to even try; failure at 50ms probably indicates a short.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agofix typo in comment
Bdale Garbee [Fri, 20 Nov 2009 04:43:13 +0000 (21:43 -0700)]
fix typo in comment

14 years agoupdate changelogs for Debian build debian/0.6+27+gb0d7e3f
Bdale Garbee [Fri, 20 Nov 2009 18:44:06 +0000 (11:44 -0700)]
update changelogs for Debian build

14 years agoStop using SiRF state info.
Keith Packard [Mon, 16 Nov 2009 00:20:18 +0000 (16:20 -0800)]
Stop using SiRF state info.

With the switch to the skytraq GPS unit, we don't have the same level
of detail in the GPS stream, so stop reporting that in the telemetry
stream, in the UI and writing it to eeprom.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoAdd date to GPS data, captured from GPRMC packet.
Keith Packard [Mon, 16 Nov 2009 00:04:41 +0000 (16:04 -0800)]
Add date to GPS data, captured from GPRMC packet.

Pull the date out of the GPS stream and send it over the telemetry
link and write it to the eeprom.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoAdd flight number to telemetry stream.
Keith Packard [Sun, 15 Nov 2009 23:59:01 +0000 (15:59 -0800)]
Add flight number to telemetry stream.

This makes it easier to tie the telemetry and eeprom files together as
they're now both labeled with serial and flight numbers, which should
be unique.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoSwitch order of serial/flight in ao-postflight summary
Keith Packard [Sun, 15 Nov 2009 23:53:01 +0000 (15:53 -0800)]
Switch order of serial/flight in ao-postflight summary

14 years agoEnable telemetry receive in ao_view
Keith Packard [Sun, 15 Nov 2009 23:51:58 +0000 (15:51 -0800)]
Enable telemetry receive in ao_view

14 years agoShare telemetry parsing code in cc library.
Keith Packard [Sun, 15 Nov 2009 06:24:37 +0000 (22:24 -0800)]
Share telemetry parsing code in cc library.

ao-view had a private copy of the telemetry parsing code which
included the ability to parse the newer version of that file. Those
changes have been moved to the library version and the private copy removed.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoProvide a dummy 'uninstall' target in the src directory.
Keith Packard [Sun, 15 Nov 2009 06:24:09 +0000 (22:24 -0800)]
Provide a dummy 'uninstall' target in the src directory.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoLoosen tolerances for main->landed transition
Keith Packard [Sun, 15 Nov 2009 06:17:24 +0000 (22:17 -0800)]
Loosen tolerances for main->landed transition

Detecting that the rocket has landed is required for the system to
flush the eeprom log and re-enable the RDF beacon. This patch changes
the landed state entry requirements for the accelerometer to require
only that the accelerometer stay within a quarter of a g (down from
1/10g) and changes the testing interval from 20 seconds to 5
seconds.

The requirement that the barometric altitude be within 1000m of the
launch altitude and that the barometer change by no more than 0.05kPa
are unchanged.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoao-postflight: fix sloppy gps sat data realloc code (was crashing).
Keith Packard [Sun, 15 Nov 2009 00:35:12 +0000 (16:35 -0800)]
ao-postflight: fix sloppy gps sat data realloc code (was crashing).

Realloc'ing the wrong data, and failing to set the realloc'ed size was
causing ao-postflight to crash while reading long logs.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoReturn radio to telemetry settings when packet system closed.
Keith Packard [Fri, 6 Nov 2009 06:11:59 +0000 (22:11 -0800)]
Return radio to telemetry settings when packet system closed.

To receive telemetry after disabling the packet system, the radio must
be reconfigured for telemetry mode.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoAdd reboot command.
Keith Packard [Fri, 6 Nov 2009 05:45:00 +0000 (21:45 -0800)]
Add reboot command.

This resets the processor using the watchdog timer.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoAdd Watchdog Timer Control register definitions
Keith Packard [Fri, 6 Nov 2009 05:44:31 +0000 (21:44 -0800)]
Add Watchdog Timer Control register definitions

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoMove ao_match_word from ao_ignite.c to ao_cmd.c
Keith Packard [Fri, 6 Nov 2009 05:43:21 +0000 (21:43 -0800)]
Move ao_match_word from ao_ignite.c to ao_cmd.c

This is a generally useful command line utility.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoStop recording in ao-dumplog after receiving an invalid block
Keith Packard [Thu, 5 Nov 2009 05:59:51 +0000 (21:59 -0800)]
Stop recording in ao-dumplog after receiving an invalid block

If no samples in a block are valid, assume the flight log is over.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoFlush pending input when switching to remote packet mode
Keith Packard [Thu, 5 Nov 2009 05:59:12 +0000 (21:59 -0800)]
Flush pending input when switching to remote packet mode

Any pending input would just confuse the application, so pull it off
the link and dump it.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoExplicitly use USB I/O routines in packet code
Keith Packard [Thu, 5 Nov 2009 05:42:51 +0000 (21:42 -0800)]
Explicitly use USB I/O routines in packet code

Using the implicit stdio functions (putchar/getchar/flush) would
result in essentially random redirection of each, depending on whether
the packet code had characters available when getchar was called. This
would cause lockups in putchar.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 years agoIn USB pollchar, wait for packet before re-checking USB out len
Keith Packard [Thu, 5 Nov 2009 05:32:07 +0000 (21:32 -0800)]
In USB pollchar, wait for packet before re-checking USB out len

This probably wouldn't actually cause a problem, but it seems more
reliable to wait for a packet interrupt before re-reading the packet
OUT len register. This could avoid spinning while waiting for a USB
packet, which seems like a good thing.

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