fw/altos
12 years agoclean up all existing lintian warnings
Bdale Garbee [Mon, 8 Aug 2011 15:31:18 +0000 (09:31 -0600)]
clean up all existing lintian warnings

12 years agobuild depend on bluetooth dev package
Bdale Garbee [Mon, 8 Aug 2011 13:54:14 +0000 (07:54 -0600)]
build depend on bluetooth dev package

12 years agostop doing automatic tag push during builds
Bdale Garbee [Mon, 8 Aug 2011 13:38:48 +0000 (07:38 -0600)]
stop doing automatic tag push during builds

12 years agoupdate changelogs for Debian build
Bdale Garbee [Mon, 8 Aug 2011 13:37:23 +0000 (07:37 -0600)]
update changelogs for Debian build

12 years agoupdate changelogs for Debian build
Bdale Garbee [Mon, 8 Aug 2011 13:35:47 +0000 (07:35 -0600)]
update changelogs for Debian build

12 years agosimplify version in last changelog entry so git-dch is less confused 0.9.4.5
Bdale Garbee [Mon, 8 Aug 2011 13:33:09 +0000 (07:33 -0600)]
simplify version in last changelog entry so git-dch is less confused

12 years agoupdate version for a Bdale build for use turning on TeleMini v1.0
Bdale Garbee [Mon, 8 Aug 2011 13:30:42 +0000 (07:30 -0600)]
update version for a Bdale build for use turning on TeleMini v1.0

12 years agoaltos/altosui: Add pad orientation configure option
Keith Packard [Wed, 3 Aug 2011 02:07:56 +0000 (19:07 -0700)]
altos/altosui: Add pad orientation configure option

Allow TeleMetrum to be operated with the antenna pointing downwards on
the pad. This provides some additional flexibility when designing an
ebay.

The accelerometer calibration levels are flipped around to match, so
no re-calibration should be required.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltosui: Add idle monitor dialog
Keith Packard [Wed, 3 Aug 2011 00:41:53 +0000 (17:41 -0700)]
altosui: Add idle monitor dialog

This monitors a telemetrum device in idle mode, either directly or through a
teledongle, allowing the GPS status and batteries to be monitored
without resorting to placing the device in pad mode.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltosui: Simple timeouts don't work with query data
Keith Packard [Wed, 3 Aug 2011 01:01:52 +0000 (18:01 -0700)]
altosui: Simple timeouts don't work with query data

To get the query to come back, it's best to abort and retry the
command, other wise the command may have been lost to the previous
connection.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltosui: Parse accel cal from 'c s' command
Keith Packard [Wed, 3 Aug 2011 00:41:02 +0000 (17:41 -0700)]
altosui: Parse accel cal from 'c s' command

These fields weren't used before, so the code to parse them hadn't
been written.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltosui: Standard text field in flight UI needs more width (now 20)
Keith Packard [Wed, 3 Aug 2011 00:40:02 +0000 (17:40 -0700)]
altosui: Standard text field in flight UI needs more width (now 20)

Latitude and longitude take more than 16 characters.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Require sequencing through 'main' state before landing
Keith Packard [Tue, 2 Aug 2011 09:09:23 +0000 (02:09 -0700)]
altos: Require sequencing through 'main' state before landing

The old version of the code would permit the flight to go straight
from 'drogue' to 'landed' without passing through 'main' at all. This
meant that a false landing detection would leave the main charge
unfired, potentially causing the airframe to land on drogue alone.

Requiring that the flight sequence pass through main ensures that the
main charge will get fired at the right time, although if the airframe
lands higher than that altitude, it will not go to 'landed' mode ever.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Reduce height averaging filter time constant
Keith Packard [Tue, 2 Aug 2011 08:49:35 +0000 (01:49 -0700)]
altos: Reduce height averaging filter time constant

Using the longer time constant could lead to false landing detection
just after apogee, which is definitely not a good idea.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Average height values for landing detection
Keith Packard [Tue, 2 Aug 2011 05:33:38 +0000 (22:33 -0700)]
altos: Average height values for landing detection

