fw/altos
11 years agoaltos: Add logging and telem to telegps
Keith Packard [Sat, 30 Mar 2013 08:33:49 +0000 (01:33 -0700)]
altos: Add logging and telem to telegps

This turns on telemetry, APRS, RDF and data logging for telegps.

Data is logged as soon as GPS has a date to create the right
filename, using files of the form YYYYMMDD.LOG which just barely fits
in a FAT filename.

Telemetry/RDF/APRS are all separately controllable.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Export ao_fat_sync and ao_fat_full functions
Keith Packard [Sat, 30 Mar 2013 08:32:30 +0000 (01:32 -0700)]
altos: Export ao_fat_sync and ao_fat_full functions

ao_fat_sync() flushes the bufio data to disk along with any fsinfo
changes. ao_fat_full() returns whether the file system is full.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Lock cc115l radio mutex when using global radio values
Keith Packard [Sat, 30 Mar 2013 08:31:12 +0000 (01:31 -0700)]
altos: Lock cc115l radio mutex when using global radio values

This moves the locking up above the global state variable uses so that
multiple radio users (as if we had any) won't collide.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Configure cc115l sync byte count for each radio mode
Keith Packard [Sat, 30 Mar 2013 08:30:18 +0000 (01:30 -0700)]
altos: Configure cc115l sync byte count for each radio mode

two sync bytes for packet mode, disable sync for rdf/aprs mode.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Get CC115L radio working.
Keith Packard [Sat, 30 Mar 2013 00:05:36 +0000 (17:05 -0700)]
altos: Get CC115L radio working.

This involved figuring out which GPIO signal would reliably indicate
that the transmitter was finished; I ended up using the PA_PD bit for
this.

This also converts all of the radio users to the long packet support
as the CC115L has only a 64-byte fifo, not large enough to hold either
an RDF tone or a regular AltOS telemetry packet.

This also renames the public API for sending APRS packets from
ao_radio_send_lots to ao_radio_send_aprs, which is at least more
accurate. The workings of that API haven't changed, just the name.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Add temporary RF power settings
Keith Packard [Fri, 29 Mar 2013 19:13:59 +0000 (12:13 -0700)]
altos: Add temporary RF power settings

These expose the raw cc115l and rfpa0133 register settings so that we
can calibrate them against measured power outputs.

I've tested them to verify that they change how much power the board
consumes, so they're clearly doing something...

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Add FAT32 support. And lots more testing.
Keith Packard [Fri, 29 Mar 2013 07:32:23 +0000 (00:32 -0700)]
altos: Add FAT32 support. And lots more testing.

Generalizes the FAT code to deal with either 16-bit or 32-bit
versions. The testing code now runs over a variety of disk images to
check for compatibility on all of them.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: seek forward on FAT cluster chain instead of restarting
Keith Packard [Fri, 29 Mar 2013 00:38:14 +0000 (17:38 -0700)]
altos: seek forward on FAT cluster chain instead of restarting

This improves sequential file performance by taking advantage of any
previous cached cluster/offset pair and starting from there when the
cluster changes rather than starting from scratch at the begining again.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Add a simple cache for the FAT position->cluster computation
Keith Packard [Thu, 28 Mar 2013 23:57:02 +0000 (16:57 -0700)]
altos: Add a simple cache for the FAT position->cluster computation

This improves read/write performance with large files by not
re-walking the cluster chain for every operation

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Clean up fat driver API. Improve fat test
Keith Packard [Thu, 28 Mar 2013 23:05:24 +0000 (16:05 -0700)]
altos: Clean up fat driver API. Improve fat test

Make FAT api provide reasonable error return values, change the tests
to write and then read a pile of files, checking that the contents are
correct (using md5sum).

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Add sanity checking to busy counts in bufio driver
Keith Packard [Thu, 28 Mar 2013 22:55:35 +0000 (15:55 -0700)]
altos: Add sanity checking to busy counts in bufio driver

Make sure the busy counts don't underflow or overflow.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Don't deref null pyros when saving altimeter config
Keith Packard [Thu, 28 Mar 2013 05:11:53 +0000 (22:11 -0700)]
altosui: Don't deref null pyros when saving altimeter config

