fw/altos
11 years agoaltosdroid: convert spaces to tabs in strings.xml
Mike Beattie [Thu, 7 Mar 2013 07:53:26 +0000 (20:53 +1300)]
altosdroid: convert spaces to tabs in strings.xml

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: adjust release Makefile target
Mike Beattie [Thu, 7 Mar 2013 07:49:41 +0000 (20:49 +1300)]
altosdroid: adjust release Makefile target

* Rename target
* Add dependency on unsigned release APK
* use $(ZIPALIGN) variable

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: Symlink red/green/gray LEDs via build system
Mike Beattie [Thu, 7 Mar 2013 07:48:16 +0000 (20:48 +1300)]
altosdroid: Symlink red/green/gray LEDs via build system

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: Adjust build system for GMaps & Tabs support
Mike Beattie [Thu, 7 Mar 2013 06:23:39 +0000 (19:23 +1300)]
altosdroid: Adjust build system for GMaps & Tabs support

* Use SupportV4 library for Tab support
* Use Google Services Lib for Google Maps
* revert to a standard Android target, not Google API's
* Add permissions required for Google Maps to manifest, and API key

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: adjust Makefile rules
Mike Beattie [Thu, 7 Mar 2013 06:05:43 +0000 (19:05 +1300)]
altosdroid: adjust Makefile rules

separate altoslib linking and, making of external lib directory.

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: use a glob for source files
Mike Beattie [Thu, 7 Mar 2013 06:02:48 +0000 (19:02 +1300)]
altosdroid: use a glob for source files

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: Only update BuildInfo.java when other source files change
Mike Beattie [Thu, 7 Mar 2013 05:59:30 +0000 (18:59 +1300)]
altosdroid: Only update BuildInfo.java when other source files change

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: Fix up some formatting in manifest
Mike Beattie [Thu, 7 Mar 2013 05:54:45 +0000 (18:54 +1300)]
altosdroid: Fix up some formatting in manifest

(And add flag to allow settings backup by google services)

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: minor whitespace cleanup
Mike Beattie [Thu, 7 Mar 2013 05:51:27 +0000 (18:51 +1300)]
altosdroid: minor whitespace cleanup

(damn my OCD!)

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: update copyrights/licensing
Mike Beattie [Thu, 7 Mar 2013 05:46:32 +0000 (18:46 +1300)]
altosdroid: update copyrights/licensing

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: excise old code/xml
Mike Beattie [Fri, 15 Feb 2013 09:09:16 +0000 (22:09 +1300)]
altosdroid: excise old code/xml

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoall: clean up .gitignore files and Makefile clean targets
Mike Beattie [Fri, 15 Feb 2013 08:59:08 +0000 (21:59 +1300)]
all: clean up .gitignore files and Makefile clean targets

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosui: Fix AltosLanded call to AltosGraphUI
Keith Packard [Mon, 11 Feb 2013 19:40:38 +0000 (11:40 -0800)]
altosui: Fix AltosLanded call to AltosGraphUI

Changed the argument from String to File but forgot this one.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Remove graph series which aren't available
Keith Packard [Mon, 11 Feb 2013 18:34:47 +0000 (10:34 -0800)]
altosui: Remove graph series which aren't available

Make sure all graph series have actual data underlying them by
checking the available data before creating the series objects.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Stick file basename in graph window title
Keith Packard [Mon, 11 Feb 2013 18:31:24 +0000 (10:31 -0800)]
altosui: Stick file basename in graph window title

The title was empty before, this seems more useful than that.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosuilib: rescale axis when enabling data series
Keith Packard [Mon, 11 Feb 2013 18:24:34 +0000 (10:24 -0800)]
altosuilib: rescale axis when enabling data series

This makes sure new series are visible when you enable them.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agomicropeak: Remove Info.plist
Keith Packard [Mon, 11 Feb 2013 03:33:50 +0000 (19:33 -0800)]
micropeak: Remove Info.plist

It's built from Info.plist.in

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoBuild Windows .nsi files in configure script
Keith Packard [Mon, 11 Feb 2013 03:01:41 +0000 (19:01 -0800)]
Build Windows .nsi files in configure script

These need the library version numbers embedded in them.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Add map and GPS data to graph window. Trac #50
Keith Packard [Sun, 10 Feb 2013 23:34:56 +0000 (15:34 -0800)]
altosui: Add map and GPS data to graph window. Trac #50