Instead of using the direct output of the kalman filter and hoping
that is quiet enough to detect landing, filter that with a long
exponential decay filter and then check to make sure that doesn't
change more than 2m in 5 seconds as a trigger for landing detection.

Tested with existing telemetrum flight logs and it correctly detects
landing in all cases.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Add ability to read new TELEM files to ao_flight_test
Keith Packard [Mon, 18 Jul 2011 01:49:55 +0000 (18:49 -0700)]
altos: Add ability to read new TELEM files to ao_flight_test

Not that telem files are currently very useful as the kalman filter
gets completly confused by the variable steps caused by missing data, but...

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltosui: Change continutity colors to yellow/magenta
Keith Packard [Sun, 17 Jul 2011 23:44:10 +0000 (16:44 -0700)]
altosui: Change continutity colors to yellow/magenta

Makes them stand apart from the accel/speed lines

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoAdd HARA Bragg Farms site
Keith Packard [Sun, 17 Jul 2011 23:43:41 +0000 (16:43 -0700)]
Add HARA Bragg Farms site

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoFix NCR Pawnee location
Keith Packard [Sun, 17 Jul 2011 22:53:13 +0000 (15:53 -0700)]
Fix NCR Pawnee location

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltosui: Mark preload site location with red circles (like launch)
Keith Packard [Sun, 17 Jul 2011 22:45:07 +0000 (15:45 -0700)]
altosui: Mark preload site location with red circles (like launch)

Just to show where on the map the official launch location is.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltosui: Add a bunch more site locations
Keith Packard [Sun, 17 Jul 2011 22:09:55 +0000 (15:09 -0700)]
altosui: Add a bunch more site locations

BALLS, Rio Rancho, METRA, QRS Cedar Grove and Hudson Ranch

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltosui: Add launch-sites.txt
Keith Packard [Sun, 17 Jul 2011 18:29:13 +0000 (11:29 -0700)]
altosui: Add launch-sites.txt

Contains a few of our favorites.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltosui: Download list of site locations for map preloading
Keith Packard [Sun, 17 Jul 2011 18:25:47 +0000 (11:25 -0700)]
altosui: Download list of site locations for map preloading

The current URL for this is:
http://gag.com/~keithp/launch-sites.txt

The format is:
<site-name>:<lat>:<lon>

lat and lon are both in signed decimal degrees.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoMerge branch 'preload-maps'
Keith Packard [Sun, 17 Jul 2011 15:17:44 +0000 (08:17 -0700)]
Merge branch 'preload-maps'

12 years agoaltos, altosui: Add igniter mode (dual, apogee, main) split-telemetry
Keith Packard [Mon, 23 May 2011 18:32:29 +0000 (11:32 -0700)]
altos, altosui: Add igniter mode (dual, apogee, main)

This provides for redundant charges for either apogee or main.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoSet version to 0.9.4.4
Keith Packard [Sun, 17 Jul 2011 15:13:15 +0000 (08:13 -0700)]
Set version to 0.9.4.4

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltosui: Make sure degree and minute values are visible (map preload)
Anthony Towns [Sun, 17 Jul 2011 06:08:49 +0000 (23:08 -0700)]
altosui: Make sure degree and minute values are visible (map preload)

Set min size to preferred size so that the value remains visible
instead of snapping to 0 pixels wide.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltosui: Remove a bunch of sitemap debugging printfs
Keith Packard [Sun, 17 Jul 2011 05:43:34 +0000 (22:43 -0700)]
altosui: Remove a bunch of sitemap debugging printfs

Seems to work, let's get less chatty

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltosui: Display full map preload area in view.
Keith Packard [Sun, 17 Jul 2011 05:34:44 +0000 (22:34 -0700)]
altosui: Display full map preload area in view.

