fw/altos
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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

7 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

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

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

7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 years agoaltoslib: Remove unused fake product_micropeak_serial
Keith Packard [Wed, 2 Jan 2013 18:48:56 +0000 (10:48 -0800)]
altoslib: Remove unused fake product_micropeak_serial

Code cleanups have made this no longer useful

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Remove duplicate AltosUSBDevice
Keith Packard [Wed, 2 Jan 2013 17:50:09 +0000 (09:50 -0800)]
altosui: Remove duplicate AltosUSBDevice

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Use shared AltosUIListener
Keith Packard [Wed, 2 Jan 2013 17:41:42 +0000 (09:41 -0800)]
altosui: Use shared AltosUIListener

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Use shared AltosUIFrame and AltosUIDialog
Keith Packard [Wed, 2 Jan 2013 17:40:13 +0000 (09:40 -0800)]
altosui: Use shared AltosUIFrame and AltosUIDialog

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Use shared AltosFontListener class
Keith Packard [Wed, 2 Jan 2013 17:33:36 +0000 (09:33 -0800)]
altosui: Use shared AltosFontListener class

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Use shared AltosDeviceDialog
Keith Packard [Wed, 2 Jan 2013 17:31:35 +0000 (09:31 -0800)]
altosui: Use shared AltosDeviceDialog

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Remove AltosVersion.java
Keith Packard [Wed, 2 Jan 2013 17:09:10 +0000 (09:09 -0800)]
altosui: Remove AltosVersion.java

Version data now stored in AltosUIVersion.java

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Use altosuilib for configuration
Keith Packard [Wed, 2 Jan 2013 17:06:41 +0000 (09:06 -0800)]
altosui: Use altosuilib for configuration

Start moving to shared UI code

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agolibaltos: Remove a couple of spurious debug printfs
Keith Packard [Wed, 2 Jan 2013 17:06:22 +0000 (09:06 -0800)]
libaltos: Remove a couple of spurious debug printfs

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoRename AltosConfigureUI to AltosUIConfigure
Keith Packard [Wed, 2 Jan 2013 07:15:14 +0000 (23:15 -0800)]
Rename AltosConfigureUI to AltosUIConfigure

Leave AltosConfigureUI for AltosUI

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agomicropeak: Check CRC on downloaded
Keith Packard [Wed, 2 Jan 2013 07:10:04 +0000 (23:10 -0800)]
micropeak: Check CRC on downloaded

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoBuild micropeak by default
Keith Packard [Wed, 2 Jan 2013 07:03:29 +0000 (23:03 -0800)]
Build micropeak by default

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoBuild installable versions of MicroPeak GUI
Keith Packard [Wed, 2 Jan 2013 02:20:23 +0000 (18:20 -0800)]
Build installable versions of MicroPeak GUI

Makes windows/mac/linux versions. Windows version appears to work on
Wine at least.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agomicropeak: Add 'Close' menu item. Fix start location
Keith Packard [Wed, 2 Jan 2013 01:10:55 +0000 (17:10 -0800)]
micropeak: Add 'Close' menu item. Fix start location

Let the window system pick a spot to place the application
windows. This avoids having them all sit on top of one another.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agomicropeak: Fix chart colors
Keith Packard [Wed, 2 Jan 2013 00:57:31 +0000 (16:57 -0800)]
micropeak: Fix chart colors

Need to apply custom colors after setting the theme

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agomicropeak is code complete now.
Keith Packard [Tue, 1 Jan 2013 23:30:11 +0000 (15:30 -0800)]
micropeak is code complete now.

Added save and download functionality. Removed 'new' from file menu.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoMerge remote-tracking branch 'origin/master' into micropeak-logging
Keith Packard [Mon, 31 Dec 2012 22:24:59 +0000 (14:24 -0800)]
Merge remote-tracking branch 'origin/master' into micropeak-logging

7 years agoAllow CC1120 to sit on other SPI busses
Keith Packard [Mon, 31 Dec 2012 22:22:37 +0000 (14:22 -0800)]
Allow CC1120 to sit on other SPI busses

Reading the incoming data bypasses the SPI API and touches the SPI
data register directly; which port that is needs to be specified in
the pins file

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agomicropeak: Add flight stats pane
Keith Packard [Mon, 31 Dec 2012 22:17:26 +0000 (14:17 -0800)]
micropeak: Add flight stats pane

Shows graph or stats in alternate panes

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agomicropeak: Use altosuilib
Keith Packard [Mon, 31 Dec 2012 19:42:57 +0000 (11:42 -0800)]
micropeak: Use altosuilib

This removes a pile of code stolen from altosui

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltoslib: Add units change notification list
Keith Packard [Mon, 31 Dec 2012 19:38:53 +0000 (11:38 -0800)]
altoslib: Add units change notification list

This allows the UI to automatically respond to changes in the
preferred units.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoCreate altosuilib to share code between altosui and micropeak
Keith Packard [Mon, 31 Dec 2012 19:32:56 +0000 (11:32 -0800)]
Create altosuilib to share code between altosui and micropeak

Need to convert altosui to using it, but that shouldn't be hard

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: megadongle radio int is C13, not C14
Keith Packard [Sat, 29 Dec 2012 06:05:31 +0000 (23:05 -0700)]
altos: megadongle radio int is C13, not C14

Hard to get interrupts when listening to the wrong pin

Signed-off-by: Keith Packard <keithp@gag.com>
7 years agoMerge remote-tracking branch 'origin/master' into micropeak-logging
Keith Packard [Sat, 29 Dec 2012 05:50:13 +0000 (21:50 -0800)]
Merge remote-tracking branch 'origin/master' into micropeak-logging

