fw/altos
11 years agoMerge branch 'master' into stm-flash
Keith Packard [Sat, 27 Apr 2013 07:38:53 +0000 (00:38 -0700)]
Merge branch 'master' into stm-flash

11 years agoaltos: All STM ADC users need to declare HAS_ADC_TEMP
Keith Packard [Sat, 27 Apr 2013 07:37:36 +0000 (00:37 -0700)]
altos: All STM ADC users need to declare HAS_ADC_TEMP

Otherwise we can't configure the ADC unit correctly at boot time

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Build telemega-v0.3 by default
Keith Packard [Sat, 27 Apr 2013 07:36:11 +0000 (00:36 -0700)]
altos: Build telemega-v0.3 by default

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoMerge branch 'master' into stm-flash
Keith Packard [Sat, 27 Apr 2013 07:27:25 +0000 (00:27 -0700)]
Merge branch 'master' into stm-flash

11 years agoao-tools/ao-stmload: Add --verbose flag
Keith Packard [Sat, 27 Apr 2013 07:26:11 +0000 (00:26 -0700)]
ao-tools/ao-stmload: Add --verbose flag

This dumps out the serial communication so you can see where things go wrong.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Remove stdio from stm-flash
Keith Packard [Sat, 27 Apr 2013 07:25:36 +0000 (00:25 -0700)]
altos: Remove stdio from stm-flash

This saves enough memory to fit in under 4kB

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Get rodata into flash, make sure sections are aligned
Keith Packard [Sat, 27 Apr 2013 07:24:08 +0000 (00:24 -0700)]
altos: Get rodata into flash, make sure sections are aligned

.rodata* needs to be in flash; otherwise strings get left in ram.
Failing to align sections makes the initialized data get dumped into
the wrong place in memory.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Make stm-bringup build again
Keith Packard [Sat, 27 Apr 2013 07:23:14 +0000 (00:23 -0700)]
altos: Make stm-bringup build again

stm requires AO_BOOT_LOADER_BASE now

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Run self loader when application sets boot addr to 0
Keith Packard [Sat, 27 Apr 2013 07:20:47 +0000 (00:20 -0700)]
altos: Run self loader when application sets boot addr to 0

This causes the flash loader startup code to fall into the loader when
the application sets the boot address to zero.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Allow STM usb driver to be used without stdio
Keith Packard [Sat, 27 Apr 2013 07:19:13 +0000 (00:19 -0700)]
altos: Allow STM usb driver to be used without stdio

This lets the self flashing loader be linked without any of the stdio
code, which saves a bunch of memory.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoMerge remote-tracking branch 'origin/master'
Keith Packard [Fri, 26 Apr 2013 05:22:50 +0000 (22:22 -0700)]
Merge remote-tracking branch 'origin/master'

11 years agoaltos: Add TeleMega v0.3 support
Keith Packard [Fri, 26 Apr 2013 05:21:26 +0000 (22:21 -0700)]
altos: Add TeleMega v0.3 support

Includes adding SPI support to the MPU6000 driver

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Add MR25 everspin MRAM driver
Keith Packard [Fri, 26 Apr 2013 04:27:03 +0000 (21:27 -0700)]
altos: Add MR25 everspin MRAM driver

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Make SD card driver compile without radio support
Keith Packard [Fri, 26 Apr 2013 04:25:39 +0000 (21:25 -0700)]
altos: Make SD card driver compile without radio support

The SD card driver blocks the radio when trying to access the card as
that operation appears very sensitive to RFI. This fix makes the
driver work when there *isn't* a radio driver in the same device.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agodocument need for an ARM Cortex toolchain in /opt/cortex, point to build docs
Bdale Garbee [Thu, 25 Apr 2013 06:26:39 +0000 (00:26 -0600)]
document need for an ARM Cortex toolchain in /opt/cortex, point to build docs

11 years agoaltos/stm-flash: Check target flash address against AO_BOOT_APPLICATION_BASE
Keith Packard [Tue, 23 Apr 2013 02:08:35 +0000 (20:08 -0600)]
altos/stm-flash: Check target flash address against AO_BOOT_APPLICATION_BASE