The check for no pyro config is to compare npyros against zero rather
than check the length of the pyros array as the latter may be null.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Use FTDW, clear DATA bit. Disable backup write protection
Keith Packard [Thu, 28 Mar 2013 01:43:42 +0000 (18:43 -0700)]
altos: Use FTDW, clear DATA bit. Disable backup write protection

The newer(?) chips in telegps didn't like the previous programming
scheme, so go back to fixed time for write, which does an implicit
erase before every write. Also clear the DATA bit, which is only
needed for double word erase/programming.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Teleshield has a radio, set HAS_RADIO in ao_pins.h
Keith Packard [Wed, 27 Mar 2013 08:25:24 +0000 (01:25 -0700)]
altos: Teleshield has a radio, set HAS_RADIO in ao_pins.h

Otherwise, lots of random code won't know about the radio..

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Add new panic flag for bufio misuse
Keith Packard [Wed, 27 Mar 2013 08:15:04 +0000 (01:15 -0700)]
altos: Add new panic flag for bufio misuse

Allow the bufio code to signal a fatal error if someone misuses the API

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Hook up the FAT16 and SD card support to telegps
Keith Packard [Wed, 27 Mar 2013 08:14:15 +0000 (01:14 -0700)]
altos: Hook up the FAT16 and SD card support to telegps

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Add SDCARD and FAT16 filesystem support
Keith Packard [Wed, 27 Mar 2013 08:12:33 +0000 (01:12 -0700)]
altos: Add SDCARD and FAT16 filesystem support

This adds a fairly primitive FAT16 file system implementation
along with support for SD cards.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Fix config to not abort radio recv when no recv is available
Keith Packard [Tue, 26 Mar 2013 21:28:37 +0000 (14:28 -0700)]
altos: Fix config to not abort radio recv when no recv is available

Use the new radio recv define to skip disabling the receiver when
there isn't a receiver.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Allow radio recv and xmit to be separately configured
Keith Packard [Tue, 26 Mar 2013 21:27:46 +0000 (14:27 -0700)]
altos: Allow radio recv and xmit to be separately configured

The CC115L is xmit only, so split out the functions and provide
defines to check for xmit or recv separately as needed.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos/stm: Ensure SPI always sends 0xff during receive
Keith Packard [Tue, 26 Mar 2013 21:26:38 +0000 (14:26 -0700)]
altos/stm: Ensure SPI always sends 0xff during receive

SD cards require 0xff when fetching data

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Improve CC115L driver. Generates carrier now.
Keith Packard [Tue, 26 Mar 2013 21:25:48 +0000 (14:25 -0700)]
altos: Improve CC115L driver. Generates carrier now.

Still no data, but at least the carrier comes up on frequency now.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Add RFPA0133 amplifier driver
Keith Packard [Tue, 26 Mar 2013 21:24:45 +0000 (14:24 -0700)]
altos: Add RFPA0133 amplifier driver

No configuration of power level yet, just the bare driver.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos/telegps: Hook up cc115l driver
Keith Packard [Mon, 25 Mar 2013 06:52:14 +0000 (23:52 -0700)]
altos/telegps: Hook up cc115l driver

Doesn't actually do anything yet, but should initialize the chip at least

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Add cc115l driver (untested)
Keith Packard [Mon, 25 Mar 2013 06:51:11 +0000 (23:51 -0700)]
altos: Add cc115l driver (untested)

Includes support for sending telemetry, RDF and APRS tones

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoao-tools: Make library support µPusb
Keith Packard [Thu, 21 Mar 2013 06:22:37 +0000 (23:22 -0700)]
ao-tools: Make library support µPusb

Set baud rate to 9600, look for FTDI-style names

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoAdd telegps initial version
Keith Packard [Thu, 21 Mar 2013 06:21:37 +0000 (23:21 -0700)]
Add telegps initial version

Just lights up the GPS and USB

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoao-tools: add ao-dump-up
Keith Packard [Tue, 19 Mar 2013 05:12:48 +0000 (22:12 -0700)]
ao-tools: add ao-dump-up

Dumps out a µP log. Useful for µPusb bring-up

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agomicropeak: Improve download docs and UI
Keith Packard [Tue, 12 Mar 2013 01:16:55 +0000 (18:16 -0700)]
micropeak: Improve download docs and UI

