fw/altos
11 days agoaltosdroid: Display direction in map view master
Keith Packard [Wed, 24 Jun 2015 19:02:22 +0000 (12:02 -0700)]
altosdroid: Display direction in map view

Use direction in map view when available, otherwise use bearing

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

11 days agoaltoslib: Fix replay to run in realtime again
Keith Packard [Wed, 24 Jun 2015 05:40:11 +0000 (22:40 -0700)]
altoslib: Fix replay to run in realtime again

At some point, this got sped up to 10x normal speedx

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

11 days agoBump version to 1.6.0.3 1.6.0.3
Keith Packard [Wed, 24 Jun 2015 05:22:06 +0000 (22:22 -0700)]
Bump version to 1.6.0.3

Mark the release of 1.6.0.3 altosdroid

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

11 days agoaltosdroid: Update version numbers in manifest
Keith Packard [Wed, 24 Jun 2015 05:21:45 +0000 (22:21 -0700)]
altosdroid: Update version numbers in manifest

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

11 days agoaltosdroid: Mark tab-dependent voice output as done
Keith Packard [Wed, 24 Jun 2015 05:21:30 +0000 (22:21 -0700)]
altosdroid: Mark tab-dependent voice output as done

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

11 days agoaltosdroid: Make sure flight voice output always starts with 'speed'
Keith Packard [Wed, 24 Jun 2015 05:04:47 +0000 (22:04 -0700)]
altosdroid: Make sure flight voice output always starts with 'speed'

This resets the flight-mode voice output state back to start again
each time the flight tab is selected

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

11 days agoaltosdroid: Make sure whole flight state is spoken even when no-one is moving
Keith Packard [Wed, 24 Jun 2015 05:00:33 +0000 (22:00 -0700)]
altosdroid: Make sure whole flight state is spoken even when no-one is moving

This eliminates the case where much of the flight state wasn't
reported if the tracker or receiver weren't moving.

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

11 days agoaltoslib: Typo slipped into AltosState.java
Keith Packard [Wed, 24 Jun 2015 04:47:06 +0000 (21:47 -0700)]
altoslib: Typo slipped into AltosState.java

Oops.

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

11 days agoaltosdroid: Change voice output around
Keith Packard [Wed, 24 Jun 2015 04:39:09 +0000 (21:39 -0700)]
altosdroid: Change voice output around

This makes the voice output depend on the current displayed tab; where
the 'recovery' and 'map' tabs get the same value.

Pad

Reports igniter and GPS status changes

Flight

Report flight state changes and max height after apogee
Report current speed, height and bearing/elevation/range once
every 10 seconds while the rocket is in motion.

Recovery

Report distance and bearing when the location of either the
tracker or the receiver changes by more than 10m, but not more
than once every 10 seconds.

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

11 days agoaltosdroid: Define strings for the tab names
Keith Packard [Wed, 24 Jun 2015 04:37:25 +0000 (21:37 -0700)]
altosdroid: Define strings for the tab names

Use these everywhere instead of replicating the same name; might
reduce errors.

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

11 days agoaltosdroid: Show direction to target in recover tab
Keith Packard [Wed, 24 Jun 2015 04:35:43 +0000 (21:35 -0700)]
altosdroid: Show direction to target in recover tab

This takes the bearing to target and current direction of motion (from
the Android API) and computes a turn amount and displays that so you
don't have to know which way is north when walking towards the rocket.

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

11 days agoaltoslib: Use a longer filter for descent values
Keith Packard [Wed, 24 Jun 2015 04:38:37 +0000 (21:38 -0700)]
altoslib: Use a longer filter for descent values

This makes descent speeds almost useful, a huge improvement

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

12 days agoaltosdroid: Fix line drawing to old tracker location
Keith Packard [Tue, 23 Jun 2015 06:21:05 +0000 (23:21 -0700)]
altosdroid: Fix line drawing to old tracker location

Selecting an old tracker would often fail to switch the bearing line
as it was using the map data instead of just using the local data for
the relavant tracker.

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