Allows that value to change

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoao-tools/ao-stmload: application base moved to 0x08001000
Keith Packard [Tue, 23 Apr 2013 01:59:12 +0000 (20:59 -0500)]
ao-tools/ao-stmload: application base moved to 0x08001000

And, use a symbolic name so it can be easily moved in the future

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoao-tools: reboot to loader now uses 'X' instead of 'L'
Keith Packard [Tue, 23 Apr 2013 01:56:00 +0000 (20:56 -0500)]
ao-tools: reboot to loader now uses 'X' instead of 'L'

'L' is used by lots of other commands; switch to 'X' which is free.

Sigh. Someday we'll have words for commands instead of just letters

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Use flash loader on all STM products
Keith Packard [Tue, 23 Apr 2013 01:35:57 +0000 (20:35 -0500)]
altos: Use flash loader on all STM products

Includes the boot chain stuff

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos/stm: Provide another 4kB of flash space for apps
Keith Packard [Tue, 23 Apr 2013 01:33:33 +0000 (20:33 -0500)]
altos/stm: Provide another 4kB of flash space for apps

With the flash loader now < 4kB, we can use the spare 4kB for applications

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos/stm: Shrink stm flash loader to < 4kB
Keith Packard [Tue, 23 Apr 2013 01:32:18 +0000 (20:32 -0500)]
altos/stm: Shrink stm flash loader to < 4kB

Saves 4kB of flash space for applications.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos/stm: Allow core timer to be excluded from build
Keith Packard [Tue, 23 Apr 2013 01:30:31 +0000 (20:30 -0500)]
altos/stm: Allow core timer to be excluded from build

This removes all of the support for the base 100Hz timer from the
system, saving space when not needed

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos/stm: Don't define task macros when not tasking
Keith Packard [Tue, 23 Apr 2013 01:29:56 +0000 (20:29 -0500)]
altos/stm: Don't define task macros when not tasking

The necessary data structures aren't defined in this case.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Eliminate stdio looping when system has a single stdio source
Keith Packard [Tue, 23 Apr 2013 01:27:52 +0000 (20:27 -0500)]
altos: Eliminate stdio looping when system has a single stdio source

No need to loop if there's only one

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Move ao_notask to core
Keith Packard [Tue, 23 Apr 2013 01:24:48 +0000 (20:24 -0500)]
altos: Move ao_notask to core

The STM flash loader wants to be taskless too, share this very simple
implementation of sleep/wakeup.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos/stm: Remove USB EP0 task
Keith Packard [Tue, 23 Apr 2013 01:23:48 +0000 (20:23 -0500)]
altos/stm: Remove USB EP0 task

Handl EP0 actions from interrupt handler. This allows USB to be used
in a taskless environment, like the STM flash loader

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoMerge branch 'master' into stm-flash
Keith Packard [Mon, 22 Apr 2013 22:20:51 +0000 (17:20 -0500)]
Merge branch 'master' into stm-flash

Conflicts:
ao-tools/ao-stmload/ao-stmload.c

11 years agoRe-add telemega outline pictures
Keith Packard [Mon, 22 Apr 2013 20:53:04 +0000 (15:53 -0500)]
Re-add telemega outline pictures

after the great renaming

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Re-generate TeleMega bits
Keith Packard [Mon, 22 Apr 2013 20:15:03 +0000 (15:15 -0500)]
altos: Re-generate TeleMega bits

Lost in the great megametrum rename

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoname change from MegaMetrum to TeleMega
Bdale Garbee [Mon, 22 Apr 2013 19:00:26 +0000 (13:00 -0600)]
name change from MegaMetrum to TeleMega

11 years agoMove cortex toolchain to /opt/cortex
Keith Packard [Mon, 22 Apr 2013 16:06:36 +0000 (11:06 -0500)]
Move cortex toolchain to /opt/cortex

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosdroid: Add request for sat images to AltosDroid Notebook
Keith Packard [Mon, 22 Apr 2013 02:04:50 +0000 (21:04 -0500)]
altosdroid: Add request for sat images to AltosDroid Notebook

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosdroid: Add a few more Notebook entries
Keith Packard [Mon, 22 Apr 2013 01:53:14 +0000 (20:53 -0500)]
altosdroid: Add a few more Notebook entries

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosdroid: Bump APK version, and re-upload. altosdroid_v1.2-1
Mike Beattie [Mon, 22 Apr 2013 01:50:35 +0000 (13:50 +1200)]
altosdroid: Bump APK version, and re-upload.