7 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Sat, 29 Dec 2012 05:30:26 +0000 (22:30 -0700)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

7 years agoaltos: Fix MegaDongle CC1120 chip select pin
Keith Packard [Sat, 29 Dec 2012 02:35:46 +0000 (19:35 -0700)]
altos: Fix MegaDongle CC1120 chip select pin

It's on A0, not C5

Signed-off-by: Keith Packard <keithp@gag.com>
7 years agoaltos: Fix cc1120 debug code to build on megadongle
Keith Packard [Sat, 29 Dec 2012 02:34:33 +0000 (19:34 -0700)]
altos: Fix cc1120 debug code to build on megadongle

RDF function had changed, and APRS isn't available on megadongle.

Signed-off-by: Keith Packard <keithp@gag.com>
7 years agoLots more work on the MicroPeak application
Keith Packard [Sat, 29 Dec 2012 00:34:48 +0000 (16:34 -0800)]
Lots more work on the MicroPeak application

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoupdate stlink-pins document to make it clear 4-pin MicroMaTch is our
Bdale Garbee [Fri, 28 Dec 2012 22:36:24 +0000 (15:36 -0700)]
update stlink-pins document to make it clear 4-pin MicroMaTch is our
standard STM32L programming connector, and the big MM thing was v0.1 only

7 years agoAdd file chooser for MicroPeak
Keith Packard [Tue, 25 Dec 2012 22:45:49 +0000 (14:45 -0800)]
Add file chooser for MicroPeak

Needs reasonable directory tracking

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoStart building MicroPeak GUI tool
Keith Packard [Tue, 25 Dec 2012 22:23:29 +0000 (14:23 -0800)]
Start building MicroPeak GUI tool

Download, save and analyze MicroPeak flight data

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoMerge branch 'master' into micropeak-logging
Keith Packard [Tue, 25 Dec 2012 22:20:42 +0000 (14:20 -0800)]
Merge branch 'master' into micropeak-logging

7 years agoMove libaltos to top level
Keith Packard [Tue, 25 Dec 2012 22:19:19 +0000 (14:19 -0800)]
Move libaltos to top level

This will let it be shared by the new MicroPeak gui

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Actually record ground averages for 6dof sensor
Keith Packard [Wed, 19 Dec 2012 07:15:20 +0000 (23:15 -0800)]
altos: Actually record ground averages for 6dof sensor

This gets the long-term averages for the 6dof sensors recorded into
the first flight log record.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Clean up graph a bit, remove shapes, improve tooltips
Keith Packard [Wed, 19 Dec 2012 06:59:36 +0000 (22:59 -0800)]
altosui: Clean up graph a bit, remove shapes, improve tooltips

Sometimes graphs would get shapes at each datapoint which was
annoyingly cluttered. And, the tooltips used a format that was
difficult to interpret.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Add distinct LED pattern before writing log data
Keith Packard [Tue, 18 Dec 2012 08:39:37 +0000 (00:39 -0800)]
altos: Add distinct LED pattern before writing log data

Otherwise, the whole log looks like a an extra altitude digit.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Make micropeak 'serial' interface work
Keith Packard [Tue, 18 Dec 2012 06:58:49 +0000 (22:58 -0800)]
altos: Make micropeak 'serial' interface work

I prototyped the mpserial interface on a breadboard and tuned the
circuit to register the LED correctly. Then adjusted the serial code
to send bits at the right speed and format.

The logging contents are now in hexdecimal with a CCITT CRC-16
computed to verify correct reception.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Average MPU6000 values on ground for later use
Keith Packard [Tue, 18 Dec 2012 01:03:41 +0000 (17:03 -0800)]
altos: Average MPU6000 values on ground for later use

Having long-term ground averages recorded to the eeprom file will make
post-flight analysis of the data better.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Re-enable beeper on megametrum
Keith Packard [Mon, 17 Dec 2012 00:52:15 +0000 (16:52 -0800)]
altos: Re-enable beeper on megametrum

I turned it off during radio testing and forgot to fix that before committing...

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Add new MARC status pin interrupt bits to megadongle
Keith Packard [Mon, 17 Dec 2012 00:08:33 +0000 (16:08 -0800)]
altos: Add new MARC status pin interrupt bits to megadongle

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoMerge branch 'aprs' into 'master'
Keith Packard [Mon, 17 Dec 2012 00:06:41 +0000 (16:06 -0800)]
Merge branch 'aprs' into 'master'

7 years agoaltos: Wire up another CC1120 GPIO to get MARC status changes
Keith Packard [Mon, 17 Dec 2012 00:04:05 +0000 (16:04 -0800)]
altos: Wire up another CC1120 GPIO to get MARC status changes

When the radio drops out of RX or TX mode due to an error, it changes
the MARC status, and sends pulse down a configured GPIO. Use this to
tell when something 'bad' happened during TX or RX so that we can
recover from losing the SPI bus in the middle of transmission or
reception.

Without this, the radio would change state and we'd never know,
leaving the radio code waiting for an interrupt that would never arrive.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Test APRS rounding by using coordinates near the boundary
Keith Packard [Sun, 16 Dec 2012 21:31:45 +0000 (13:31 -0800)]
altos: Test APRS rounding by using coordinates near the boundary

This selects lat/lon and altitude near the rounding boundary to check
that the resulting APRS data is correctly computed.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Document what HAS_BOOT_RADIO does in the m25 driver
Keith Packard [Sun, 16 Dec 2012 21:30:20 +0000 (13:30 -0800)]
altos: Document what HAS_BOOT_RADIO does in the m25 driver

HAS_BOOT_RADIO causes the m25 driver to abort any ongoing receive in
case that is holding the SPI bus.

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