12 days agoaltosdroid: Mark four-tab change done
Keith Packard [Tue, 23 Jun 2015 04:04:01 +0000 (21:04 -0700)]
altosdroid: Mark four-tab change done

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

12 days agoaltosdroid: Allow tracker selection from online map widget
Keith Packard [Tue, 23 Jun 2015 03:59:17 +0000 (20:59 -0700)]
altosdroid: Allow tracker selection from online map widget

Need separate tracker selection code for online maps

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

12 days agoaltosdroid: Switch to four tabs (pad/flight/recover/map)
Keith Packard [Tue, 23 Jun 2015 03:43:23 +0000 (20:43 -0700)]
altosdroid: Switch to four tabs (pad/flight/recover/map)

Ascent and descent were almost the same; no reason to have both.

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

12 days agoaltosdroid: Select tracker by clicking on map
Keith Packard [Tue, 23 Jun 2015 03:08:05 +0000 (20:08 -0700)]
altosdroid: Select tracker by clicking on map

This lets you pick a  tracker from the map, rather than having to use
the menu.

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

12 days agoaltosdroid: Get rid of on-line only maps tab
Keith Packard [Tue, 23 Jun 2015 01:41:01 +0000 (18:41 -0700)]
altosdroid: Get rid of on-line only maps tab

The offline tab did both, so delete the online one and replace it with
the offline one.

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

12 days agoaltosdroid: Display online/offline maps in same tab
Keith Packard [Tue, 23 Jun 2015 01:26:34 +0000 (18:26 -0700)]
altosdroid: Display online/offline maps in same tab

Make the map portion switchable between online and offline maps,
leaving the rest of the tab alone.

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

12 days agoaltosdroid: Add map source preference
Keith Packard [Sun, 21 Jun 2015 17:34:00 +0000 (10:34 -0700)]
altosdroid: Add map source preference

Not hooked up yet.

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

12 days agoaltosdroid: Show receiver battery voltage in the 'pad' view
Keith Packard [Sun, 21 Jun 2015 16:37:05 +0000 (09:37 -0700)]
altosdroid: Show receiver battery voltage in the 'pad' view

Helpful to determine when the receiver battery is getting low

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

12 days agoaltosdroid: Use AltosMap set_zoom_centre
Keith Packard [Sun, 21 Jun 2015 16:36:20 +0000 (09:36 -0700)]
altosdroid: Use AltosMap set_zoom_centre

This keeps the center of the zoom gesture pinned to the screen.

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

12 days agoaltosuilib: Use AltosMap set_zoom_centre instead of in-line version
Keith Packard [Sun, 21 Jun 2015 16:35:28 +0000 (09:35 -0700)]
altosuilib: Use AltosMap set_zoom_centre instead of in-line version

Shares the same function with altosdroid this way.

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

12 days agoaltoslib: Add set_zoom_centre to AltosMap
Keith Packard [Sun, 21 Jun 2015 16:34:29 +0000 (09:34 -0700)]
altoslib: Add set_zoom_centre to AltosMap

This zooms around a specific point, keeping it at the same place on
the screen.

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

12 days agoaltosdroid: Multiple tracker support for google maps
Keith Packard [Sat, 20 Jun 2015 18:58:08 +0000 (11:58 -0700)]
altosdroid: Multiple tracker support for google maps

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

12 days agoaltosdroid: Stack map markers with newest rocket on top
Keith Packard [Sat, 20 Jun 2015 18:57:29 +0000 (11:57 -0700)]
altosdroid: Stack map markers with newest rocket on top

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

12 days agoaltosdroid: Support for sorting rockets by age
Keith Packard [Sat, 20 Jun 2015 18:58:45 +0000 (11:58 -0700)]
altosdroid: Support for sorting rockets by age

Now we can just sort rockets so that the top-most shown is the newest

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

12 days agoaltosdroid: Remove debug
Keith Packard [Sat, 20 Jun 2015 18:57:10 +0000 (11:57 -0700)]
altosdroid: Remove debug

Just noise at this point.

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