Didn't re-build altoslib for the previous APK!

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltos: update .gitignore files
Mike Beattie [Mon, 22 Apr 2013 01:50:13 +0000 (13:50 +1200)]
altos: update .gitignore files

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agodocument my snazzy new 4-pin to MM v0.1 debug cable
Bdale Garbee [Sun, 21 Apr 2013 05:55:06 +0000 (23:55 -0600)]
document my snazzy new 4-pin to MM v0.1 debug cable

11 years agoaltosdroid: Add Notebook to track feature requests
Keith Packard [Sun, 21 Apr 2013 03:30:23 +0000 (22:30 -0500)]
altosdroid: Add Notebook to track feature requests

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agolibaltos: Delay after opening bluetooth device on linux
Keith Packard [Sun, 21 Apr 2013 03:16:28 +0000 (22:16 -0500)]
libaltos: Delay after opening bluetooth device on linux

Writes immediately after the open disappear sometimes.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agolibaltos: Try Bluetooth open 5 times on EBUSY
Keith Packard [Sun, 21 Apr 2013 03:05:01 +0000 (22:05 -0500)]
libaltos: Try Bluetooth open 5 times on EBUSY

After closing Bluetooth, it can take a second before the device is up
for another connection. Hang around retrying a few times.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agodoc: Start filling in details about Altos Droid flight monitoring
Keith Packard [Sun, 21 Apr 2013 02:40:47 +0000 (21:40 -0500)]
doc: Start filling in details about Altos Droid flight monitoring

This is almost all identical to AltosUI; I think we'll want to share
the two sections.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agodoc: Add a bunch of Altos Droid material to the docs
Keith Packard [Sat, 20 Apr 2013 22:38:15 +0000 (17:38 -0500)]
doc: Add a bunch of Altos Droid material to the docs

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosdroid: Release v1.2, push to play store. altosdroid_v1.2
Mike Beattie [Sun, 21 Apr 2013 02:52:56 +0000 (14:52 +1200)]
altosdroid: Release v1.2, push to play store.

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoMerge branch 'altosdroid'
Mike Beattie [Sun, 21 Apr 2013 02:51:07 +0000 (14:51 +1200)]
Merge branch 'altosdroid'

11 years agoaltosdroid: Make the service class implement locationlistener
Mike Beattie [Sun, 21 Apr 2013 02:46:41 +0000 (14:46 +1200)]
altosdroid: Make the service class implement locationlistener

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: fix up 'send last' code.
Mike Beattie [Sun, 21 Apr 2013 02:44:07 +0000 (14:44 +1200)]
altosdroid: fix up 'send last' code.

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: check for mAltosVoice being null.
Mike Beattie [Sun, 21 Apr 2013 02:41:50 +0000 (14:41 +1200)]
altosdroid: check for mAltosVoice being null.

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: set tab height based on screen density.
Mike Beattie [Sun, 21 Apr 2013 02:41:28 +0000 (14:41 +1200)]
altosdroid: set tab height based on screen density.

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: Add filters for TeleBT bluetooth devices.
Mike Beattie [Sun, 21 Apr 2013 02:40:58 +0000 (14:40 +1200)]
altosdroid: Add filters for TeleBT bluetooth devices.

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: incorrect property syntax in pad xml
Mike Beattie [Sun, 21 Apr 2013 02:40:33 +0000 (14:40 +1200)]
altosdroid: incorrect property syntax in pad xml

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: whitespace and import tidyup
Mike Beattie [Sun, 21 Apr 2013 02:40:03 +0000 (14:40 +1200)]
altosdroid: whitespace and import tidyup

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: Update distance/bearing on map tab
Keith Packard [Sat, 20 Apr 2013 22:16:50 +0000 (17:16 -0500)]
altosdroid: Update distance/bearing on map tab

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoimprove text in telebt turn-on script
Bdale Garbee [Sat, 20 Apr 2013 18:22:38 +0000 (12:22 -0600)]
improve text in telebt turn-on script