This involved fixing the map view to support arbitrary sizes, and then
exposing a synchronous tile loading API so that the progress bar could
be used to show tile loading progress.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoMerge branch 'scan-telemetry' into preload-maps
Keith Packard [Sun, 17 Jul 2011 04:06:37 +0000 (21:06 -0700)]
Merge branch 'scan-telemetry' into preload-maps

12 years agoaltosui: Flush telemetry lines before starting to watch for scan results
Keith Packard [Sun, 17 Jul 2011 04:05:06 +0000 (21:05 -0700)]
altosui: Flush telemetry lines before starting to watch for scan results

This prevents pending telemetry lines from being incorrectly
attributed to the wrong channel/telemetry.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltosui: Try to avoid resize weirdness with map preloading
Keith Packard [Sun, 17 Jul 2011 00:37:20 +0000 (17:37 -0700)]
altosui: Try to avoid resize weirdness with map preloading

grid bag + box does some strange stuff, this appears to avoid the
worst of the interactions.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltosui: Add map preloading GUI
Keith Packard [Sat, 16 Jul 2011 23:37:40 +0000 (16:37 -0700)]
altosui: Add map preloading GUI

Provide a way to manually enter latitude and longitude, preview the
map area while downloading a 9x9 grid of map tiles to be used when
monitoring flights without network access.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltosui: Set 'seen' bits in legacy telemetry packet reader
Keith Packard [Sun, 17 Jul 2011 03:44:51 +0000 (20:44 -0700)]
altosui: Set 'seen' bits in legacy telemetry packet reader

Otherwise, the 'scan' code won't show detected flight computers.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltosui: Initialize channel and telemetry before use in ScanUI
Keith Packard [Sun, 17 Jul 2011 03:43:57 +0000 (20:43 -0700)]
altosui: Initialize channel and telemetry before use in ScanUI

Otherwise we try to use telemetry format 0, which means 'no telemetry'.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltosui: Generalize and centralize telemetry constants, parse v0.8 telemetry
Keith Packard [Sun, 17 Jul 2011 00:38:00 +0000 (17:38 -0700)]
altosui: Generalize and centralize telemetry constants, parse v0.8 telemetry

Move telemetry constants to Altos class, adding functions to compute
names and lengths. Generalize users of these values to use all of the
known values.

Add support for v0.8 TeleMetrum telemetry

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltosui: Finish radio scanning UI
Keith Packard [Sat, 16 Jul 2011 21:23:08 +0000 (14:23 -0700)]
altosui: Finish radio scanning UI

Scans all channels and telemetry formats, presenting visible devices
in a list. Entries from the list may be selected, in which case a
monitor window pops up with the appropriate configuration.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltosui: Configuration telemetry record includes flight number
Keith Packard [Sat, 16 Jul 2011 21:19:41 +0000 (14:19 -0700)]
altosui: Configuration telemetry record includes flight number

Mark the reported altos record as including flight information.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltosui: Remove debugging printf from AltosLog
Keith Packard [Sat, 16 Jul 2011 21:19:14 +0000 (14:19 -0700)]
altosui: Remove debugging printf from AltosLog

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltosui: Pop up monitor window from scan dialog
Keith Packard [Sun, 10 Jul 2011 02:00:12 +0000 (19:00 -0700)]
altosui: Pop up monitor window from scan dialog

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltosui: Start adding support for scanning radio for available devices
Keith Packard [Sun, 10 Jul 2011 01:41:15 +0000 (18:41 -0700)]
altosui: Start adding support for scanning radio for available devices

This is untested.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoSet version to 0.9.4.3 for Bdale 2011-7-16 flights 0.9.4.3
Keith Packard [Sat, 16 Jul 2011 01:53:41 +0000 (18:53 -0700)]
Set version to 0.9.4.3 for Bdale 2011-7-16 flights

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: new versions of sdcc require __ prefixes for custom keywords
Keith Packard [Sat, 9 Jul 2011 20:09:57 +0000 (13:09 -0700)]
altos: new versions of sdcc require __ prefixes for custom keywords

