fw/altos
11 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos 1.1
Bdale Garbee [Thu, 13 Sep 2012 21:36:37 +0000 (15:36 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

11 years agodoc: Document imperial units and groundstation configuration
Keith Packard [Thu, 13 Sep 2012 07:35:27 +0000 (00:35 -0700)]
doc: Document imperial units and groundstation configuration

What it says on the tin.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Thu, 13 Sep 2012 06:58:30 +0000 (00:58 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

11 years agoaltosui: Exit with an error status when file processing fails
Keith Packard [Thu, 13 Sep 2012 06:56:18 +0000 (23:56 -0700)]
altosui: Exit with an error status when file processing fails

If the user provides any files on the command line, and if processing
them fails in some way, exit immediately with an error indication.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Leave new_gps indication until gps value is used
Keith Packard [Thu, 13 Sep 2012 05:40:57 +0000 (22:40 -0700)]
altosui: Leave new_gps indication until gps value is used

During replay, AltosState may not see a new GPS value as soon as it
lands in the state field as additional records with the same timestamp
may come in after the GPS record.

Instead of resetting the new_gps indication when the new record is
created, wait until the new_gps indication is seen by the AltosState
update code and have that clear the new_gps indication.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Stop downloading eeprom data on a block full of invalid data
Keith Packard [Thu, 13 Sep 2012 04:32:25 +0000 (21:32 -0700)]
altosui: Stop downloading eeprom data on a block full of invalid data

When no valid records are found within an eeprom block, we assume that
no more data will be found within the entire storage area.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agodocument workaround for 'make fat' not building altoslib
Bdale Garbee [Thu, 13 Sep 2012 03:50:25 +0000 (21:50 -0600)]
document workaround for 'make fat' not building altoslib

11 years agoupdate Releasing for non-native versioning and builds on debian branch
Bdale Garbee [Thu, 13 Sep 2012 01:50:07 +0000 (19:50 -0600)]
update Releasing for non-native versioning and builds on debian branch

11 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Thu, 13 Sep 2012 01:49:51 +0000 (19:49 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

11 years agoaltosui: Serialize data access in TD config code
Keith Packard [Wed, 12 Sep 2012 23:07:41 +0000 (16:07 -0700)]
altosui: Serialize data access in TD config code

Setting the values was being done in the UI thread instead of the
Serial thread, which left the serial thread with uninitialized values
when it went to update the displayed value for the current
frequency. All fixed now.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Lock access to preferences data
Keith Packard [Wed, 12 Sep 2012 23:06:59 +0000 (16:06 -0700)]
altosui: Lock access to preferences data

These are accessed by several different threads, so keep things sane
by just holding locks across all access.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Add multi-sized icons to all windows
Keith Packard [Wed, 12 Sep 2012 20:07:01 +0000 (13:07 -0700)]
altosui: Add multi-sized icons to all windows

This lets the window system pick a better size for presentation

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoReference specific dependent jars in the AltosUI launchers
Tom Marble [Wed, 12 Sep 2012 15:05:42 +0000 (10:05 -0500)]
Reference specific dependent jars in the AltosUI launchers

11 years agodoc: Mention changes to flight data download UI
Keith Packard [Wed, 12 Sep 2012 09:30:59 +0000 (02:30 -0700)]
doc: Mention changes to flight data download UI

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Initialize flight velocity to zero when reading eeprom files
Keith Packard [Wed, 12 Sep 2012 09:26:32 +0000 (02:26 -0700)]
altosui: Initialize flight velocity to zero when reading eeprom files

Otherwise, the integration of velocity will start at MISSING and get
stranger. Fortunately, we know the initial velocity of the rocket when
sitting on the pad.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Don't say a decimal point for distances in meters
Keith Packard [Wed, 12 Sep 2012 06:37:20 +0000 (23:37 -0700)]
altosui: Don't say a decimal point for distances in meters

Useful for distances in miles, but not meters.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Initialize imperial units checkbox with correct value
Keith Packard [Wed, 12 Sep 2012 06:36:26 +0000 (23:36 -0700)]
altosui: Initialize imperial units checkbox with correct value

Use imperial units preference instead of serial debug preference. Cut
& paste programming failure...

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Wed, 12 Sep 2012 06:26:21 +0000 (00:26 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

11 years agoClean up Windows event handles on com port close
Keith Packard [Wed, 12 Sep 2012 06:04:19 +0000 (23:04 -0700)]
Clean up Windows event handles on com port close

This avoids having to wait for the receiver to timeout before we can
open the same com port again.

This patch also adds a bit more debugging -- it prints Windows error
messages to stdout along with the file/line where the error was generated.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoInclude AltosLib.jar in windows install
Keith Packard [Wed, 12 Sep 2012 05:03:17 +0000 (22:03 -0700)]
Include AltosLib.jar in windows install

Otherwise, altosui doesn't do much.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoreleasing 1.1
Bdale Garbee [Wed, 12 Sep 2012 04:17:22 +0000 (22:17 -0600)]
releasing 1.1

11 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Tom Marble [Wed, 12 Sep 2012 03:50:18 +0000 (22:50 -0500)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

11 years agoAdded the feature to AC to default --with-android to $ANDROID_SDK (if set)
Tom Marble [Wed, 12 Sep 2012 03:48:04 +0000 (22:48 -0500)]
Added the feature to AC to default --with-android to $ANDROID_SDK (if set)
Fixed typos in altosui/Makefile.am (had removed JCOMMON, but it's from AC)
Jenkins changes:
- added android sdk
- will now record artifacts: altoslib/AltosLib.jar,altosui/altosui.jar,**/*.apk

11 years agoUse ft/s for imperial speeds
Keith Packard [Tue, 11 Sep 2012 22:53:36 +0000 (15:53 -0700)]
Use ft/s for imperial speeds

Bob Brown thinks this unit will be more useful than mph

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoAdd Version 1.1 release notes.
Keith Packard [Tue, 11 Sep 2012 22:30:45 +0000 (15:30 -0700)]
Add Version 1.1 release notes.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Imperial units for graphs too
Keith Packard [Tue, 11 Sep 2012 08:00:05 +0000 (01:00 -0700)]
altosui: Imperial units for graphs too

Just to be consistent

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoReverted package name to 'altosui' from 'AltosUI'
Tom Marble [Tue, 11 Sep 2012 17:54:31 +0000 (12:54 -0500)]
Reverted package name to 'altosui' from 'AltosUI'
Also added emacs backup regex (*~) to .gitignore

11 years agoAdd appropriate Java build deps as given from autoconf
Tom Marble [Tue, 11 Sep 2012 17:44:24 +0000 (12:44 -0500)]
Add appropriate Java build deps as given from autoconf

11 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Tom Marble [Tue, 11 Sep 2012 16:39:22 +0000 (11:39 -0500)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

11 years agoUse explicit build deps for altosui (avoids * wildcarding)
Tom Marble [Tue, 11 Sep 2012 16:37:14 +0000 (11:37 -0500)]
Use explicit build deps for altosui (avoids * wildcarding)

11 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Tue, 11 Sep 2012 16:35:04 +0000 (10:35 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

11 years agoupdate Debian build-deps in preparation for 1.1 release
Bdale Garbee [Tue, 11 Sep 2012 16:34:00 +0000 (10:34 -0600)]
update Debian build-deps in preparation for 1.1 release

11 years agoFix Latin-1 encoded copyright symbols in AltosDroid java code
Keith Packard [Tue, 11 Sep 2012 07:49:48 +0000 (00:49 -0700)]
Fix Latin-1 encoded copyright symbols in AltosDroid java code

Otherwise, we get complaints when compiling these files.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoChanged package name from altosui to AltosUI
Tom Marble [Mon, 10 Sep 2012 21:54:27 +0000 (16:54 -0500)]
Changed package name from altosui to AltosUI

11 years agoTest commit (comment) to confirm push works
Tom Marble [Mon, 10 Sep 2012 19:50:37 +0000 (14:50 -0500)]
Test commit (comment) to confirm push works

11 years agoaltosui: Use units conversion functions everywhere.
Keith Packard [Mon, 10 Sep 2012 16:16:04 +0000 (09:16 -0700)]
altosui: Use units conversion functions everywhere.

Provide a configuration option to select imperial units and use them everywhere

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltoslib: Add imperial units conversion support
Keith Packard [Mon, 10 Sep 2012 16:14:03 +0000 (09:14 -0700)]
altoslib: Add imperial units conversion support

"Redneck" mode support

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoBump version to 1.0.9.7
Keith Packard [Sun, 9 Sep 2012 21:02:57 +0000 (14:02 -0700)]
Bump version to 1.0.9.7

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos/telelco: Search for available firing nodes at boot time
Keith Packard [Sun, 9 Sep 2012 21:01:21 +0000 (14:01 -0700)]
altos/telelco: Search for available firing nodes at boot time

Query for available firing nodes, limiting device selections to those found.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos/telefire: Add steady warble when the LCO arm switch is on
Keith Packard [Sun, 9 Sep 2012 20:58:29 +0000 (13:58 -0700)]
altos/telefire: Add steady warble when the LCO arm switch is on

And make debugging a run-time option too.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos/stm: Fix basic time interval to 10ms -- was 10.1ms
Keith Packard [Sun, 9 Sep 2012 20:57:16 +0000 (13:57 -0700)]
altos/stm: Fix basic time interval to 10ms -- was 10.1ms

Counting from 0 to 100 takes 10.1ms, so count to 99 instead.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos/spiradio: Label LEDs so that the radio code can use them
Keith Packard [Sun, 9 Sep 2012 20:56:35 +0000 (13:56 -0700)]
altos/spiradio: Label LEDs so that the radio code can use them

Mark which should be on for TX and which for RX

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Try to get remote cmac time closer to reality
Keith Packard [Sun, 9 Sep 2012 20:50:56 +0000 (13:50 -0700)]
altos: Try to get remote cmac time closer to reality

Record the time after the packet was sent, but before the return
packet arrives to try and more closely approximate the time the packet
arrived at the other end.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Clean up flight data definitions
Keith Packard [Sun, 9 Sep 2012 20:46:23 +0000 (13:46 -0700)]
altos: Clean up flight data definitions

These just shuffle the various definitions of data macros around to
make the include files more sensible looking.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: include ao_arch_funcs.h at the very end of ao.h
Keith Packard [Sun, 9 Sep 2012 20:43:45 +0000 (13:43 -0700)]
altos: include ao_arch_funcs.h at the very end of ao.h

Move it below the definition of the ms5607 init function

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Allow products without MS5607
Keith Packard [Sun, 9 Sep 2012 20:11:57 +0000 (13:11 -0700)]
altos: Allow products without MS5607

The define for a missing MS5607 was wrong, so anything using the fancy
multi-sensor data code would break without an MS5607 in place.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoao_tools/ao-send-telem: Only start real-time on valid states
Keith Packard [Sun, 9 Sep 2012 20:10:07 +0000 (13:10 -0700)]
ao_tools/ao-send-telem: Only start real-time on valid states

Check state to make sure it is < ao_flight_landed to keep invalid
states from switching to real-time playback mode.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltoslib: Add in a bunch of java files mising after Mike's cleanups
Keith Packard [Sun, 9 Sep 2012 20:09:27 +0000 (13:09 -0700)]
altoslib: Add in a bunch of java files mising after Mike's cleanups

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoMerge remote-tracking branch 'mjb/altoslib_mjb'
Keith Packard [Sun, 9 Sep 2012 20:03:47 +0000 (13:03 -0700)]
Merge remote-tracking branch 'mjb/altoslib_mjb'

11 years agoaltosui: Use helper functions to access arrays in AltosLib class
Keith Packard [Sun, 9 Sep 2012 19:29:32 +0000 (12:29 -0700)]
altosui: Use helper functions to access arrays in AltosLib class

These deal with out-of-range values correctly, instead of causing
exceptions that will just break stuff.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Catch errors in state value when saving flight logs
Keith Packard [Sun, 9 Sep 2012 19:20:08 +0000 (12:20 -0700)]
altosui: Catch errors in state value when saving flight logs

Use AltosLib.state_name() instead of directly accessing the
state_to_string array so that any invalid state values are caught and
replaced with 'invalid' instead of raising an exception.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltoslib: move distinct classes to separate files.
Mike Beattie [Fri, 7 Sep 2012 06:19:43 +0000 (18:19 +1200)]
altoslib: move distinct classes to separate files.

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltoslib: remove obsolete class
Mike Beattie [Fri, 7 Sep 2012 06:19:07 +0000 (18:19 +1200)]
altoslib: remove obsolete class

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltoslib: move distinct classes to separate files
Mike Beattie [Fri, 7 Sep 2012 06:11:13 +0000 (18:11 +1200)]
altoslib: move distinct classes to separate files

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltoslib: remove duplicate AltosGPSQuery class
Mike Beattie [Fri, 7 Sep 2012 06:10:21 +0000 (18:10 +1200)]
altoslib: remove duplicate AltosGPSQuery class

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltoslib: remove duplicate AltosIdleMonitor class
Mike Beattie [Fri, 7 Sep 2012 06:09:37 +0000 (18:09 +1200)]
altoslib: remove duplicate AltosIdleMonitor class

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltoslib: rename AltosIdleRecordTM.java to AltosGPSQuery.java
Mike Beattie [Fri, 7 Sep 2012 06:07:45 +0000 (18:07 +1200)]
altoslib: rename AltosIdleRecordTM.java to AltosGPSQuery.java

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltoslib: remove dead code
Mike Beattie [Fri, 7 Sep 2012 05:53:20 +0000 (17:53 +1200)]
altoslib: remove dead code

(if object creation fails, an exception will be thrown - not return null)

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltoslib: resolve argument/variable ambiguity
Mike Beattie [Fri, 7 Sep 2012 05:52:27 +0000 (17:52 +1200)]
altoslib: resolve argument/variable ambiguity

(and comment out set_flags() which had no corresponding variable anyway)

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltoslib: comment out unused methods
Mike Beattie [Fri, 7 Sep 2012 05:39:25 +0000 (17:39 +1200)]
altoslib: comment out unused methods

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltoslib: access static variables via class, not instance
Mike Beattie [Fri, 7 Sep 2012 05:35:29 +0000 (17:35 +1200)]
altoslib: access static variables via class, not instance

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltoslib: comment out un-used variables
Mike Beattie [Fri, 7 Sep 2012 05:34:17 +0000 (17:34 +1200)]
altoslib: comment out un-used variables

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltoslib: Remove un-needed imports
Mike Beattie [Fri, 7 Sep 2012 05:32:07 +0000 (17:32 +1200)]
altoslib: Remove un-needed imports

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltos: Fix radio slave to run lights in the normal way
Keith Packard [Fri, 7 Sep 2012 01:07:33 +0000 (18:07 -0700)]
altos: Fix radio slave to run lights in the normal way

These were left in a debug mode, toggling instead of flashing.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoRevert "first work on PWM input to TeleScience, 'p' command displays timer 1"
Keith Packard [Sat, 1 Sep 2012 05:15:16 +0000 (00:15 -0500)]
Revert "first work on PWM input to TeleScience, 'p' command displays timer 1"

PWM bits not suitable for master

This reverts commit e93c6bcc799d76d4ff425815e2601a25e6796229.

11 years agoRevert "Timer 3 working with slower clock and all 16 bits."
Keith Packard [Sat, 1 Sep 2012 05:15:02 +0000 (00:15 -0500)]
Revert "Timer 3 working with slower clock and all 16 bits."

PWM bits not suitable for master

This reverts commit 49b1ff4c614d24977b33cd17b583acc87acff476.

11 years agoRevert "ICP3 working"
Keith Packard [Sat, 1 Sep 2012 05:14:49 +0000 (00:14 -0500)]
Revert "ICP3 working"

PWM bits not suitable for master

This reverts commit 75d6aa6f798606f1a6c5a46542065dda81e63b2a.

11 years agoRevert "telescience: correctly calculating rate values with higher resolution"
Keith Packard [Sat, 1 Sep 2012 05:14:27 +0000 (00:14 -0500)]
Revert "telescience: correctly calculating rate values with higher resolution"

PWM bits not suitable for master

This reverts commit ada6f2dfc045e77cb9499f20cdec1b4a54ef0db1.

11 years agoMerge remote-tracking branch 'mjb/freq_menu'
Keith Packard [Sat, 1 Sep 2012 03:24:16 +0000 (22:24 -0500)]
Merge remote-tracking branch 'mjb/freq_menu'

11 years agoaltos: Get mma655x driver limping along
Keith Packard [Sat, 1 Sep 2012 03:19:40 +0000 (22:19 -0500)]
altos: Get mma655x driver limping along

This appears to drive the chip correctly to see values from the accelerometer.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Fix mma665x pin assigment for mma655x
Keith Packard [Sat, 1 Sep 2012 02:02:13 +0000 (21:02 -0500)]
altos: Fix mma665x pin assigment for mma655x

It's on PE13-PE15, not PA5-PA7

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Add custom panic noise for self-test failures
Keith Packard [Sat, 1 Sep 2012 02:01:21 +0000 (21:01 -0500)]
altos: Add custom panic noise for self-test failures

Make it easier to tell which component is failing self test

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltoslib: add missing manufacturer parsing for AltosConfigData
Mike Beattie [Fri, 31 Aug 2012 05:53:53 +0000 (17:53 +1200)]
altoslib: add missing manufacturer parsing for AltosConfigData

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: invert channel/freq ordering
Mike Beattie [Fri, 31 Aug 2012 05:42:22 +0000 (17:42 +1200)]
altosdroid: invert channel/freq ordering

Matches Channel Selector in altosui

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: also display channel numbers
Mike Beattie [Fri, 31 Aug 2012 04:50:53 +0000 (16:50 +1200)]
altosdroid: also display channel numbers

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoao-send-telem: fix frequency set command
Mike Beattie [Fri, 31 Aug 2012 04:39:10 +0000 (16:39 +1200)]
ao-send-telem: fix frequency set command

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: complete frequency change dialog
Mike Beattie [Fri, 31 Aug 2012 04:38:21 +0000 (16:38 +1200)]
altosdroid: complete frequency change dialog

Also implement Service IPC to action request.

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: Start a hacked-up frequency dialog
Keith Packard [Fri, 31 Aug 2012 04:07:43 +0000 (23:07 -0500)]
altosdroid: Start a hacked-up frequency dialog

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: another .gitignore file
Keith Packard [Thu, 30 Aug 2012 21:30:04 +0000 (16:30 -0500)]
altos: another .gitignore file

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: ao_cc_spi.h isn't necessary for telelco
Keith Packard [Thu, 30 Aug 2012 21:28:53 +0000 (16:28 -0500)]
altos: ao_cc_spi.h isn't necessary for telelco

The SPI radio defines are in ao_radio_spi.h

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoMerge remote-tracking branch 'mjb/master'
Keith Packard [Thu, 30 Aug 2012 21:24:38 +0000 (16:24 -0500)]
Merge remote-tracking branch 'mjb/master'

11 years agoaltos: Add a bunch of .gitignore entries
Keith Packard [Thu, 30 Aug 2012 21:22:51 +0000 (16:22 -0500)]
altos: Add a bunch of .gitignore entries

Clean up the git status output

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Shuffle LCO functions around, add telelco first cut
Keith Packard [Thu, 30 Aug 2012 21:16:52 +0000 (16:16 -0500)]
altos: Shuffle LCO functions around, add telelco first cut

Pull LCO functions shared between LCO UI and command line into
ao_lco_funcs.c.

Import bits for telelco.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Disable debug printfs and fix pad ignite time for telefire
Keith Packard [Thu, 30 Aug 2012 21:14:57 +0000 (16:14 -0500)]
altos: Disable debug printfs and fix pad ignite time for telefire

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosdroid: Implement voice just like altosui
Mike Beattie [Thu, 30 Aug 2012 09:08:41 +0000 (21:08 +1200)]
altosdroid: Implement voice just like altosui

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: Move bluetooth check to first task
Mike Beattie [Thu, 30 Aug 2012 09:08:06 +0000 (21:08 +1200)]
altosdroid: Move bluetooth check to first task

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: add rssi/serial/flight, and re-work UI ordering
Mike Beattie [Thu, 30 Aug 2012 01:23:29 +0000 (13:23 +1200)]
altosdroid: add rssi/serial/flight, and re-work UI ordering

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: rename ambiguous TextView name
Mike Beattie [Thu, 30 Aug 2012 01:23:04 +0000 (13:23 +1200)]
altosdroid: rename ambiguous TextView name

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: formatting/whitespace, correct ids
Mike Beattie [Thu, 30 Aug 2012 01:21:38 +0000 (13:21 +1200)]
altosdroid: formatting/whitespace, correct ids

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: rework lat/lon to more common format
Mike Beattie [Thu, 30 Aug 2012 01:20:10 +0000 (13:20 +1200)]
altosdroid: rework lat/lon to more common format

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: rename azimuth/altitude to elevation/height respectively.
Mike Beattie [Thu, 30 Aug 2012 01:19:41 +0000 (13:19 +1200)]
altosdroid: rename azimuth/altitude to elevation/height respectively.

(Matches altoslib, altosui, altos)

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: move units into code, to match altosui
Mike Beattie [Thu, 30 Aug 2012 01:13:20 +0000 (13:13 +1200)]
altosdroid: move units into code, to match altosui

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoMerge remote-tracking branch 'mjb/master'
Keith Packard [Wed, 29 Aug 2012 18:29:24 +0000 (11:29 -0700)]
Merge remote-tracking branch 'mjb/master'

Pull in Mike's fancy new AltosDroid bits

11 years agoaltos: spiradio debug serial is port 1, not port 0
Keith Packard [Wed, 29 Aug 2012 18:25:36 +0000 (11:25 -0700)]
altos: spiradio debug serial is port 1, not port 0

The SPI link uses port 0; it seems like the having the two try to
share the same wires is a bad plan.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: SPI radio - use 1->0 for 'done' and 0->1 for 'ready'
Keith Packard [Wed, 29 Aug 2012 18:23:13 +0000 (11:23 -0700)]
altos: SPI radio - use 1->0 for 'done' and 0->1 for 'ready'

This changes how the SPI radio protocol uses the interrupt
line. Instead of a pulse indicating operation done, this now uses a 0
value for done and a 1 value for ready. The key distinction is that
the master can tell when the slave is waiting for the next command
instead of hoping that it got done 'soon enough'.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: fix ao_pad debug output for query command
Keith Packard [Wed, 29 Aug 2012 18:22:02 +0000 (11:22 -0700)]
altos: fix ao_pad debug output for query command

Igniter status is an array these days.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Use updated pad protocol for lco commands
Keith Packard [Wed, 29 Aug 2012 18:21:09 +0000 (11:21 -0700)]
altos: Use updated pad protocol for lco commands

Stop using the older single-channel protocol and switch to the new
multi-channel protocol

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Note changes to configured AES key for SPI radio convenience
Keith Packard [Wed, 29 Aug 2012 18:19:17 +0000 (11:19 -0700)]
altos: Note changes to configured AES key for SPI radio convenience

Keep a sequence number to mark when the AES key is changed so that the
radio code can avoid sending the key before every CMAC radio operation.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Wait for IN dma complete on slave SPI send
Keith Packard [Wed, 29 Aug 2012 18:16:42 +0000 (11:16 -0700)]
altos: Wait for IN dma complete on slave SPI send

SPI send double buffered, so the DMA completes one byte too early. Use
the recv DMA to know when the SPI transfer is complete.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosdroid: initial attempt at a UI.
Mike Beattie [Wed, 29 Aug 2012 13:01:06 +0000 (01:01 +1200)]
altosdroid: initial attempt at a UI.

Signed-off-by: Mike Beattie <mike@ethernal.org>