11 years agoMerge branch 'master' into droid-gps
Keith Packard [Wed, 17 Apr 2013 17:41:05 +0000 (10:41 -0700)]
Merge branch 'master' into droid-gps

11 years agoaltosdroid: Fix integer formatting in tabs
Keith Packard [Wed, 17 Apr 2013 17:38:54 +0000 (10:38 -0700)]
altosdroid: Fix integer formatting in tabs

Was trying to use AltosDroid.number for integers, which didn't work as
it expected doubles.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Disable main deploy setting for TeleGPS
Keith Packard [Wed, 17 Apr 2013 00:47:17 +0000 (17:47 -0700)]
altosui: Disable main deploy setting for TeleGPS

Just like all of the other flight computer settings, disable the main
deploy altitude configuration for TeleGPS.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Handle broken network in map tile loading
Keith Packard [Wed, 17 Apr 2013 00:33:42 +0000 (17:33 -0700)]
altosui: Handle broken network in map tile loading

Handle missing pngfiles in AltosSetMapCache by checking ImageIO.read
for null return.

Do incremental map tile downloading asynchronously so that the UI
doesn't lock up when the network is slow

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosdroid: Check for missing values
Keith Packard [Tue, 16 Apr 2013 21:22:23 +0000 (14:22 -0700)]
altosdroid: Check for missing values

When displaying numbers, check for MISSING values and display nothing

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoMerge branch 'master' into droid-gps
Keith Packard [Tue, 16 Apr 2013 06:26:33 +0000 (23:26 -0700)]
Merge branch 'master' into droid-gps

11 years agoaltosui: remove debug message from AltosFlightUI
Keith Packard [Tue, 16 Apr 2013 06:25:55 +0000 (23:25 -0700)]
altosui: remove debug message from AltosFlightUI

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoMerge branch 'master' into droid-gps
Keith Packard [Tue, 16 Apr 2013 06:19:44 +0000 (23:19 -0700)]
Merge branch 'master' into droid-gps

11 years agoaltoslib: Check for null state.gps before accessing it in eeprom records
Keith Packard [Tue, 16 Apr 2013 06:14:22 +0000 (23:14 -0700)]
altoslib: Check for null state.gps before accessing it in eeprom records

Used to be we'd set state.gps to garbage before seeing the first GPS
record; now we leave it null, which will cause crashes for code that
doesn't expect it. The code for reading and replaying eeprom data was
not checking and was nicely crashing as a result.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoMerge branch 'master' into droid-gps
Keith Packard [Mon, 15 Apr 2013 03:02:10 +0000 (20:02 -0700)]
Merge branch 'master' into droid-gps

11 years agomicropeak: Oops. Lost the call to actually start downloading data
Keith Packard [Sun, 14 Apr 2013 21:54:52 +0000 (14:54 -0700)]
micropeak: Oops. Lost the call to actually start downloading data

Lost when adding the 'help' text somehow; presumably a debugging issue.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosdroid: Update UI even if no telem has been received. Center map.
Keith Packard [Sat, 13 Apr 2013 19:13:18 +0000 (12:13 -0700)]
altosdroid: Update UI even if no telem has been received. Center map.

This allows the receiver location to be displayed even when telemetry
is not.

Center the map on the first valid location, either receiver or
rocket. Update center if a significantly more precise location is received.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosdroid: Get rid of a couple of startup messages
Keith Packard [Sat, 13 Apr 2013 18:45:23 +0000 (11:45 -0700)]
altosdroid: Get rid of a couple of startup messages

These are just annoying

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosdroid: Show our position in the map tab. Squeeze to fit phones
Keith Packard [Sat, 13 Apr 2013 18:39:14 +0000 (11:39 -0700)]
altosdroid: Show our position in the map tab. Squeeze to fit phones

Shrink everything to fit on phones, then add phone location to the map tab

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoMerge branch 'master' into droid-gps
Keith Packard [Sat, 13 Apr 2013 17:51:04 +0000 (10:51 -0700)]
Merge branch 'master' into droid-gps

11 years agoaltosdroid: Shrink text so it fits on my phone
Keith Packard [Sat, 13 Apr 2013 17:50:26 +0000 (10:50 -0700)]
altosdroid: Shrink text so it fits on my phone