Fortunately, 2.9.1 appears to accept either, so we can switch now and
prepare for sdcc 3.0.0.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltosui: Don't show missing igniter and gps values
Keith Packard [Thu, 7 Jul 2011 04:38:57 +0000 (21:38 -0700)]
altosui: Don't show missing igniter and gps values

The new telemetry stuff leaves state.gps always set (but empty), which
seems fine, we just need to look at state.gps.connected to see if
there's a GPS receiver on board.

For TeleNano, we also want to hide the igniter status fields as they
won't have any data present.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltosui: Build device constants into .java code
Keith Packard [Thu, 7 Jul 2011 04:36:38 +0000 (21:36 -0700)]
altosui: Build device constants into .java code

This eliminates a depedency on updates to the system helper library,
which means we don't have to provide a new library on all platforms
just to support a new USB id.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: product defines are always in ao_product.h
Keith Packard [Thu, 7 Jul 2011 00:49:01 +0000 (17:49 -0700)]
altos: product defines are always in ao_product.h

When all products were built in a single directory, each one had a
separate version of ao_product.h. Now that they all reside in
sub-directories, each directory has its own ao_product.h

This change is needed so that other modules in the system can use the
product defines; otherwise, ao_product.h was not built at the right time.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Ensure low-rate telem packets interleave with sensor telem packets
Keith Packard [Wed, 6 Jul 2011 23:43:17 +0000 (16:43 -0700)]
altos: Ensure low-rate telem packets interleave with sensor telem packets

To avoid over-committing the radio link, we want to send only
one low rate packet after each sensor packet. However, the
initializations for this were incorrect, causing the configuration and
location packets to be sent at the same time.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Remove ao_telemetry_orig.c and ao_telemetry_tiny.c
Keith Packard [Wed, 6 Jul 2011 23:18:54 +0000 (16:18 -0700)]
altos: Remove ao_telemetry_orig.c and ao_telemetry_tiny.c

All products use the common ao_telemetry.c code now

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Switch Tm and Tn to common telemetry code
Keith Packard [Wed, 6 Jul 2011 23:19:22 +0000 (16:19 -0700)]
altos: Switch Tm and Tn to common telemetry code

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Switch flash drivers __xdata to __pdata
Keith Packard [Wed, 6 Jul 2011 22:52:25 +0000 (15:52 -0700)]
altos: Switch flash drivers __xdata to __pdata

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Switch ao_flight and ao_flight_nano __xdata to __pdata
Keith Packard [Wed, 6 Jul 2011 22:51:52 +0000 (15:51 -0700)]
altos: Switch ao_flight and ao_flight_nano __xdata to __pdata

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Switch ao_dbg.c __xdata to __pdata
Keith Packard [Wed, 6 Jul 2011 22:28:01 +0000 (15:28 -0700)]
altos: Switch ao_dbg.c __xdata to __pdata

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Switch ao_config.c __xdata to __pdata
Keith Packard [Wed, 6 Jul 2011 22:27:32 +0000 (15:27 -0700)]
altos: Switch ao_config.c __xdata to __pdata

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: switch ao_cmd __xdata to __pdata
Keith Packard [Wed, 6 Jul 2011 22:26:09 +0000 (15:26 -0700)]
altos: switch ao_cmd __xdata to __pdata

Saves code space

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Switch const for __code in struct ao_cmds
Keith Packard [Wed, 6 Jul 2011 22:45:04 +0000 (15:45 -0700)]
altos: Switch const for __code in struct ao_cmds