See where the rocket landed without having to replay the whole flight.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Display count of erased flights along with their numbers
Keith Packard [Sun, 10 Feb 2013 22:56:10 +0000 (14:56 -0800)]
altosui: Display count of erased flights along with their numbers

An attempt to clarify what's going on by providing both a count and
the flight numbers.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Display block number while downloading flights. Track #51
Keith Packard [Sun, 10 Feb 2013 22:51:46 +0000 (14:51 -0800)]
altosui: Display block number while downloading flights. Track #51

We don't know how long the flight log is, but we can at least provide
a block number in the pacifier to let the user know it's not wedged.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltoslib: Fix available flight log storage computation
Keith Packard [Sun, 10 Feb 2013 22:40:48 +0000 (14:40 -0800)]
altoslib: Fix available flight log storage computation

number of flights was off by one as it was initialized to -1
storage erase unit wasn't getting fetched correctly
flight_log_max is in kB, not B; need to multiply by 1024

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Display callsign in connecting message window
Keith Packard [Sun, 10 Feb 2013 22:18:16 +0000 (14:18 -0800)]
altosui: Display callsign in connecting message window

When waiting for the remote end to respond, display the callsign along
with the frequency so that the user remembers that it's important to
set that too.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Interrupt MonitorIdle when changing frequency/callsign
Keith Packard [Sun, 10 Feb 2013 22:17:04 +0000 (14:17 -0800)]
altosui: Interrupt MonitorIdle when changing frequency/callsign