Yes, this is a hack; will try to figure out how to make it resizeable

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoWindows: Add all of the AltusMetrum USB IDs to telemetrum.inf
Keith Packard [Sat, 13 Apr 2013 17:39:14 +0000 (10:39 -0700)]
Windows: Add all of the AltusMetrum USB IDs to telemetrum.inf

This should make Windows load the driver

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agolibaltos: Retry Windows serial port open five times
Keith Packard [Fri, 12 Apr 2013 05:16:03 +0000 (22:16 -0700)]
libaltos: Retry Windows serial port open five times

Maybe this helps?

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Make sure the packet format is set reasonably for radio test
Keith Packard [Fri, 12 Apr 2013 10:09:16 +0000 (03:09 -0700)]
altos: Make sure the packet format is set reasonably for radio test

Dunno if this matters, but it might as well be set reasonably

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltoslib: Remove spurious debug message
Keith Packard [Fri, 12 Apr 2013 07:55:59 +0000 (00:55 -0700)]
altoslib: Remove spurious debug message

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Don't include bufio debug commands by default
Keith Packard [Fri, 12 Apr 2013 09:42:37 +0000 (02:42 -0700)]
altos: Don't include bufio debug commands by default

We shouldn't need these

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Stick a mutex around FAT operations
Keith Packard [Fri, 12 Apr 2013 09:35:15 +0000 (02:35 -0700)]
altos: Stick a mutex around FAT operations

This allows the command line and logging operations to occur safely in parallel

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Delay while waking up SD card a bit
Keith Packard [Fri, 12 Apr 2013 08:55:33 +0000 (01:55 -0700)]
altos: Delay while waking up SD card a bit

This seems to make bringing the card from idle to ready mode more
reliable. If you spam the card with requests, it will eventually
whinge and shut down communications.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosdroid: The Map already draws our location; no receiver marker needed
Keith Packard [Fri, 12 Apr 2013 08:04:55 +0000 (01:04 -0700)]
altosdroid: The Map already draws our location; no receiver marker needed

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosdroid: Check state.gps != null before using it
Keith Packard [Fri, 12 Apr 2013 08:00:36 +0000 (01:00 -0700)]
altosdroid: Check state.gps != null before using it

Avoid crashing.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltoslib: Remove spurious debug message
Keith Packard [Fri, 12 Apr 2013 07:55:59 +0000 (00:55 -0700)]
altoslib: Remove spurious debug message

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosdroid: Compute course from android device to rocket, display it
Keith Packard [Fri, 12 Apr 2013 07:19:24 +0000 (00:19 -0700)]
altosdroid: Compute course from android device to rocket, display it

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltoslib: Add range and elevation to AltosGreatCircle
Keith Packard [Fri, 12 Apr 2013 06:56:47 +0000 (23:56 -0700)]
altoslib: Add range and elevation to AltosGreatCircle

Move the computations from AltosState here so they can be re-used elsewhere.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosdroid: Mike was right -- only need one LocationListener
Keith Packard [Fri, 12 Apr 2013 05:39:14 +0000 (22:39 -0700)]
altosdroid: Mike was right -- only need one LocationListener

I mis-read the docs and thought we needed two listeners, one for GPS
and one for network position. Looks like we don't

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosdroid: Send LOCATION and CRC_ERROR messages to UI.
Keith Packard [Fri, 12 Apr 2013 05:34:36 +0000 (22:34 -0700)]
altosdroid: Send LOCATION and CRC_ERROR messages to UI.

This collects all position changes and crc error increments and sends
them along to the UI for presentation.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosdroid: Hook up the position listeners
Keith Packard [Fri, 12 Apr 2013 05:16:25 +0000 (22:16 -0700)]
altosdroid: Hook up the position listeners

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agodoc: Add an outline of an AltosDroid chapter
Keith Packard [Tue, 9 Apr 2013 21:53:25 +0000 (14:53 -0700)]
doc: Add an outline of an AltosDroid chapter

Not much content yet, but I think this is pretty much the sections we need

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltoslib/altosui: Adapt monitor idle to new AltosListenerState
Keith Packard [Tue, 9 Apr 2013 07:38:25 +0000 (00:38 -0700)]
altoslib/altosui: Adapt monitor idle to new AltosListenerState