12 days agoaltosdroid: Switch trackers automatically when changing freq or baud
Keith Packard [Sat, 20 Jun 2015 18:55:44 +0000 (11:55 -0700)]
altosdroid: Switch trackers automatically when changing freq or baud

This works by switching trackers when we receive telemetry newer than
the last time we changed the frequency configuration.

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

12 days agoaltosuilib: Allow for no transform in map mouse wheel function
Keith Packard [Sat, 20 Jun 2015 18:54:20 +0000 (11:54 -0700)]
altosuilib: Allow for no transform in map mouse wheel function

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

12 days agoaltoslib: Clean up map tile removal
Keith Packard [Sat, 20 Jun 2015 18:53:24 +0000 (11:53 -0700)]
altoslib: Clean up map tile removal

Remove them while walking the hash table, rather than creating a list
to remove.

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

12 days agoaltoslib/altosuilib: Fix equals methods, add hashCode
Keith Packard [Sat, 20 Jun 2015 16:35:26 +0000 (09:35 -0700)]
altoslib/altosuilib: Fix equals methods, add hashCode

Whenever we use a class as a HashMap key, that class needs to override
the equals(Object) and hashCode() methods. Otherwise, the hash table
won't work right.

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

2 weeks agoao-bringup: Make turnon_easymega run without 'make install'
Keith Packard [Fri, 19 Jun 2015 00:37:35 +0000 (17:37 -0700)]
ao-bringup: Make turnon_easymega run without 'make install'

Use relative paths for all altos tools

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

2 weeks agoao-bringup: Use local versions of tools instead of /usr/bin for turnon_easymega
Keith Packard [Fri, 19 Jun 2015 00:12:41 +0000 (17:12 -0700)]
ao-bringup: Use local versions of tools instead of /usr/bin for turnon_easymega

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

2 weeks agoao-bringup: Fail turnon_easymega if accel cal fails
Keith Packard [Thu, 18 Jun 2015 23:56:19 +0000 (16:56 -0700)]
ao-bringup: Fail turnon_easymega if accel cal fails

This prevents a failing board from being reported as good

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

2 weeks agotelegps: use new AltosUIFrame constraint helper
Keith Packard [Wed, 17 Jun 2015 07:12:06 +0000 (00:12 -0700)]
telegps: use new AltosUIFrame constraint helper

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

2 weeks agomicropeak: Update mac/windows FTDI drivers
Keith Packard [Wed, 17 Jun 2015 06:49:45 +0000 (23:49 -0700)]
micropeak: Update mac/windows FTDI drivers

Use latest FTDI drivers.

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

2 weeks agoaltosuilib: Create grid-bag helper functions in AltosUIFrame
Keith Packard [Wed, 17 Jun 2015 06:43:53 +0000 (23:43 -0700)]
altosuilib: Create grid-bag helper functions in AltosUIFrame

This eases the burden of creating suitable GridBagConstraints values

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

2 weeks agoaltosuilib: Show state.product if state.device_type isn't set
Keith Packard [Wed, 17 Jun 2015 06:42:59 +0000 (23:42 -0700)]
altosuilib: Show state.product if state.device_type isn't set

MonitorIdle doesn't get the device type, only the product.

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

2 weeks agoaltoslib: Remove debug output from AltosMap
Keith Packard [Wed, 17 Jun 2015 06:42:22 +0000 (23:42 -0700)]
altoslib: Remove debug output from AltosMap

It's just annoying now.

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

2 weeks agoaltoslib: Expose public function to set state.product
Keith Packard [Wed, 17 Jun 2015 06:41:51 +0000 (23:41 -0700)]
altoslib: Expose public function to set state.product

Just adds a setter function for this value.

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

2 weeks agoaltoslib: Let the application disable the link cancel dialog
Keith Packard [Wed, 17 Jun 2015 06:40:34 +0000 (23:40 -0700)]
altoslib: Let the application disable the link cancel dialog

This lets the application control whether to pop up the cancel dialog
when the link isn't working.

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

2 weeks agoaltoslib: Set product for idle monitor
Keith Packard [Wed, 17 Jun 2015 06:38:07 +0000 (23:38 -0700)]
altoslib: Set product for idle monitor

