fw/altos
4 years agoBump release number to 1.6.1.1
Keith Packard [Mon, 21 Sep 2015 05:27:26 +0000 (06:27 +0100)]
Bump release number to 1.6.1.1

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoaltoslib: Make sure .eeprom download file is flushed on exception
Keith Packard [Mon, 21 Sep 2015 05:25:49 +0000 (06:25 +0100)]
altoslib: Make sure .eeprom download file is flushed on exception

Flush and close the eeprom file even if an exception occurs to make
sure that contents of the file aren't lost.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoaltosuilib: In display thread, set new state synchronously
Keith Packard [Mon, 21 Sep 2015 05:00:36 +0000 (06:00 +0100)]
altosuilib: In display thread, set new state synchronously

When replaying telemetry, received_time gets set by both the
telemetry reader (when the file is initially read) and by the replay
reader (as the telemetry is processed). Because these two events are
separated by the time it takes to play the file, the second time is
the one we want for figuring out how long since the last telemetry
packet. However, if we set the global state when pulling the state out
of the telemetry reader, and then the replay reader pauses for a long
time, then the voice output thread sees the intermediate time value
and thinks that it has been a long time since the last packet was
received and reports that the rocket may have crashed.

Fix this by just holding the read state until it has been passed by
the replay reader and had the received_time set to current time.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoaltosdroid: Add minus sign and decimal point to lat/lon input fields
Keith Packard [Mon, 14 Sep 2015 05:27:10 +0000 (22:27 -0700)]
altosdroid: Add minus sign and decimal point to lat/lon input fields

Some android devices always have change-sign and decimal-point keys
visible, but some do not. Make sure they're available for lat/lon input.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoaltos/telelco: Adjust drag race UI
Keith Packard [Mon, 14 Sep 2015 05:24:47 +0000 (22:24 -0700)]
altos/telelco: Adjust drag race UI

Enter/leave drag race is done by rotating the box selector knob
to a new 'dr' position and then holding down the firing button; this
avoids a potential accidental firing if you somehow don't realize
you've armed the box before selecting drag race mode.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoaltoslib: Rotation off by factor of two
Keith Packard [Sun, 13 Sep 2015 03:41:37 +0000 (20:41 -0700)]
altoslib: Rotation off by factor of two

The rotation computation was off by a factor of two when converting
the rates to a quaternion (the quaternion needs to be half of the
actual rotation amount). This ended up presenting a tilt angle of
twice what it should be.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoaltoslib: Hide 'state' member and use accessor function
Keith Packard [Sun, 13 Sep 2015 02:20:49 +0000 (19:20 -0700)]
altoslib: Hide 'state' member and use accessor function