When switching radio parameters, the local device needs to have the
parameters switched, so interrupt the current operation and start
over, the frequency and callsign will be set the next time through.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Add callsign to Monitor Idle window (Trac #62)
Keith Packard [Sun, 10 Feb 2013 19:58:36 +0000 (11:58 -0800)]
altosui: Add callsign to Monitor Idle window (Trac #62)

This makes it a lot more obvious that the callsign is relevant to the
Monitor Idle process.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoMerge remote-tracking branch 'mjb/master'
Keith Packard [Sun, 10 Feb 2013 09:21:52 +0000 (01:21 -0800)]
Merge remote-tracking branch 'mjb/master'

11 years agoaltosui: Adjust graph voltage tool-tip value format
Keith Packard [Sun, 10 Feb 2013 08:40:59 +0000 (00:40 -0800)]
altosui: Adjust graph voltage tool-tip value format

Voltages are always small, so use more of the space for the
fractional value.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltoslib: Fix a couple of unit functions to make them public
Keith Packard [Sun, 10 Feb 2013 08:32:26 +0000 (00:32 -0800)]
altoslib: Fix a couple of unit functions to make them public

Nice to be able to use these outside of altoslib

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui/altoslib/altosuilib: Switch altosui to shared graph code
Keith Packard [Sun, 10 Feb 2013 08:29:29 +0000 (00:29 -0800)]
altosui/altoslib/altosuilib: Switch altosui to shared graph code

This adds a configuration tab to the graph window to enable/disable
various plotted values.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosuilib/micropeak: Add state markers to micropeak graph
Keith Packard [Sun, 10 Feb 2013 04:24:33 +0000 (20:24 -0800)]
altosuilib/micropeak: Add state markers to micropeak graph

I think this makes the micropeak graph as functional as the altosui graph

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltoslib: Fix altoslib install
Keith Packard [Sun, 10 Feb 2013 03:24:18 +0000 (19:24 -0800)]
altoslib: Fix altoslib install

Was using AltosLibdir in several places still

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosuilib: Initialize graph axes units
Keith Packard [Sun, 10 Feb 2013 03:23:27 +0000 (19:23 -0800)]
altosuilib: Initialize graph axes units

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltoslib: Add AltosUnits.graph_format
Keith Packard [Sat, 9 Feb 2013 10:00:13 +0000 (02:00 -0800)]
altoslib: Add AltosUnits.graph_format

This describes the format of numbers used on a graph axis for use with jfreechart

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agomicropeak: Use altosuilib graphing functions
Keith Packard [Sat, 9 Feb 2013 09:59:18 +0000 (01:59 -0800)]
micropeak: Use altosuilib graphing functions

Move these out of micropeak and into shared code

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosuilib: Add graphing routines from MicroPeak
Keith Packard [Sat, 9 Feb 2013 09:58:23 +0000 (01:58 -0800)]
altosuilib: Add graphing routines from MicroPeak

Make these available for AltosUI too

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosuilib: Remove duplicate AltosUnitsListener.java
Keith Packard [Sat, 9 Feb 2013 09:55:51 +0000 (01:55 -0800)]
altosuilib: Remove duplicate AltosUnitsListener.java

This lives in altoslib

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agovarious updates to the text .. more SMA to BNC adapter references, etc
Bdale Garbee [Sat, 9 Feb 2013 16:09:36 +0000 (09:09 -0700)]
various updates to the text .. more SMA to BNC adapter references, etc

11 years agoupdate copyright year to 2013
Bdale Garbee [Sat, 9 Feb 2013 15:47:10 +0000 (08:47 -0700)]
update copyright year to 2013

11 years agoadd pcb overall dimensions and screw sizes the holes are intended for
Bdale Garbee [Sat, 9 Feb 2013 15:44:11 +0000 (08:44 -0700)]
add pcb overall dimensions and screw sizes the holes are intended for

11 years agodoc: Add TeleMetrum and TeleMini drill templates
Keith Packard [Sat, 9 Feb 2013 07:37:49 +0000 (23:37 -0800)]
doc: Add TeleMetrum and TeleMini drill templates

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Add atmosphere.5c
Keith Packard [Mon, 4 Feb 2013 18:51:49 +0000 (10:51 -0800)]
altos: Add atmosphere.5c

Shared code for building pressure tables

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agotest: Accept micropeak CSV files for micropeak testing
Keith Packard [Mon, 4 Feb 2013 17:56:18 +0000 (09:56 -0800)]
test: Accept micropeak CSV files for micropeak testing

This interpolates the missing values to provide a reasonable testing
environment for the Micropeak flight firmware.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Document which MPU6000 revs have broken accel values
Keith Packard [Mon, 4 Feb 2013 17:51:30 +0000 (09:51 -0800)]
altos: Document which MPU6000 revs have broken accel values

From Tridge -- MPU6000 rev C4 and C5 are broken, having accelerometer
values in the wrong range. This commit just adds comments which note
this; experimentation will be required to actually sort out what's
going on.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agomicropeak: Update Makefile to versioned Java libraries
Keith Packard [Mon, 4 Feb 2013 17:50:07 +0000 (09:50 -0800)]
micropeak: Update Makefile to versioned Java libraries

Library names have changed; deal with it.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltoslib: fix Makefile JAR target
Keith Packard [Mon, 4 Feb 2013 17:49:07 +0000 (09:49 -0800)]
altoslib: fix Makefile JAR target

Was referencing stale classAltosLib.stamp instead of new classaltoslib.stamp

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoAdd version numbers to java libraries
Keith Packard [Tue, 29 Jan 2013 06:00:43 +0000 (17:00 +1100)]
Add version numbers to java libraries

Make our private java library names include a version number so we can
ship and install multiple versions at the same time.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoChange AltosLib to altoslib
Keith Packard [Tue, 29 Jan 2013 03:52:23 +0000 (14:52 +1100)]
Change AltosLib to altoslib

Follow Java conventions

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosdroid: initial release to Play Store altosdroid_v1.1.9.3
Mike Beattie [Mon, 28 Jan 2013 12:34:48 +0000 (01:34 +1300)]
altosdroid: initial release to Play Store

* Add release keystore (encrypted)
* Turn off debugging in UI
* add 'sign' target to Makefile.am
* Update version string in AndroidManifest.xml to match released version of altosui.

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoMark MicroPeak as a recording altimeter, not a peak-recording altimeter
Keith Packard [Thu, 24 Jan 2013 22:18:39 +0000 (14:18 -0800)]
Mark MicroPeak as a recording altimeter, not a peak-recording altimeter

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agomicropeak: fix 'make clean' and .gitignore
Keith Packard [Wed, 23 Jan 2013 02:50:02 +0000 (18:50 -0800)]
micropeak: fix 'make clean' and .gitignore

Make git status clean in micropeak dir

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agomicropeak: Add mac build file Info.plist
Keith Packard [Wed, 23 Jan 2013 01:49:25 +0000 (17:49 -0800)]
micropeak: Add mac build file Info.plist

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoAdd documentation for the MicroPeak USB interface
Keith Packard [Wed, 23 Jan 2013 01:34:44 +0000 (17:34 -0800)]
Add documentation for the MicroPeak USB interface

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agomicropeak: Respect font size preference in MicroPeak stats tab
Keith Packard [Wed, 23 Jan 2013 01:29:37 +0000 (17:29 -0800)]
micropeak: Respect font size preference in MicroPeak stats tab

This uses the font size preference to adjust the size of the text
shown in the Statistics tab.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Make initial AltOS window position configurable
Keith Packard [Sun, 20 Jan 2013 23:42:05 +0000 (15:42 -0800)]
altosui: Make initial AltOS window position configurable

Give the user a choice of nine locations on the screen

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Remove duplicate AltosUIPreferences.java
Keith Packard [Sun, 20 Jan 2013 23:39:53 +0000 (15:39 -0800)]
altosui: Remove duplicate AltosUIPreferences.java

This lives in altosuilib now. Several files needed imports of
altosuilib added as a result.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: All of the Altos class is actually in AltosUILib now
Keith Packard [Sun, 20 Jan 2013 23:37:40 +0000 (15:37 -0800)]
altosui: All of the Altos class is actually in AltosUILib now

Remove all of the duplicate content, shrinking AltosLib to a simple alias

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui/micropeak: Let native window system place windows
Keith Packard [Sun, 20 Jan 2013 02:04:08 +0000 (18:04 -0800)]
altosui/micropeak: Let native window system place windows

Instead of forcing windows to our choice of positions, let the host
window pick reasonable locations. This avoids having all of our
windows appear on top of one another.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosi: callsign could not be configured for AltosUI
Keith Packard [Sun, 20 Jan 2013 03:30:38 +0000 (19:30 -0800)]
altosi: callsign could not be configured for AltosUI

An extra local variable called callsign_value was hiding the object
field by the same name and preventing it from getting set to the right value

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoTag version 1.1.9.3 1.1.9.3
Keith Packard [Sat, 19 Jan 2013 05:53:54 +0000 (21:53 -0800)]
Tag version 1.1.9.3

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agomicropeak: Fetch Mac and Windows drivers when creating packages
Keith Packard [Thu, 17 Jan 2013 06:05:32 +0000 (22:05 -0800)]
micropeak: Fetch Mac and Windows drivers when creating packages

This downloads the FTDI drivers from FTDI during the build process

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agomicropeak: Show decimeters in stats window
Keith Packard [Wed, 16 Jan 2013 23:18:31 +0000 (15:18 -0800)]
micropeak: Show decimeters in stats window

We're promising this kindof accuracy, so we'd best show it off

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Add Kalman filter to MicroPeak
Keith Packard [Wed, 16 Jan 2013 23:15:49 +0000 (15:15 -0800)]
altos: Add Kalman filter to MicroPeak

This filters altitudes more accurately and also allows tracking of
acceleration, which is used to discard height data generated by
ejection charge noise

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Add computation of MicroPeak Kalman correction coefficients
Keith Packard [Wed, 16 Jan 2013 23:13:31 +0000 (15:13 -0800)]
altos: Add computation of MicroPeak Kalman correction coefficients

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Correct model error covariance matrix
Keith Packard [Wed, 16 Jan 2013 23:01:12 +0000 (15:01 -0800)]
altos: Correct model error covariance matrix

Finally found a couple of decent references on how to set the model
(process) error covariance matrix. The current process matrix turns
out to be correct for a continuous kalman filter (which isn't
realizable, of course). For a discrete filter, the error in modeled
acceleration (we model it as a constant) needs to be propogated to the
speed and position portions of the matrix.

The correct matrix is seen in this paper:

On Reduced-Order Kalman Filters For GPS Position Filtering
J. Shima
6/2/2001

This references an older paper which is supposed to describe the
derivation of the matrix:

Singer, R.A., “Estimating Optimal Tracking Filter Performance for Manned Maneuvering Targets,”
IEEE Transactions of Aerospace and Electronic Systems, AES-5, July 1970, pp. 473-483.

This change has a minor effect on the computed correction
coefficients; it should respond more reasonably to acceleration
changes now.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agodoc: Add simplesect headers to release notes
Keith Packard [Wed, 16 Jan 2013 18:37:55 +0000 (10:37 -0800)]
doc: Add simplesect headers to release notes

This makes it easy to see which changes are from each version of the software.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agodocument what the 'Age' value in the AltosUI display means
Bdale Garbee [Wed, 16 Jan 2013 17:46:04 +0000 (10:46 -0700)]
document what the 'Age' value in the AltosUI display means

11 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Sat, 12 Jan 2013 17:57:22 +0000 (10:57 -0700)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

11 years agomicropeak: Record samples before boost detect
Keith Packard [Sat, 12 Jan 2013 17:45:31 +0000 (09:45 -0800)]
micropeak: Record samples before boost detect

This saves a ring of 16 samples while waiting for boost, and then goes
back through those looking for the first sample higher than the ground
and writes the remaining ones to the log so that we get a more
complete log of the flight

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Reference altosuilib.jar and altoslib.jar from original dirs
Keith Packard [Fri, 11 Jan 2013 07:42:41 +0000 (23:42 -0800)]
altosui: Reference altosuilib.jar and altoslib.jar from original dirs

The symlinks may not be created when the build is getting run as the
dependencies aren't in place (thanks, automake).

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui,micropeak: Link altoslib.jar and altosuilib.jar before compiling
Keith Packard [Fri, 11 Jan 2013 06:11:36 +0000 (22:11 -0800)]
altosui,micropeak: Link altoslib.jar and altosuilib.jar before compiling

The symlinks for the libraries have to be present before compiling stuff.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agomicropeak: Note when libaltos fails
Keith Packard [Fri, 11 Jan 2013 05:42:23 +0000 (21:42 -0800)]
micropeak: Note when libaltos fails

Not getting any device list back from MicroUSB means the library
wasn't found, so pop up a dialog box explaining the situation.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agomicropeak: Create 'micropeak' script correctly
Keith Packard [Fri, 11 Jan 2013 05:41:35 +0000 (21:41 -0800)]
micropeak: Create 'micropeak' script correctly

Add altoslibdir, remove -cp argument

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agomicropeak: Demonstrate how to hide various parts of the graph
Keith Packard [Fri, 11 Jan 2013 05:38:15 +0000 (21:38 -0800)]
micropeak: Demonstrate how to hide various parts of the graph

This just shows how to disable a series and axis; it's not used here.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agomicropeak: Report recorded apogee instead of searching flight data
Keith Packard [Fri, 11 Jan 2013 05:37:18 +0000 (21:37 -0800)]
micropeak: Report recorded apogee instead of searching flight data

This makes sure we report the true apogee value instead of looking for
the maximum height value in the flight data, in case the flight
recording ended before the apogee was reached.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoFix up 'make fat' to build all libs and micropeak too
Keith Packard [Fri, 11 Jan 2013 05:34:24 +0000 (21:34 -0800)]
Fix up 'make fat' to build all libs and micropeak too

There are now three libraries to build for both altosui and micropeak.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agolibaltos: Need to check for tty/ttyACMx before ttyACMx
Keith Packard [Fri, 11 Jan 2013 05:26:20 +0000 (21:26 -0800)]
libaltos: Need to check for tty/ttyACMx before ttyACMx

Otherwise, we'll find 'tty' when looking for 'ttyACMx' and no good
will come from that

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoMerge remote-tracking branch 'origin/micropeak-logging'
Keith Packard [Fri, 11 Jan 2013 05:48:12 +0000 (21:48 -0800)]
Merge remote-tracking branch 'origin/micropeak-logging'

11 years agoaltos: Time out reading packet data from cc1120 after 100ms
Keith Packard [Fri, 11 Jan 2013 05:27:32 +0000 (21:27 -0800)]
altos: Time out reading packet data from cc1120 after 100ms

Sometimes the radio will give a spurious wakeup indicating that a
preamble seems to have arrived, but no packet data will appear. In
this case, abandon the packet reception and go back to waiting for a
preamble again. This releases the SPI bus for other users and also
avoids missing packets.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltoslib: Clean up AltosRecord clone methods
Keith Packard [Wed, 9 Jan 2013 23:29:01 +0000 (15:29 -0800)]
altoslib: Clean up AltosRecord clone methods

Make the AltosRecord version abstract and then implement suitable
versions in each subclass by creating copying constructors for each
class.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltoslib: Don't smash existing GPS pad alt after boost
Keith Packard [Wed, 9 Jan 2013 23:23:46 +0000 (15:23 -0800)]
altoslib: Don't smash existing GPS pad alt after boost

Leave the existing GPS pad altitude value in place after boost by
checking to see if it was ever computed before resetting it to the
barometric pad altitude. This makes GPS height values relative to the pad.

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, 9 Jan 2013 05:12:17 +0000 (22:12 -0700)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

11 years agoaltosui: Create .dmg file for Mac OS X installations
Keith Packard [Sun, 6 Jan 2013 21:20:25 +0000 (13:20 -0800)]
altosui: Create .dmg file for Mac OS X installations

Easier for users than a zip file

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agomicropeak: Add ReadMe.rtf to Mac distribution
Keith Packard [Sun, 6 Jan 2013 21:00:00 +0000 (13:00 -0800)]
micropeak: Add ReadMe.rtf to Mac distribution

There are *two* steps to installing MicroPeak on Mac OSX. Best help
out the poor user by explaining that.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agomicropeak: Create Mac OS X package
Keith Packard [Sun, 6 Jan 2013 20:52:25 +0000 (12:52 -0800)]
micropeak: Create Mac OS X package

Includes the FTDI driver and the MicroPeak app

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agomicropeak: Suggest filenames for saving data
Keith Packard [Sat, 5 Jan 2013 18:59:26 +0000 (10:59 -0800)]
micropeak: Suggest filenames for saving data

Uses the format '<year>-<month>-<day>-flight-<number>.mpd'

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agomicropeak: Create .dmg file for apple. Create micropeak-jdb script
Keith Packard [Sat, 5 Jan 2013 18:38:20 +0000 (10:38 -0800)]
micropeak: Create .dmg file for apple. Create micropeak-jdb script

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agomicropeak: Use new libaltos entry point for FTDI devices
Keith Packard [Sat, 5 Jan 2013 18:37:30 +0000 (10:37 -0800)]
micropeak: Use new libaltos entry point for FTDI devices

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agomicropeak: Move raw view caret to top. Make raw text uneditable
Keith Packard [Sat, 5 Jan 2013 18:36:50 +0000 (10:36 -0800)]
micropeak: Move raw view caret to top. Make raw text uneditable

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agomicropeak: Remove debug printf for command line
Keith Packard [Sat, 5 Jan 2013 18:36:40 +0000 (10:36 -0800)]
micropeak: Remove debug printf for command line

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoAdd separate code path for listing FTDI devices
Keith Packard [Sat, 5 Jan 2013 18:35:20 +0000 (10:35 -0800)]
Add separate code path for listing FTDI devices

This lets the library do different things for FTDI devices, as is
required on Windows (for instance)

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agomicropeak: Use data.export for Raw display. Change to MPH
Keith Packard [Fri, 4 Jan 2013 02:14:40 +0000 (18:14 -0800)]
micropeak: Use data.export for Raw display. Change to MPH

data.export already knows how to format stuff, so use that to
construct the raw data presentation for the GUI too.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agomicropeak: Export in lots of units
Keith Packard [Fri, 4 Jan 2013 01:40:19 +0000 (17:40 -0800)]
micropeak: Export in lots of units

meters, feet, mach and gs

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agomicropeak: Add command line export option
Keith Packard [Fri, 4 Jan 2013 01:31:01 +0000 (17:31 -0800)]
micropeak: Add command line export option

micropeak --export <foo.mpd> will create <foo.csv> full of useful data.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agomicropeak: Add Mac OS Info.plist file
Keith Packard [Fri, 4 Jan 2013 01:30:29 +0000 (17:30 -0800)]
micropeak: Add Mac OS Info.plist file

needed to build a Mac OS X application

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agomicropeak: Change graph tooltip units on the fly
Keith Packard [Thu, 3 Jan 2013 00:30:44 +0000 (16:30 -0800)]
micropeak: Change graph tooltip units on the fly

Make sure the tooltips show the right units when they change

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agomicropeak: Use JTextArea instead of TextArea
Keith Packard [Thu, 3 Jan 2013 00:19:33 +0000 (16:19 -0800)]
micropeak: Use JTextArea instead of TextArea

Looks nicer and doesn't appear to have the same weird clipping problem

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosuilib: Fix install issues on Linux
Keith Packard [Thu, 3 Jan 2013 00:07:49 +0000 (16:07 -0800)]
altosuilib: Fix install issues on Linux

altosuilib.jar wasn't getting installed
micropeak was using the wrong name

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agomicropeak: Add view of raw data in GUI
Keith Packard [Wed, 2 Jan 2013 20:24:44 +0000 (12:24 -0800)]
micropeak: Add view of raw data in GUI

Looks just like the export file

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agomicropeak: Add CSV export
Keith Packard [Wed, 2 Jan 2013 19:44:32 +0000 (11:44 -0800)]
micropeak: Add CSV export

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agomicropoint: Add MicroDataPoint
Keith Packard [Wed, 2 Jan 2013 19:22:11 +0000 (11:22 -0800)]
micropoint: Add MicroDataPoint

This holds height/speed/accel data all in one place

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