Add text explaining that the LED and phototransistor must be
touching to both the doc and the UI.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoMerge remote-tracking branch 'mjb/altosdroid'
Keith Packard [Sun, 10 Mar 2013 18:43:06 +0000 (11:43 -0700)]
Merge remote-tracking branch 'mjb/altosdroid'

11 years agoaltos: re-enable optimization for stm-demo. remove unused bits
Keith Packard [Sun, 10 Mar 2013 18:41:49 +0000 (11:41 -0700)]
altos: re-enable optimization for stm-demo. remove unused bits

This makes stm-demo run on the discovery board again.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosdroid: Add map polyline between pad and rocket
Mike Beattie [Sun, 10 Mar 2013 10:28:26 +0000 (23:28 +1300)]
altosdroid: Add map polyline between pad and rocket

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: Add rocket and pad map markers
Mike Beattie [Sun, 10 Mar 2013 10:27:28 +0000 (23:27 +1300)]
altosdroid: Add rocket and pad map markers

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: programmatically create map fragment
Mike Beattie [Sun, 10 Mar 2013 07:40:13 +0000 (20:40 +1300)]
altosdroid: programmatically create map fragment

* Allows reliable fetching of a GoogleMap handle.
* Set map options, initial location (NCR North for now, temporarily)
* Add some info fields below map, and update them accordingly

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoMerge branch 'master' into altosdroid
Mike Beattie [Sun, 10 Mar 2013 07:24:56 +0000 (20:24 +1300)]
Merge branch 'master' into altosdroid

11 years agoaltosdroid: Add SDK checks to configure.ac
Mike Beattie [Sun, 10 Mar 2013 07:24:15 +0000 (20:24 +1300)]
altosdroid: Add SDK checks to configure.ac

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: adjust clean targets to get rid of automake warning
Mike Beattie [Sun, 10 Mar 2013 07:22:51 +0000 (20:22 +1300)]
altosdroid: adjust clean targets to get rid of automake warning

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoao-tools: Add ao-edit-telem to .gitignore
Mike Beattie [Sun, 10 Mar 2013 07:22:09 +0000 (20:22 +1300)]
ao-tools: Add ao-edit-telem to .gitignore

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoMerge branch 'master' into altosdroid
Mike Beattie [Sun, 10 Mar 2013 06:07:01 +0000 (19:07 +1300)]
Merge branch 'master' into altosdroid

11 years agoao-tools: Add ao-edit-telem
Keith Packard [Sun, 10 Mar 2013 04:40:52 +0000 (20:40 -0800)]
ao-tools: Add ao-edit-telem

This lets you edit a telemetry file. The only current editing
available is to change the pad location, allowing a flight to be
replayed anywhere in the world.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoao-tools/lib: Add cc_telemetry_unparse
Keith Packard [Sun, 10 Mar 2013 04:39:31 +0000 (20:39 -0800)]
ao-tools/lib: Add cc_telemetry_unparse

This takes a telemetry structure and generates a string version

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Add N/S and E/W to info table lat/lon values
Keith Packard [Sun, 10 Mar 2013 04:37:38 +0000 (20:37 -0800)]
altosui: Add N/S and E/W to info table lat/lon values

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosdroid: fix side-to-side scrolling in map tab
Mike Beattie [Fri, 8 Mar 2013 06:41:32 +0000 (19:41 +1300)]
altosdroid: fix side-to-side scrolling in map tab

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoMerge remote-tracking branch 'mjb/altosdroid'
Keith Packard [Thu, 7 Mar 2013 21:00:44 +0000 (13:00 -0800)]
Merge remote-tracking branch 'mjb/altosdroid'

11 years agoaltosdroid: Auto tab changing
Mike Beattie [Thu, 7 Mar 2013 08:37:51 +0000 (21:37 +1300)]
altosdroid: Auto tab changing

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: implement Age field updating
Mike Beattie [Thu, 7 Mar 2013 08:37:22 +0000 (21:37 +1300)]
altosdroid: implement Age field updating

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: implement UI updating on tabs
Mike Beattie [Thu, 7 Mar 2013 08:35:43 +0000 (21:35 +1300)]
altosdroid: implement UI updating on tabs

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: implement tabs interface
Mike Beattie [Thu, 7 Mar 2013 08:33:27 +0000 (21:33 +1300)]
altosdroid: implement tabs interface

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: Import initial versions of XML and Java for Tab content
Mike Beattie [Thu, 7 Mar 2013 08:28:45 +0000 (21:28 +1300)]
altosdroid: Import initial versions of XML and Java for Tab content