This saves quite a bit of code space when accessing these values.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Switch ao_usb.c __xdata to __pdata
Keith Packard [Wed, 6 Jul 2011 22:41:32 +0000 (15:41 -0700)]
altos: Switch ao_usb.c __xdata to __pdata

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Switch ao_telemetry.c __xdata to __pdata
Keith Packard [Wed, 6 Jul 2011 22:41:06 +0000 (15:41 -0700)]
altos: Switch ao_telemetry.c __xdata to __pdata

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Switch ao_stdio.c __data to __pdata
Keith Packard [Wed, 6 Jul 2011 22:39:44 +0000 (15:39 -0700)]
altos: Switch ao_stdio.c __data to __pdata

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Switch ao_serial.c __xdata to __pdata
Keith Packard [Wed, 6 Jul 2011 22:38:46 +0000 (15:38 -0700)]
altos: Switch ao_serial.c __xdata to __pdata

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Switch ao_sample.c __xdata to __pdata
Keith Packard [Wed, 6 Jul 2011 22:38:29 +0000 (15:38 -0700)]
altos: Switch ao_sample.c __xdata to __pdata

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Switch ao_rssi.c __xdata to __pdata
Keith Packard [Wed, 6 Jul 2011 22:37:34 +0000 (15:37 -0700)]
altos: Switch ao_rssi.c __xdata to __pdata

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Switch ao_report.c __xdata to __pdata
Keith Packard [Wed, 6 Jul 2011 22:37:15 +0000 (15:37 -0700)]
altos: Switch ao_report.c __xdata to __pdata

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Switch ao_log.c and ao_log_big.c __xdata to __pdata
Keith Packard [Wed, 6 Jul 2011 22:36:45 +0000 (15:36 -0700)]
altos: Switch ao_log.c and ao_log_big.c __xdata to __pdata

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Switch ao_ignite and ao_gps_sirf __xdata to __pdata
Keith Packard [Wed, 6 Jul 2011 22:33:52 +0000 (15:33 -0700)]
altos: Switch ao_ignite and ao_gps_sirf __xdata to __pdata

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Switch ao_gps_skytraq and ao_gps_sirf __xdata to __pdata
Keith Packard [Wed, 6 Jul 2011 22:31:53 +0000 (15:31 -0700)]
altos: Switch ao_gps_skytraq and ao_gps_sirf __xdata to __pdata

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Shrink ao_add_task by rolling up a memset loop
Keith Packard [Wed, 6 Jul 2011 20:49:05 +0000 (13:49 -0700)]
altos: Shrink ao_add_task by rolling up a memset loop

This has a dramatic effect. By pulling the 'stack' variable into
registers it reduces the size of this function from 550 to 231 bytes.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Shrink ao_config_callsign_set
Keith Packard [Wed, 6 Jul 2011 20:21:25 +0000 (13:21 -0700)]
altos: Shrink ao_config_callsign_set

Replacing a hand-coded memset with a function call, using static space
instead of stack space for an array.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Shrink ao_cmd_put16, ao_cmd_hex and ao_cmd
Keith Packard [Wed, 6 Jul 2011 19:38:11 +0000 (12:38 -0700)]
altos: Shrink ao_cmd_put16, ao_cmd_hex and ao_cmd

No functional changes, just reduces code size.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltosui: Compress telemetry records marked with the same time
Keith Packard [Wed, 6 Jul 2011 06:38:42 +0000 (23:38 -0700)]
altosui: Compress telemetry records marked with the same time

Split telemetry transmits multiple packets with the same
timestamp. Merge those into a single record when read from a file.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltosui: Remove debug printf.
Keith Packard [Wed, 6 Jul 2011 06:38:28 +0000 (23:38 -0700)]
altosui: Remove debug printf.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltosui: Add main/drogue voltages to default graph
Keith Packard [Wed, 6 Jul 2011 06:37:51 +0000 (23:37 -0700)]
altosui: Add main/drogue voltages to default graph

Until we get a UI for changing the graph elements, lets add a few more
potentially useful values.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltosui: Elide missing values from graphs
Keith Packard [Wed, 6 Jul 2011 06:37:00 +0000 (23:37 -0700)]
altosui: Elide missing values from graphs

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltosui: Elide nul bytes at end of telemetry string values
Keith Packard [Wed, 6 Jul 2011 06:35:50 +0000 (23:35 -0700)]
altosui: Elide nul bytes at end of telemetry string values