Move the receiver battery monitoring to the new spot

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltoslib/altosui: Carry receiver status around in AltosListenerState
Keith Packard [Tue, 9 Apr 2013 07:28:05 +0000 (00:28 -0700)]
altoslib/altosui: Carry receiver status around in AltosListenerState

This moves the crc_errors into the new structure and adds a receiver
battery voltage value there as well. Now the receiver status can be
monitored separately from the flight status. That also means that code
receiving state updates should be prepared to accept missing listener
or flight state values.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Monitor battery voltage on telebt
Keith Packard [Tue, 9 Apr 2013 00:42:18 +0000 (17:42 -0700)]
altos: Monitor battery voltage on telebt

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Tue, 9 Apr 2013 00:02:37 +0000 (18:02 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

11 years agoaltos: Create telebt-v1.0 product. Remove old telebt products
Keith Packard [Mon, 8 Apr 2013 23:48:40 +0000 (16:48 -0700)]
altos: Create telebt-v1.0 product. Remove old telebt products

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Create telebt-v1.0 product. Remove old telebt products
Keith Packard [Mon, 8 Apr 2013 23:48:40 +0000 (16:48 -0700)]
altos: Create telebt-v1.0 product. Remove old telebt products

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Try RDF mode for TX calibration
Keith Packard [Sun, 7 Apr 2013 06:48:36 +0000 (23:48 -0700)]
altos: Try RDF mode for TX calibration

Trying to get the radio to stop modulating the carrier when
calibrating the radio, we'll try RDF mode which says no preamble or
sync data. This might shift the frequency though?

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Graph TeleMini flights without crashing
Keith Packard [Wed, 3 Apr 2013 00:44:06 +0000 (17:44 -0700)]
altosui: Graph TeleMini flights without crashing

Adding maps to the graph UI failed to check for missing GPS data in a
couple of places causing crashes when fed a TeleMini file.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Display current GPS in 'pad' tab for 'startup' staten
Keith Packard [Wed, 3 Apr 2013 00:29:40 +0000 (17:29 -0700)]
altosui: Display current GPS in 'pad' tab for 'startup' staten

This is the state for telegps, so just display the current GPS info as
we don't know where it started at.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Hide flight-related tabs for telegps
Keith Packard [Tue, 2 Apr 2013 23:48:05 +0000 (16:48 -0700)]
altosui: Hide flight-related tabs for telegps

Products without a flight state don't need ascent/descent/landed tabs.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Don't display missing sensor data
Keith Packard [Tue, 2 Apr 2013 23:47:07 +0000 (16:47 -0700)]
altosui: Don't display missing sensor data

For devices without sensors, don't display temperature, barometric and
accelerometer-derived values.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltoslib: Make any incoming telem packet update the RSSI value
Keith Packard [Tue, 2 Apr 2013 23:44:58 +0000 (16:44 -0700)]
altoslib: Make any incoming telem packet update the RSSI value

Every packet has RSSI info, so use the latest one available. This
makes telegps RSSI available as it never sends sensor packets (having
no sensors).

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoSet telegps USB id to 0025
Keith Packard [Tue, 2 Apr 2013 23:43:53 +0000 (16:43 -0700)]
Set telegps USB id to 0025

It was accidentally using the same ID as megadongle...

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Shorten SD initialization timeouts.
Keith Packard [Tue, 2 Apr 2013 23:41:29 +0000 (16:41 -0700)]
altos: Shorten SD initialization timeouts.

This makes failure when no card is present much quicker.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Horrible kludge -- disable radio while talking with SD card
Keith Packard [Mon, 1 Apr 2013 09:39:35 +0000 (02:39 -0700)]
altos: Horrible kludge -- disable radio while talking with SD card

The SD card really doesn't like the RFI generated by our enormous
radio, so just lock the radio out while working with the card.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Add defines for the specific pins used for telegps SPI
Keith Packard [Mon, 1 Apr 2013 09:10:14 +0000 (02:10 -0700)]
altos: Add defines for the specific pins used for telegps SPI

These aren't needed at this point, but who knows?

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