fw/altos
8 years agoMerge branch 'telescience-v0.2'
Keith Packard [Sun, 24 Feb 2013 08:20:54 +0000 (00:20 -0800)]
Merge branch 'telescience-v0.2'

8 years agoUpdate build version to 1.2
Keith Packard [Sun, 24 Feb 2013 08:20:36 +0000 (00:20 -0800)]
Update build version to 1.2

Prepare for 1.2 release

Signed-off-by: Keith Packard <keithp@keithp.com>
8 years agoaltos/stm: Add more bits to NVIC register definitions
Keith Packard [Sun, 24 Feb 2013 08:19:49 +0000 (00:19 -0800)]
altos/stm: Add more bits to NVIC register definitions

This cleans up a few values, adds more comments and a few more NVIC fields.

Signed-off-by: Keith Packard <keithp@keithp.com>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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'

8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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

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

8 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

8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 years agoMerge branch 'master' into telescience-v0.2
Keith Packard [Wed, 16 Jan 2013 23:22:46 +0000 (15:22 -0800)]
Merge branch 'master' into telescience-v0.2

8 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>
8 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>
8 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>
8 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>
8 years agoMerge remote-tracking branch 'origin/telescience-v0.2' into telescience-v0.2
Keith Packard [Wed, 16 Jan 2013 18:40:28 +0000 (10:40 -0800)]
Merge remote-tracking branch 'origin/telescience-v0.2' into telescience-v0.2

8 years agoMerge branch 'master' into telescience-v0.2
Keith Packard [Wed, 16 Jan 2013 18:39:40 +0000 (10:39 -0800)]
Merge branch 'master' into telescience-v0.2

8 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>
8 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

8 years agodocument what the 'Age' value in the AltosUI display means telescience-v0.2
Bdale Garbee [Wed, 16 Jan 2013 17:46:04 +0000 (10:46 -0700)]
document what the 'Age' value in the AltosUI display means

8 years agoaltos: Change CC1120 SPI speed to 4MHz.
Keith Packard [Mon, 14 Jan 2013 05:38:26 +0000 (21:38 -0800)]
altos: Change CC1120 SPI speed to 4MHz.

Most of the chip can run at 8MHz, but extended register access is
limited to 6.1MHz. Instead of pushing things, just run the SPI bus at
4MHz.

Signed-off-by: Keith Packard <keithp@keithp.com>
8 years agoaltos: Crank fast SPI on STM to 8MHz
Keith Packard [Mon, 14 Jan 2013 04:50:10 +0000 (20:50 -0800)]
altos: Crank fast SPI on STM to 8MHz

With the GPIO pins set to 10MHz now, we can run SPI at the maximum
possible speed (8MHz).

Signed-off-by: Keith Packard <keithp@keithp.com>
8 years agoaltos: Set STM GPIO output speed for SPI pins correctly
Keith Packard [Mon, 14 Jan 2013 04:48:47 +0000 (20:48 -0800)]
altos: Set STM GPIO output speed for SPI pins correctly

The GPIO pin settings affect the output impedence, and hence the
maximum speed for SPI. Cranking these to suitable values allows SPI to
run at full speed.

Signed-off-by: Keith Packard <keithp@keithp.com>
8 years agoaltos: Build telescience-v0.2
Keith Packard [Mon, 14 Jan 2013 04:48:08 +0000 (20:48 -0800)]
altos: Build telescience-v0.2

Signed-off-by: Keith Packard <keithp@keithp.com>
8 years agoUpdate avr ao_spi_slave code to match API changes
Keith Packard [Sun, 13 Jan 2013 18:31:59 +0000 (10:31 -0800)]
Update avr ao_spi_slave code to match API changes

Made the interface use void * for pointers and uint16_t for lengths

Signed-off-by: Keith Packard <keithp@keithp.com>
8 years agoaltos: Initial telescience bits
Keith Packard [Sun, 13 Jan 2013 04:11:38 +0000 (20:11 -0800)]
altos: Initial telescience bits

These might do something, and should at least bring up USB

Signed-off-by: Keith Packard <keithp@keithp.com>
8 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

8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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'

8 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>
8 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>
8 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>
8 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

8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>