All telemetry fields are fixed length, so any embedded strings are
padded with nul bytes.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agodoc: Add section about TeleDongle USB line format
Keith Packard [Wed, 6 Jul 2011 06:35:02 +0000 (23:35 -0700)]
doc: Add section about TeleDongle USB line format

Describe the format of the TELEM lines sent over USB from TeleDongle
to the host.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Adapt to changes in telemetry Configuration packet
Keith Packard [Wed, 6 Jul 2011 04:44:53 +0000 (21:44 -0700)]
altos: Adapt to changes in telemetry Configuration packet

Apogee delay added. flight_log_max changed to two bytes (in kB now).

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agodoc: Chang Config and Location packets
Keith Packard [Wed, 6 Jul 2011 04:42:22 +0000 (21:42 -0700)]
doc: Chang Config and Location packets

Config packets get apogee delay, and have flight_log_max shrunk to two
bytes.

Location packets get climb_rate added.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltosui: Parse remaining standard telemetry packets
Keith Packard [Wed, 6 Jul 2011 04:41:44 +0000 (21:41 -0700)]
altosui: Parse remaining standard telemetry packets

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Complete new telemetry switchover
Keith Packard [Tue, 5 Jul 2011 06:39:21 +0000 (23:39 -0700)]
altos: Complete new telemetry switchover

This involved rewriting the GPS code to use the telemetry structures
directly so that a memcpy could be used to transfer the data to the
telemetry packets, saving a bunch of code space, along with fixing up
the gps testing programs to deal with the structure changes.

In addition, the teledongle code needed to have the monitoring code
split into separate radio receiver and USB writer threads as the
packets are now back-to-back, and hence come too fast to wait for the
USB data to be sent to the host after each one.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Add split telemetry code
Keith Packard [Tue, 5 Jul 2011 01:09:03 +0000 (18:09 -0700)]
altos: Add split telemetry code

This sends every packet every time, which isn't correct, but should be
useful for testing.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Shrink help text
Keith Packard [Tue, 5 Jul 2011 01:08:19 +0000 (18:08 -0700)]
altos: Shrink help text

Reduce const space taken by command help text.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Add sat info to GPS report command
Keith Packard [Tue, 5 Jul 2011 01:06:48 +0000 (18:06 -0700)]
altos: Add sat info to GPS report command

Plan to use this to report current flight computer state in idle mode.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Shrink const space in ao_config
Keith Packard [Tue, 5 Jul 2011 01:04:49 +0000 (18:04 -0700)]
altos: Shrink const space in ao_config

Eliminate separate 'cmd' and 'help' struct entries.
Use \0 trick in cmd strings to eliminate whitespace.
Edit help text.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: teledongle does not need ao_packet_slave.c
Keith Packard [Tue, 5 Jul 2011 01:03:51 +0000 (18:03 -0700)]
altos: teledongle does not need ao_packet_slave.c

TeleDongle doesn't provide slave interfaces, so remove ao_packet_slave
from the TD build

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoVersion strings must be < 8 bytes long
Keith Packard [Tue, 5 Jul 2011 01:02:52 +0000 (18:02 -0700)]
Version strings must be < 8 bytes long

The new telemetry packets include the version string, so make sure its
less than 8 characters long

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agodoc: Fix a few minor telemetry doc mistakes
Keith Packard [Tue, 5 Jul 2011 01:01:59 +0000 (18:01 -0700)]
doc: Fix a few minor telemetry doc mistakes

Multiple 'accel' entries in the Sensor packet.
Swap ground_accel and ground_pres to group accel cal data

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agodoc: Complete initial telemetry description
Keith Packard [Mon, 4 Jul 2011 21:17:55 +0000 (14:17 -0700)]
doc: Complete initial telemetry description

Finish describing the contents and modulation scheme for telemetry
data.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agodoc: Add telemetry format description
Keith Packard [Sat, 2 Jul 2011 08:50:33 +0000 (01:50 -0700)]
doc: Add telemetry format description

Document the telemetry packet contents.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltosui: Support raw telemetry from TeleDongle
Keith Packard [Tue, 28 Jun 2011 08:03:00 +0000 (01:03 -0700)]
altosui: Support raw telemetry from TeleDongle