Someone was smashing the state to 'landed' when no packets had been
received for a while. Found that by making it impossible for anyone
outside of AltosState to change the value.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Tue, 29 Sep 2015 06:46:42 +0000 (00:46 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

4 years agoadd automatic Bluetooth functionality check to turnon_telebt
Bdale Garbee [Tue, 29 Sep 2015 06:45:27 +0000 (00:45 -0600)]
add automatic Bluetooth functionality check to turnon_telebt

4 years agoaltos/telelco: Add drag race UI
Keith Packard [Sun, 30 Aug 2015 00:29:00 +0000 (17:29 -0700)]
altos/telelco: Add drag race UI

With the unit disarmed, press and hold the fire button for five
seconds to enable drag race mode.

The display will show 'dr' for five seconds and beep five times to
indicate that drag race mode is enabled. The decimal points in the
display will all be displayed as an additional visual aid. Once every
five seconds, it will beep.

With drag race mode enabled, you can select a box/pad pair and press
the 'fire' button to add it to the drag race group. For the current
box, all members of the drag race group will have their continuity
LEDs blink slowly. There will be no indication of continuity in this
mode; you'll want to check that before enabling drag race mode. If you
want to de-select a member of the group, just press the fire button
again. Each time you push the fire button, it will beep out the pad
number added or removed.

Arm the box and you will not be able to add or remove members from the
drag race group. Firing will simultaneously fire all members of the
drag race group.

To disable drag race mode, press and hold the fire button for two
seconds. It will beep twice and turn off the decimal points in the display.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoaltos/telelco: Infrastructure changes for drag racing
Keith Packard [Sat, 29 Aug 2015 20:21:19 +0000 (13:21 -0700)]
altos/telelco: Infrastructure changes for drag racing

This makes the lco management code support arming multiple pads and
firing all of them at once. The UI code does not expose this yet.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoaltos: Provide direct segment driving interface for LCD displays
Keith Packard [Sat, 29 Aug 2015 20:20:16 +0000 (13:20 -0700)]
altos: Provide direct segment driving interface for LCD displays

This exposes a simple bit-mask for setting the seven segments instead
of just allowing hex-decimal values.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoaltos/telefire: No reply for ARMED. Ignore time for FIRE.
Keith Packard [Sat, 29 Aug 2015 20:18:46 +0000 (13:18 -0700)]
altos/telefire: No reply for ARMED. Ignore time for FIRE.

This will let us do drag races by letting the LCO arm multiple boxes
and fire them all with a single command.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoaltos: Add HAS_COMPANION to new boards with companion connectors
Keith Packard [Fri, 21 Aug 2015 06:02:04 +0000 (23:02 -0700)]
altos: Add HAS_COMPANION to new boards with companion connectors

Thanks much to Rob Derstadt for discovering this bug!

TeleMetrum v2.0, TeleMega, EasyMega, TeleBalloon v2.0 all have
companion connectors and yet HAS_COMPANION was not defined. This
disabled companion telemetry packets on these products, but otherwise
didn't have any effect.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoao-telem: Add companion packet telemetry data printing
Keith Packard [Thu, 20 Aug 2015 17:51:11 +0000 (10:51 -0700)]
ao-telem: Add companion packet telemetry data printing

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoaltoslib: Add companion telemetry data support
Keith Packard [Thu, 20 Aug 2015 17:50:30 +0000 (10:50 -0700)]
altoslib: Add companion telemetry data support

This got lost in the great telemetry rewrite

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoapply wrap-and-sort to control files
Bdale Garbee [Sun, 16 Aug 2015 15:43:32 +0000 (17:43 +0200)]
apply wrap-and-sort to control files

4 years agoturnon script for TeleBT v3.0
Bdale Garbee [Sat, 8 Aug 2015 02:52:48 +0000 (20:52 -0600)]
turnon script for TeleBT v3.0

4 years agoadd a paragraph about TeleBT battery charging to AltosDroid chapter in documentation
Bdale Garbee [Fri, 31 Jul 2015 16:47:08 +0000 (10:47 -0600)]
add a paragraph about TeleBT battery charging to AltosDroid chapter in documentation

4 years agomove turnon_teledongle to new cal-freq code
Bdale Garbee [Tue, 28 Jul 2015 07:34:25 +0000 (01:34 -0600)]
move turnon_teledongle to new cal-freq code

4 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Thu, 16 Jul 2015 13:54:35 +0000 (07:54 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

4 years agoBump Java library versions
Keith Packard [Thu, 16 Jul 2015 01:31:05 +0000 (18:31 -0700)]
Bump Java library versions

Avoid problems if you have an old version of the library installed

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Wed, 15 Jul 2015 22:43:50 +0000 (16:43 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

4 years agoBump configure.ac versions to 1.6.1
Keith Packard [Wed, 15 Jul 2015 18:41:03 +0000 (11:41 -0700)]
Bump configure.ac versions to 1.6.1

And set android version to 9

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agodoc: Update for 1.6.1
Keith Packard [Wed, 15 Jul 2015 18:40:24 +0000 (11:40 -0700)]
doc: Update for 1.6.1

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoBump version to 1.6.0.4 (android version 8) 1.6.0.4
Keith Packard [Sun, 12 Jul 2015 05:33:07 +0000 (22:33 -0700)]
Bump version to 1.6.0.4 (android version 8)

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoaltosdroid: Cleanup Makefile.am
Keith Packard [Sun, 12 Jul 2015 05:31:47 +0000 (22:31 -0700)]
altosdroid: Cleanup Makefile.am

Avoid re-creating library symlinks.
Make builds depend on resource files too.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoaltosdroid: Clean up tab layout
Keith Packard [Sun, 12 Jul 2015 05:17:16 +0000 (22:17 -0700)]
altosdroid: Clean up tab layout

Fuss with weights and gravitys, then add some wrapping layouts to get
things looking reasonable on small and larger screens.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoadd debian branch spec to vcs-git: line in control so Debian tools work right
Bdale Garbee [Sun, 12 Jul 2015 04:59:34 +0000 (22:59 -0600)]
add debian branch spec to vcs-git: line in control so Debian tools work right

4 years agoaltosdroid: Add 'Auto' to map tracker list
Keith Packard [Sun, 12 Jul 2015 03:37:16 +0000 (20:37 -0700)]
altosdroid: Add 'Auto' to map tracker list

Add an 'auto' menu entry when selecting trackers from the map.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoaltosdroid: Note time at startup to avoid flipping trackers
Keith Packard [Sun, 12 Jul 2015 03:36:18 +0000 (20:36 -0700)]
altosdroid: Note time at startup to avoid flipping trackers

Need to set the initial 'switch' time in onStart to avoid flipping
between trackers before we've done any other 'switching' action.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoGenerate Android version info from configure.ac
Keith Packard [Sun, 12 Jul 2015 03:21:34 +0000 (20:21 -0700)]
Generate Android version info from configure.ac

This avoids having version data in two places.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoaltosdroid: Add other igniter status, various other layout changes
Keith Packard [Sun, 12 Jul 2015 02:55:43 +0000 (19:55 -0700)]
altosdroid: Add other igniter status, various other layout changes

Show the first four igniters (A-D) in the pad tab. Make pad and flight
layouts look a bit better

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoaltosdroid: Don't disconnect from bluetooth onStartCommand
Keith Packard [Sun, 12 Jul 2015 02:54:36 +0000 (19:54 -0700)]
altosdroid: Don't disconnect from bluetooth onStartCommand

If we've already got a bluetooth connection running, don't slam it
shut when the UI starts up again.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoaltosdroid: Remove a debug line in AltosVoice
Keith Packard [Sun, 12 Jul 2015 02:54:07 +0000 (19:54 -0700)]
altosdroid: Remove a debug line in AltosVoice

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoaltosdroid: Pop up menu of nearby trackers on map click
Keith Packard [Sun, 12 Jul 2015 02:53:06 +0000 (19:53 -0700)]
altosdroid: Pop up menu of nearby trackers on map click

This lets the user select one of potentially many overlapping
trackers, and also makes it clear when the current tracker is being
changed.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoaltosdroid: Keep speaking even when screen is off
Keith Packard [Sun, 12 Jul 2015 02:17:40 +0000 (19:17 -0700)]
altosdroid: Keep speaking even when screen is off

Move the voice and telemetry disabling calls from onStop to onDestroy
so that a stopped application only leaves off updating the screen, and
not the voice bits as well.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoaltoslib: Preload maps based on distance rather than number of tiles
Keith Packard [Sun, 12 Jul 2015 02:15:08 +0000 (19:15 -0700)]
altoslib: Preload maps based on distance rather than number of tiles

This lets you get the specific area requested at all zoom levels,
rather than having further detail only at lower resolution zooms.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoaltoslib: Convert longitude from distance in AltosMapTransform
Keith Packard [Sun, 12 Jul 2015 02:13:37 +0000 (19:13 -0700)]
altoslib: Convert longitude from distance in AltosMapTransform

This computes the longitude cooresponding to a specific distance at a
specific latitude.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoaltoslib: Limit simultanous map tile downloads to 128
Keith Packard [Sun, 12 Jul 2015 02:11:48 +0000 (19:11 -0700)]
altoslib: Limit simultanous map tile downloads to 128

Before this change, every tile requested would get downloaded at the
same time. With moving to distance-based offline map loading radius
values, the number of tiles at closer zooms was in the thousands,
overwhelming the network.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoaltoslib: Make earth size constants public
Keith Packard [Sun, 12 Jul 2015 02:10:44 +0000 (19:10 -0700)]
altoslib: Make earth size constants public

This lets other code share the values.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoaltoslib: Make AltosMap floor/ceil static. Check transform in paint
Keith Packard [Sun, 12 Jul 2015 02:09:28 +0000 (19:09 -0700)]
altoslib: Make AltosMap floor/ceil static. Check transform in paint

This avoids crashing in paint when no transform has been set yet.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agotelegps: Add receiver battery to Status display
Keith Packard [Fri, 26 Jun 2015 01:40:21 +0000 (18:40 -0700)]
telegps: Add receiver battery to Status display

Makes it a bit cramped, but it's useful to have if you're using TeleBT.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoaltosui: Correctly show/hide receiver battery value
Keith Packard [Fri, 26 Jun 2015 01:35:07 +0000 (18:35 -0700)]
altosui: Correctly show/hide receiver battery value

Override the hide() test function which has the listener_state

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoaltosuilib: Receiver battery voltage lives in listener_state
Keith Packard [Fri, 26 Jun 2015 01:33:46 +0000 (18:33 -0700)]
altosuilib: Receiver battery voltage lives in listener_state

The code to detect whether to show or hide this entry was using
functions that weren't given the listener_state and hence returned
MISSING all of the time.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoaltoslib: Support TeleBT v3.0 battery voltage conversion
Keith Packard [Fri, 26 Jun 2015 01:31:29 +0000 (18:31 -0700)]
altoslib: Support TeleBT v3.0 battery voltage conversion

TeleBT v3.0 uses an STM32 instead of a cc1111, so it needs a different
voltage computation from the raw ADC value.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoaltos/telebt-v3.0: Report battery voltage correctly
Keith Packard [Fri, 26 Jun 2015 01:42:29 +0000 (18:42 -0700)]
altos/telebt-v3.0: Report battery voltage correctly

There was an extra %d, and an extra ':' in the output, making the UI
not parse the voltage correctly

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoaltoslib: Don't crash if dragging a map view without any tiles
Keith Packard [Thu, 25 Jun 2015 19:23:04 +0000 (12:23 -0700)]
altoslib: Don't crash if dragging a map view without any tiles

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoaltosdroid: Class of offline map view widget changed
Keith Packard [Thu, 25 Jun 2015 19:22:04 +0000 (12:22 -0700)]
altosdroid: Class of offline map view widget changed

Switch around AltosViewPager to match.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 years agoaltosdroid: Display direction in map view
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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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>
4 years 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

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

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