This lets the UI show the product name

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

3 weeks agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Robert Garbee [Sat, 13 Jun 2015 23:40:59 +0000 (17:40 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

3 weeks agoadd beep when test completes
Robert Garbee [Sat, 13 Jun 2015 23:40:16 +0000 (17:40 -0600)]
add beep when test completes

4 weeks agoaltosdroid: Resource changes needed for multi-tracker mode
Keith Packard [Sun, 7 Jun 2015 03:37:53 +0000 (20:37 -0700)]
altosdroid: Resource changes needed for multi-tracker mode

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

4 weeks agoaltosdroid: Note recent changes
Keith Packard [Sun, 7 Jun 2015 03:37:27 +0000 (20:37 -0700)]
altosdroid: Note recent changes

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

4 weeks agoaltosdroid: Add multi-tracker support
Keith Packard [Sun, 7 Jun 2015 03:36:18 +0000 (20:36 -0700)]
altosdroid: Add multi-tracker support

This lets you view multiple trackers in the offline maps tab (online
maps not done yet), saves state of each tracker to preferences.

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

4 weeks agoaltoslib: Add preferences for saving/restoring multiple flight states
Keith Packard [Sun, 7 Jun 2015 03:35:32 +0000 (20:35 -0700)]
altoslib: Add preferences for saving/restoring multiple flight states

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

4 weeks agoao-tools: Add missing ao-cal-freq man page
Keith Packard [Sat, 6 Jun 2015 13:00:43 +0000 (06:00 -0700)]
ao-tools: Add missing ao-cal-freq man page

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

4 weeks agoao-bringup: Do telegps freq cal before testing GPS
Keith Packard [Sat, 6 Jun 2015 05:52:51 +0000 (22:52 -0700)]
ao-bringup: Do telegps freq cal before testing GPS

This lets the GPS get some time to see sats while we're messing with
the radio frequency calibration.

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

4 weeks agoao-bringup: Use new ao-cal-freq program for cal-freq script
Keith Packard [Sat, 6 Jun 2015 05:52:21 +0000 (22:52 -0700)]
ao-bringup: Use new ao-cal-freq program for cal-freq script

Remove shell script bits that were unreliable.

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

4 weeks agoao-tools: Create ao-cal-freq
Keith Packard [Sat, 6 Jun 2015 05:17:02 +0000 (22:17 -0700)]
ao-tools: Create ao-cal-freq

Create C-based frequency calibration program to replace shell script
which isn't reliable.

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

4 weeks agoaltosdroid: Highlight age in red when older than 10 seconds
Keith Packard [Tue, 2 Jun 2015 19:48:42 +0000 (12:48 -0700)]
altosdroid: Highlight age in red when older than 10 seconds

This lets you quickly identify stale data

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

4 weeks agoaltosdroid: Switch from custom title to standard Holo theme
Keith Packard [Mon, 1 Jun 2015 06:09:18 +0000 (23:09 -0700)]
altosdroid: Switch from custom title to standard Holo theme

This gives us the menu button, which is awfully useful on devices
without a hardware version...

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

5 weeks agoaltoslib: Require 'debug' hook in AltosMapInterface
Keith Packard [Fri, 29 May 2015 16:49:30 +0000 (09:49 -0700)]
altoslib: Require 'debug' hook in AltosMapInterface

This lets the map users redirect debug messages as appropriate

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

5 weeks agoaltosdroid: use 'show' to set new tab contents in onResume
Keith Packard [Fri, 29 May 2015 16:43:58 +0000 (09:43 -0700)]
altosdroid: use 'show' to set new tab contents in onResume

Hook onResume so that newly created/recreated tabs get current
contents. The set_visible hook isn't sufficient for that.

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

5 weeks agoaltosdroid: Missing call to super.onDetach from TabMapOffline
Keith Packard [Fri, 29 May 2015 16:42:58 +0000 (09:42 -0700)]
altosdroid: Missing call to super.onDetach from TabMapOffline

Causes an exception when you shut down the application.

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

5 weeks agoaltosdroid: Split out AltosMapView into separate file
Keith Packard [Fri, 29 May 2015 05:13:39 +0000 (22:13 -0700)]
altosdroid: Split out AltosMapView into separate file

This lets us use the regular layout configuration bits in the .xml
file instead of needing to patch the map object into the display. That
was causing problems when re-entering the map tab as the map view
would somehow end up with a zero width.

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

5 weeks agoaltosdroid: Add 'Current Location' as an option when preloading maps
Keith Packard [Fri, 29 May 2015 05:12:26 +0000 (22:12 -0700)]
altosdroid: Add 'Current Location' as an option when preloading maps

This lets you load maps around your current location, in case your
favorite launch site isn't in the list.

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

5 weeks agoaltosdroid: Save selected map type in AltosDroid object
Keith Packard [Fri, 29 May 2015 05:08:51 +0000 (22:08 -0700)]
altosdroid: Save selected map type in AltosDroid object

The map tabs may not have been created when the map type was selected,
so save the desired type in the main application object.

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

5 weeks agoaltosdroid: Disable debug output on release builds
Keith Packard [Fri, 29 May 2015 05:06:55 +0000 (22:06 -0700)]
altosdroid: Disable debug output on release builds

We generate an awful lot of debug spew to the log; presumably that's
not helping performance, so lose that for release builds.

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

5 weeks agoaltosdroid: Look for zipalign in the new place too
Keith Packard [Fri, 29 May 2015 05:05:36 +0000 (22:05 -0700)]
altosdroid: Look for zipalign in the new place too

This build tool moved for some reason...

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

5 weeks agoaltosdroid: Add map types and map preloading UIs
Keith Packard [Thu, 28 May 2015 08:05:18 +0000 (01:05 -0700)]
altosdroid: Add map types and map preloading UIs

This adds an ugly dialog to select which maps to preload, and also
adds the ability to display other map types.

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

5 weeks agoaltoslib: Pass all map loader params to set_load_params
Keith Packard [Thu, 28 May 2015 08:01:23 +0000 (01:01 -0700)]
altoslib: Pass all map loader params to set_load_params

Add zoom and map type to the param list so we don't call set_zoom and
set_maptype separately, which only causes lots of extra image loads to
get started unnecessarily.

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

5 weeks agoaltosuilib: Eliminate extra MapCache in AltosUIMapPreloadNew
Keith Packard [Thu, 28 May 2015 08:00:47 +0000 (01:00 -0700)]
altosuilib: Eliminate extra MapCache in AltosUIMapPreloadNew

Use the cache from the map.

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

5 weeks agoaltosuilib: Get rid of AltosUIMapNew.set_load_params
Keith Packard [Thu, 28 May 2015 08:00:22 +0000 (01:00 -0700)]
altosuilib: Get rid of AltosUIMapNew.set_load_params

This isn't needed anywhere.

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

5 weeks agoaltosuilib: Switch to altoslib map loading code
Keith Packard [Thu, 28 May 2015 06:14:09 +0000 (23:14 -0700)]
altosuilib: Switch to altoslib map loading code

Remove the map loading code from the UI bits and use the new altoslib
version instead.

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

5 weeks agoaltoslib: Add map loading helper class
Keith Packard [Thu, 28 May 2015 06:12:34 +0000 (23:12 -0700)]
altoslib: Add map loading helper class

This adds the AltosMapLoader class, which iterates over a sequence of
zoom levels and formats to get local copies of a desired launch site.

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

5 weeks agoaltoslib: Provide toString method for AltosLatLon
Keith Packard [Thu, 28 May 2015 06:11:58 +0000 (23:11 -0700)]
altoslib: Provide toString method for AltosLatLon

Makes printing them easier.

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

5 weeks agoaltoslib: Start with map empty
Keith Packard [Thu, 28 May 2015 05:43:53 +0000 (22:43 -0700)]
altoslib: Start with map empty

Don't load images from 0,0 for no good reason; wait until someone sets
a desired lat/lon

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

5 weeks agoaltosuilib: Use altoslib site list loader
Keith Packard [Wed, 27 May 2015 22:31:25 +0000 (15:31 -0700)]
altosuilib: Use altoslib site list loader

Removes the custom version and uses the shared code

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

5 weeks agoaltoslib: Add AltosLaunchSite bits
Keith Packard [Wed, 27 May 2015 22:30:29 +0000 (15:30 -0700)]
altoslib: Add AltosLaunchSite bits

This asynchronously fetches the list of available launch sites from
the standard location and notifies the caller when finished.

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

5 weeks agoaltosdroid: Place icons on screen instead of drawing path
Keith Packard [Wed, 27 May 2015 06:05:49 +0000 (23:05 -0700)]
altosdroid: Place icons on screen instead of drawing path

This makes drawing a bunch faster, and locating stuff on the screen easier.

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

5 weeks agoaltosdroid: Centralize debug printf code
Keith Packard [Wed, 27 May 2015 06:05:11 +0000 (23:05 -0700)]
altosdroid: Centralize debug printf code

Create AltosDebug to hold the debug code, use it everywhere.

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

5 weeks agoaltosdroid: Move pause before reopening bluetooth into connec thread
Keith Packard [Wed, 27 May 2015 06:02:43 +0000 (23:02 -0700)]
altosdroid: Move pause before reopening bluetooth into connec thread

This avoids stalling the UI while waiting for TBT to boot.

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

5 weeks agoaltosdroid: Add offline map tab
Keith Packard [Wed, 27 May 2015 02:47:04 +0000 (19:47 -0700)]
altosdroid: Add offline map tab

It's not very fancy yet, but it does zoom and pan, and show the path
of the rocket with a line.

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

5 weeks agoaltosuilib: Get rid of AltosUIVersion.java
Keith Packard [Tue, 26 May 2015 08:04:00 +0000 (01:04 -0700)]
altosuilib: Get rid of AltosUIVersion.java

It's been moved to altoslib/AltosVersion.java

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

5 weeks agoaltosuilib: Remove old map bits
Keith Packard [Tue, 26 May 2015 07:56:17 +0000 (00:56 -0700)]
altosuilib: Remove old map bits

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

5 weeks agoaltosuilib: Use new map code for map preload UI
Keith Packard [Tue, 26 May 2015 07:46:21 +0000 (00:46 -0700)]
altosuilib: Use new map code for map preload UI

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

5 weeks agoaltosuilib: Add AltosUIImage.java
Keith Packard [Tue, 26 May 2015 07:33:02 +0000 (00:33 -0700)]
altosuilib: Add AltosUIImage.java

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

5 weeks agoaltoslib/altosuilib: Get new Map display code running in altosui and telegps
Keith Packard [Tue, 26 May 2015 07:29:53 +0000 (00:29 -0700)]
altoslib/altosuilib: Get new Map display code running in altosui and telegps

Looks like the display is all hooked up. Still need to replace the
preload UIs.

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

5 weeks agoaltoslib/altosuilib: Update library version to 7
Keith Packard [Tue, 26 May 2015 03:34:05 +0000 (20:34 -0700)]
altoslib/altosuilib: Update library version to 7

So many ABI/API changes

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

5 weeks agoaltoslib: More frobbing with new map bits
Keith Packard [Tue, 26 May 2015 03:33:28 +0000 (20:33 -0700)]
altoslib: More frobbing with new map bits

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

5 weeks agoaltoslib: Get new abstract mapping code compiling
Keith Packard [Tue, 26 May 2015 03:10:37 +0000 (20:10 -0700)]
altoslib: Get new abstract mapping code compiling

Not useful yet, but at least it compiles now?

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

5 weeks agoaltoslib: Build AltosVersion.java in configure.ac
Keith Packard [Mon, 25 May 2015 23:35:23 +0000 (16:35 -0700)]
altoslib: Build AltosVersion.java in configure.ac

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

5 weeks agoaltos/telelco: Show box voltage with pad knob instead of firing button
Keith Packard [Mon, 25 May 2015 23:26:01 +0000 (16:26 -0700)]
altos/telelco: Show box voltage with pad knob instead of firing button

Turn left past '1' and see the firing box battery voltage instead of
pushing the firing button with the box disarmed. This seems like a
safer UI.

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

5 weeks agoaltos/telelco: Display telefire battery voltage
Keith Packard [Mon, 25 May 2015 22:49:21 +0000 (15:49 -0700)]
altos/telelco: Display telefire battery voltage

When the firing button is pressed while unarmed, show the telefire
battery voltage in the display.

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

5 weeks agoaltos: Add telelco v0.3 (v0.2 with cc1200 instead of cc1120)
Keith Packard [Mon, 25 May 2015 22:47:46 +0000 (15:47 -0700)]
altos: Add telelco v0.3 (v0.2 with cc1200 instead of cc1120)

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

5 weeks agotelefire: Report telefire battery voltage over telemetry link
Keith Packard [Mon, 25 May 2015 20:23:54 +0000 (13:23 -0700)]
telefire: Report telefire battery voltage over telemetry link

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

6 weeks agoaltos: Only set CMAC RSSI value on valid packet received
Keith Packard [Mon, 25 May 2015 00:28:07 +0000 (17:28 -0700)]
altos: Only set CMAC RSSI value on valid packet received

This ignores spurious packets for the purpose of showing the RSSI
value in telelco/telefire, avoiding warning about 'low RSSI' when the
radio receives noise.

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

6 weeks agotelefire: Make 'good' RSSI value configurable
Keith Packard [Mon, 25 May 2015 00:25:25 +0000 (17:25 -0700)]
telefire: Make 'good' RSSI value configurable

Different radios will have different 'good' RSSI values, so let each
product configure it, leaving the default set to -90dBm, which is
a solid signal value for the CC1111.

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

6 weeks agoaltoslib: Create display-independent map support code
Keith Packard [Thu, 21 May 2015 20:49:28 +0000 (13:49 -0700)]
altoslib: Create display-independent map support code

This takes the swing-specific map code and creates a generic version.

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

6 weeks agoFlip version to 1.6.0.2
Keith Packard [Tue, 19 May 2015 17:25:05 +0000 (10:25 -0700)]
Flip version to 1.6.0.2

Tag a version for development builds

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

6 weeks agomicropeak: Use fast load mode by default in -load script
Keith Packard [Tue, 19 May 2015 17:23:09 +0000 (10:23 -0700)]
micropeak: Use fast load mode by default in -load script

Speed up flashing in default config

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

6 weeks agomicrosplash: Add 'publish' target to Makefile
Keith Packard [Tue, 19 May 2015 17:22:10 +0000 (10:22 -0700)]
microsplash: Add 'publish' target to Makefile

This dumps the resulting binary and -load script into the Binaries
directory of the altusmetrumllc repo

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

6 weeks agoaltos: Support 32MHz xtal on cc1200
Keith Packard [Tue, 19 May 2015 17:17:01 +0000 (10:17 -0700)]
altos: Support 32MHz xtal on cc1200

I ended up building some cc1200-based boards with 32MHz xtals, so just
make this an option when building the driver.

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

6 weeks agodoc: Clarify what 'after motor' means
Keith Packard [Tue, 19 May 2015 17:16:10 +0000 (10:16 -0700)]
doc: Clarify what 'after motor' means

Note that this means after motor burn-out, not after motor start.

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

6 weeks agoao-dump-up: Add --wait option to make testing µPusb easier
Keith Packard [Tue, 19 May 2015 17:14:43 +0000 (10:14 -0700)]
ao-dump-up: Add --wait option to make testing µPusb easier

The --wait option hangs around until a suitable device appears, so
that you can test a pile of µPusb devices without needing to
constantly interact with the command line.

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

6 weeks agoaltosui: Remove un-implemented --fetchmaps argument
Keith Packard [Tue, 19 May 2015 17:12:52 +0000 (10:12 -0700)]
altosui: Remove un-implemented --fetchmaps argument

This has been stubbed out for a while, so just remove it.

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