Use raw telemetry frames when TeleDongle supports them, this involves
parsing the hex dump of the packet instead of having teledongle take
the packet apart. Only the legacy format is working at this point; the
altos bits for the new split telemetry frames is not written yet.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: ao_radio_recv needs byte count *including* rssi and status
Keith Packard [Tue, 28 Jun 2011 08:01:08 +0000 (01:01 -0700)]
altos: ao_radio_recv needs byte count *including* rssi and status

That's two more than the actual packet length.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Start adding new telemetry frame definitions
Keith Packard [Fri, 24 Jun 2011 15:31:51 +0000 (08:31 -0700)]
altos: Start adding new telemetry frame definitions

These use the initial 24 bytes per frame plan, which will probably get
changed to 32 bytes per frame.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Add checksum to TELEM output lines
Keith Packard [Fri, 24 Jun 2011 15:31:12 +0000 (08:31 -0700)]
altos: Add checksum to TELEM output lines

Verify the received telemetry lines to protect against OS data loss

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Add arbitrary telemetry packet monitoring
Keith Packard [Wed, 22 Jun 2011 19:27:34 +0000 (12:27 -0700)]
altos: Add arbitrary telemetry packet monitoring

This adds the ability to monitor arbitrary telemetry packets (up to
128 bytes), moving the telemetry data parsing up to the host.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Rename telemetry to telemetry_orig
Keith Packard [Wed, 22 Jun 2011 19:26:45 +0000 (12:26 -0700)]
altos: Rename telemetry to telemetry_orig

This makes room to create a new multi-packet telemetry format without
changing anything yet.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltosui: Handle old TeleDongle receiving kalman telemetry packets
Keith Packard [Fri, 3 Jun 2011 06:16:30 +0000 (23:16 -0700)]
altosui: Handle old TeleDongle receiving kalman telemetry packets

The telemetry packets now send the kalman height/speed/accel values
instead of the ad-hoc values. If received by an old TeleDongle box,
the speed value will be of the form 0x8000abcd, which will be printed
as a 32-bit value by TeleDongle. We only want the abcd part, which is
the speed * 16. Detect this automatically and compute the correct
values for all three.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoSwitch version to 0.9.4 telebt 0.9.4
Keith Packard [Thu, 26 May 2011 03:38:02 +0000 (21:38 -0600)]
Switch version to 0.9.4

For Mayhem, so we can tell what version each board is running

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoRevert "altos: Debugging TBT issues -- check pin configuration after boot"
Keith Packard [Sat, 7 May 2011 06:55:23 +0000 (23:55 -0700)]
Revert "altos: Debugging TBT issues -- check pin configuration after boot"

This reverts commit 514348055630edec12224c4b0964240b929759a3.

Looks like this was never a problem.

12 years agoaltos: clear CPU port 1 interrupt flag when handled
Keith Packard [Sat, 7 May 2011 06:12:47 +0000 (23:12 -0700)]
altos: clear CPU port 1 interrupt flag when handled

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Hook up the P1 ISR for TeleBT v0.1 bt_link line
Keith Packard [Sat, 7 May 2011 05:59:15 +0000 (22:59 -0700)]
altos: Hook up the P1 ISR for TeleBT v0.1 bt_link line

Otherwise, we're heading off into the weeds...

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Initialize beeper for telebt
Keith Packard [Sat, 7 May 2011 05:49:54 +0000 (22:49 -0700)]
altos: Initialize beeper for telebt

Needed to get sounds to come out

Signed-off-by: Keith Packard <keithp@keithp.com>
12 years agoaltos: Debugging TBT issues -- check pin configuration after boot
Keith Packard [Sat, 7 May 2011 05:42:58 +0000 (22:42 -0700)]
altos: Debugging TBT issues -- check pin configuration after boot

Make sure the serial pins are configured as peripherals
Make sure the ser_reset and bt_link pins are going the right direction.

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