* Includes TabsAdapter class borrowed from Support Library sample code
* New "GoNoGoLights" class for dealing with the red/green/gray LEDs
* extra required strings in strings.xml
* Couple of support functions in AltosDroid.java
* rudimentary Maps tab - does nothing at present.

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: whitespace cleanup
Mike Beattie [Thu, 7 Mar 2013 08:20:47 +0000 (21:20 +1300)]
altosdroid: whitespace cleanup

DAMN my OCD.

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: make AltosDroid.pos() static
Mike Beattie [Thu, 7 Mar 2013 08:20:06 +0000 (21:20 +1300)]
altosdroid: make AltosDroid.pos() static

* Will be used from tabs that display lat/lon

Signed-off-by: Mike Beattie <mike@ethernal.org>
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 agoMerge remote-tracking branch 'mjb/master'
Keith Packard [Thu, 7 Mar 2013 05:53:22 +0000 (21:53 -0800)]
Merge remote-tracking branch 'mjb/master'

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 agoaltoslib: Invalidate GPS new data bit when updating state
Keith Packard [Tue, 5 Mar 2013 03:44:30 +0000 (19:44 -0800)]
altoslib: Invalidate GPS new data bit when updating state

Somehow this line got lost when the GPS ground altitude fix was made.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoao-tools: Add ao-dumpflash program
Keith Packard [Mon, 4 Mar 2013 00:53:52 +0000 (16:53 -0800)]
ao-tools: Add ao-dumpflash program

This program dumps the entire flash contents of an AltOS device to
allow for external analysis.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agolibaltos: Open FTDI serial devices twice on Windows.
Keith Packard [Sun, 3 Mar 2013 01:46:29 +0000 (17:46 -0800)]
libaltos: Open FTDI serial devices twice on Windows.

Looks like the Windows FTDI driver has 'issues' and opening it only
once doesn't work correctly. Just close and re-open the device and it
seems to be perfectly happy.

Who knows?

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agodoc: Add version 1.2 release notes
Keith Packard [Sat, 2 Mar 2013 04:48:28 +0000 (20:48 -0800)]
doc: Add version 1.2 release notes

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agodoc: Document how to get TeleMini to 'emergency recovery' mode
Keith Packard [Sat, 2 Mar 2013 04:45:43 +0000 (20:45 -0800)]
doc: Document how to get TeleMini to 'emergency recovery' mode

TeleMini needs emergency recovery mode in case you forget the radio
parameters and need to get things back to a known state. Add
documentation to describe what this does and how to get it enabled.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosuilib: Disable graph element notifies for each add()
Keith Packard [Fri, 1 Mar 2013 20:34:04 +0000 (12:34 -0800)]
altosuilib: Disable graph element notifies for each add()

This reduces the number of notify calls made and dramatically speeds
up graph creation.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosuilib: Add setNotify/fireSeriesChanged methods to AltosUIGrapher
Keith Packard [Fri, 1 Mar 2013 20:28:34 +0000 (12:28 -0800)]
altosuilib: Add setNotify/fireSeriesChanged methods to AltosUIGrapher

This will let the data adding functions disable notifications while
adding all of the graph data, and then send a single notification when
the data sets are complete, which speeds up creating of the graph
elements quite a bit.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: telescience-v0.2 is an ARM product
Keith Packard [Sun, 24 Feb 2013 09:20:41 +0000 (01:20 -0800)]
altos: telescience-v0.2 is an ARM product

Move it from SDCC to ARM targets as Jenkins doesn't have an ARM compiler.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos/driver: Make HMC5883 driver build again
Keith Packard [Sun, 24 Feb 2013 09:20:16 +0000 (01:20 -0800)]
altos/driver: Make HMC5883 driver build again

Adapt to changes in OS interfaces

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoMerge branch 'telescience-v0.2'
Keith Packard [Sun, 24 Feb 2013 08:20:54 +0000 (00:20 -0800)]
Merge branch 'telescience-v0.2'

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