fw/altos
4 years agoRemove ao_radio_cal from stm products without radios fox fox1-v3-sn10 fox1-v3-sn9
Keith Packard [Sat, 8 Aug 2015 03:16:41 +0000 (20:16 -0700)]
Remove ao_radio_cal from stm products without radios

Products without a radio don't need this value.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos/flash-loader: On STM, don't include ao_usb_disable fox1-v3-sn5 fox1-v3-sn6 fox1-v3-sn7 fox1-v3-sn8
Keith Packard [Wed, 16 Jul 2014 05:52:35 +0000 (22:52 -0700)]
altos/flash-loader: On STM, don't include ao_usb_disable

This saves a bit of space, keeping the flash loader under 4k on fox

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoMerge tag '1.4' into fox
Keith Packard [Wed, 16 Jul 2014 05:55:20 +0000 (22:55 -0700)]
Merge tag '1.4' into fox

tagging 1.4 release

Conflicts:
src/Makefile

5 years agoturn-on support for TeleGPS 1.4
Bdale Garbee [Sun, 15 Jun 2014 23:44:42 +0000 (17:44 -0600)]
turn-on support for TeleGPS

5 years agotagging 1.4 release
Bdale Garbee [Sun, 15 Jun 2014 23:43:50 +0000 (17:43 -0600)]
tagging 1.4 release

5 years agoadd release to revision history
Bdale Garbee [Sun, 15 Jun 2014 23:43:06 +0000 (17:43 -0600)]
add release to revision history

5 years agotweaks
Bdale Garbee [Sun, 15 Jun 2014 23:40:27 +0000 (17:40 -0600)]
tweaks

5 years agoMerge remote-tracking branch 'origin/master'
Keith Packard [Sun, 15 Jun 2014 23:31:01 +0000 (16:31 -0700)]
Merge remote-tracking branch 'origin/master'

5 years agomicropeak: Deal with 64-bit windows
Keith Packard [Sun, 15 Jun 2014 23:24:28 +0000 (16:24 -0700)]
micropeak: Deal with 64-bit windows

Install 64-bit version of java. Install our bits in the 64-bit app directory

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoAdd notes about windows driver signing in the 'signing-driver' file
Keith Packard [Sun, 15 Jun 2014 23:16:59 +0000 (16:16 -0700)]
Add notes about windows driver signing in the 'signing-driver' file

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosui: Ship telegps firmware
Keith Packard [Sun, 15 Jun 2014 23:11:49 +0000 (16:11 -0700)]
altosui: Ship telegps firmware

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agowindows: Sign altusmetrum.inf with altusmetrum.cat
Keith Packard [Sun, 15 Jun 2014 23:10:15 +0000 (16:10 -0700)]
windows: Sign altusmetrum.inf with altusmetrum.cat

This .cat file will need to be updated when we get our 'real'
signature.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoicon: Add drop-shadows to the SVG files; stop generating in the png versions
Keith Packard [Sun, 15 Jun 2014 23:06:42 +0000 (16:06 -0700)]
icon: Add drop-shadows to the SVG files; stop generating in the png versions

Now everyone gets drop shadows.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoupdate Releasing document to include TeleGPS firmware files in those copied
Bdale Garbee [Sun, 15 Jun 2014 23:29:49 +0000 (17:29 -0600)]
update Releasing document to include TeleGPS firmware files in those copied

5 years agodocument mounting hole size for TeleGPS
Bdale Garbee [Sun, 15 Jun 2014 23:28:02 +0000 (17:28 -0600)]
document mounting hole size for TeleGPS

5 years agoaltosui: Deal with 64-bit windows
Keith Packard [Sun, 15 Jun 2014 23:08:27 +0000 (16:08 -0700)]
altosui: Deal with 64-bit windows

Get a 64-bit java version installed

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agotelegps: Deal with 64-bit windows differently on install
Keith Packard [Sun, 15 Jun 2014 21:09:09 +0000 (14:09 -0700)]
telegps: Deal with 64-bit windows differently on install

Download a 64-bit version of java as needed, install in 64-bit paths
instead of 32-bit paths.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agowindows: Rename telemetrum.inf to altusmetrum.inf
Keith Packard [Sun, 15 Jun 2014 19:39:49 +0000 (12:39 -0700)]
windows: Rename telemetrum.inf to altusmetrum.inf

Use the corporate name for this file

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agotelegps: Include telegps firmware in windows package
Keith Packard [Sun, 15 Jun 2014 05:29:01 +0000 (22:29 -0700)]
telegps: Include telegps firmware in windows package

This was disabled when the firmware wasn't ready yet

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosuilib: Remove some debugging printfs
Keith Packard [Sun, 15 Jun 2014 05:23:10 +0000 (22:23 -0700)]
altosuilib: Remove some debugging printfs

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltoslib: AltosFlightStatsTable: another editable text field that shouldn't be
Keith Packard [Sun, 15 Jun 2014 03:08:40 +0000 (20:08 -0700)]
altoslib: AltosFlightStatsTable: another editable text field that shouldn't be

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosuilib: Serialize access to async tile notify function in preload
Keith Packard [Sun, 15 Jun 2014 01:51:25 +0000 (18:51 -0700)]
altosuilib: Serialize access to async tile notify function in preload

This ensures that we see each tile getting downloaded and don't
mis-count, which would result in wedging the process

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoicon: Make the icon shadows a bit less harsh
Keith Packard [Sun, 15 Jun 2014 01:34:09 +0000 (18:34 -0700)]
icon: Make the icon shadows a bit less harsh

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agodebian: Build requires /usr/bin/convert now
Keith Packard [Sun, 15 Jun 2014 01:11:28 +0000 (18:11 -0700)]
debian: Build requires /usr/bin/convert now

This is provided by either graphicsmagick or imagemagick

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agotelegps/micropeak: Ship built Mac OSX icons
Keith Packard [Sun, 15 Jun 2014 01:09:31 +0000 (18:09 -0700)]
telegps/micropeak: Ship built Mac OSX icons

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoicon: Build resolutions needed for Java bits too
Keith Packard [Sun, 15 Jun 2014 01:07:39 +0000 (18:07 -0700)]
icon: Build resolutions needed for Java bits too

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosui: Build MacOSX icon from svg
Keith Packard [Sun, 15 Jun 2014 01:06:36 +0000 (18:06 -0700)]
altosui: Build MacOSX icon from svg

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoicon: Build windows ico files, clean built files
Keith Packard [Sun, 15 Jun 2014 01:02:51 +0000 (18:02 -0700)]
icon: Build windows ico files, clean built files

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoicon: Create all icons from .svg files
Keith Packard [Sun, 15 Jun 2014 00:51:46 +0000 (17:51 -0700)]
icon: Create all icons from .svg files

Remove images from repository, leaving only the svg files and build
instructions

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosuilib: Make graph enable buttons be CheckBoxes instead of RadioButtons
Keith Packard [Sat, 14 Jun 2014 23:26:22 +0000 (16:26 -0700)]
altosuilib: Make graph enable buttons be CheckBoxes instead of RadioButtons

aj noticed.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agotelegps: Fix Mac icon file name
Keith Packard [Sat, 14 Jun 2014 23:05:51 +0000 (16:05 -0700)]
telegps: Fix Mac icon file name

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agomicropeak: Make statistics entries un-editable
Keith Packard [Sat, 14 Jun 2014 22:44:20 +0000 (15:44 -0700)]
micropeak: Make statistics entries un-editable

Otherwise you can actually type in the various fields.x

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoalotsuilib: Remove old "mega" and "mini" file extensions from data chooser
Keith Packard [Sat, 14 Jun 2014 22:20:07 +0000 (15:20 -0700)]
alotsuilib: Remove old "mega" and "mini" file extensions from data chooser

We never shipped AltosUI which stored mega/mini files in different extensions

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosui/telegps: Switch to AltosUIIndicator and AltosUIFlightTab
Keith Packard [Sat, 14 Jun 2014 21:41:13 +0000 (14:41 -0700)]
altosui/telegps: Switch to AltosUIIndicator and AltosUIFlightTab

Removes replicated code across all flight tabs

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosuilib: Add AltosUIFlightTab class
Keith Packard [Sat, 14 Jun 2014 21:40:24 +0000 (14:40 -0700)]
altosuilib: Add AltosUIFlightTab class

This covers most of the common functions for all flight status display tabs.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosuilib: Add more options to AltosUIIndicator to suit AltosUI
Keith Packard [Sat, 14 Jun 2014 21:39:26 +0000 (14:39 -0700)]
altosuilib: Add more options to AltosUIIndicator to suit AltosUI

This makes AltosUIIndicator capable of displaying most stuff in AltosUI

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosuilib: Make sure only one thread is closing serial device
Keith Packard [Sat, 14 Jun 2014 21:38:00 +0000 (14:38 -0700)]
altosuilib: Make sure only one thread is closing serial device

Multiple closers can cause a crash by freeing the libaltos device twice

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosuilib: provide getName() for AltosInfoTable
Keith Packard [Sat, 14 Jun 2014 21:37:35 +0000 (14:37 -0700)]
altosuilib: provide getName() for AltosInfoTable

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosuilib: In graph, show zero sats in view as 0 instead of MISSING
Keith Packard [Sat, 14 Jun 2014 21:36:49 +0000 (14:36 -0700)]
altosuilib: In graph, show zero sats in view as 0 instead of MISSING

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosuilib: Require all flight display classes to provide a name
Keith Packard [Sat, 14 Jun 2014 21:36:11 +0000 (14:36 -0700)]
altosuilib: Require all flight display classes to provide a name

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltoslib: When GPS disappears, set range and elevation to MISSING
Keith Packard [Sat, 14 Jun 2014 21:34:59 +0000 (14:34 -0700)]
altoslib: When GPS disappears, set range and elevation to MISSING

Use MISSING instead of bogus values so that displayers can tell what
to do.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltoslib: Add units converters for latitude and longitude
Keith Packard [Sat, 14 Jun 2014 21:33:58 +0000 (14:33 -0700)]
altoslib: Add units converters for latitude and longitude

Makes display of these values consistent across all instances

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agodoc: TeleGPS docs are complete
Keith Packard [Sat, 14 Jun 2014 05:36:00 +0000 (22:36 -0700)]
doc: TeleGPS docs are complete

All TeleGPS features should now be documented to some degree

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agotelegps: Allow TeleGPS preferences to have a custom title and label
Keith Packard [Sat, 14 Jun 2014 05:04:57 +0000 (22:04 -0700)]
telegps: Allow TeleGPS preferences to have a custom title and label

Don't just inherit the AltosUI ones

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agodoc: Add a bunch more stuff to the telegps docs
Keith Packard [Sat, 14 Jun 2014 05:04:35 +0000 (22:04 -0700)]
doc: Add a bunch more stuff to the telegps docs

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosuilib: Make map-cache per-window instead of global
Keith Packard [Sat, 14 Jun 2014 04:26:33 +0000 (21:26 -0700)]
altosuilib: Make map-cache per-window instead of global

This consumes more memory, but avoids cache conflicts between windows

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agotelegps: Shuffle menu entries around
Keith Packard [Sat, 14 Jun 2014 04:25:41 +0000 (21:25 -0700)]
telegps: Shuffle menu entries around

I think this makes them a bit more logical

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosdroid: Improve voice for TeleGPS
Keith Packard [Fri, 13 Jun 2014 22:54:08 +0000 (15:54 -0700)]
altosdroid: Improve voice for TeleGPS

This avoids making lots of useless voice announcements for TeleGPS

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosdroid: Don't crash when the map is touched
Keith Packard [Fri, 13 Jun 2014 22:53:30 +0000 (15:53 -0700)]
altosdroid: Don't crash when the map is touched

The map 'canScroll' method was crashing when dereferencing a null
value somewhere. Just check all of them and bail instead of crashing.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agotelegps: Add status tab
Keith Packard [Fri, 13 Jun 2014 22:23:30 +0000 (15:23 -0700)]
telegps: Add status tab

This includes pad-relative information, battery voltage and version information

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltoslib: Correctly save firmware version in AltosState
Keith Packard [Fri, 13 Jun 2014 22:22:25 +0000 (15:22 -0700)]
altoslib: Correctly save firmware version in AltosState

It wasn't getting cloned

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltoslib: Add conversion class for voltages
Keith Packard [Fri, 13 Jun 2014 22:21:28 +0000 (15:21 -0700)]
altoslib: Add conversion class for voltages

Provide a common presentation for voltage values

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosuilib: Build some common classes for displaying values in flight window
Keith Packard [Fri, 13 Jun 2014 22:20:20 +0000 (15:20 -0700)]
altosuilib: Build some common classes for displaying values in flight window

Right now, all of the flight displays have piles of custom code for
displaying values. These new widgets should be able to replace most of
that.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agotelegps: Show flight number in monitor window
Keith Packard [Fri, 13 Jun 2014 07:28:38 +0000 (00:28 -0700)]
telegps: Show flight number in monitor window

This lets the user find the flight by number

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agotelegps: Disconnect telemetry device when closing monitor window
Keith Packard [Fri, 13 Jun 2014 07:28:09 +0000 (00:28 -0700)]
telegps: Disconnect telemetry device when closing monitor window

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltoslib: Remove telem monitoring when closing log file
Keith Packard [Fri, 13 Jun 2014 07:27:19 +0000 (00:27 -0700)]
altoslib: Remove telem monitoring when closing log file

If we don't remove the telemetry monitor, the telemetry device will
still be sending telemetry, which isn't good.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltoslib: Call state.set_serial first for telemetry parsing
Keith Packard [Fri, 13 Jun 2014 07:01:46 +0000 (00:01 -0700)]
altoslib: Call state.set_serial first for telemetry parsing

If we ever get around to supporting multiple simultaneous remote
devices, we'll need to notice that the serial changed right away

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos/telegps: Create new flight if current flight is erased
Keith Packard [Fri, 13 Jun 2014 06:59:37 +0000 (23:59 -0700)]
altos/telegps: Create new flight if current flight is erased

telegps is unique in that USB may be connected while a flight is
active and sensible things should happen. If a flight is being
recorded and gets erased, then a new flight should be started.

This is done by hooking in the flight erase code and calling out to
the tracker code to figure out whether to switch to a new flight or not.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos: Define ao_log_mutex in ao_log.c rather than every log product
Keith Packard [Fri, 13 Jun 2014 06:56:07 +0000 (23:56 -0700)]
altos: Define ao_log_mutex in ao_log.c rather than every log product

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos/telegps: Keep ring of recent GPS positions to detect motion quickly
Keith Packard [Fri, 13 Jun 2014 04:54:13 +0000 (21:54 -0700)]
altos/telegps: Keep ring of recent GPS positions to detect motion quickly

Instead of comparing only against the last logged value, keep a ring
and start logging as soon as we move away from the furthest one in the ring.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos/telegps: Set default log to 496kB for 4 logs
Keith Packard [Fri, 13 Jun 2014 04:53:07 +0000 (21:53 -0700)]
altos/telegps: Set default log to 496kB for 4 logs

This leaves space for four flight logs.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos: Show current flight number for TeleGPS
Keith Packard [Fri, 13 Jun 2014 04:52:13 +0000 (21:52 -0700)]
altos: Show current flight number for TeleGPS

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agodebian: Fix build depends icotool -> icoutils
Keith Packard [Thu, 12 Jun 2014 22:59:20 +0000 (15:59 -0700)]
debian: Fix build depends icotool -> icoutils

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos/telegps: Don't log data when plugged in to USB
Keith Packard [Thu, 12 Jun 2014 21:34:02 +0000 (14:34 -0700)]
altos/telegps: Don't log data when plugged in to USB

We don't want to accidentally log stuff when you're just trying to
charge the battery.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agotelegps: Don't re-add frequency menu when already present.
Keith Packard [Thu, 12 Jun 2014 21:32:15 +0000 (14:32 -0700)]
telegps: Don't re-add frequency menu when already present.

If the receiver disappears, we'll stop tracking, but won't pull the
frequency menu down. Doing that would take a bit of work, and it
doesn't seem worth the effort. As a kludge-around, avoid re-creating
the frequency menu if it's already displayed when we connect to
another device.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosui/telegps: Reduce CPU time needed for flight displays
Keith Packard [Thu, 12 Jun 2014 21:12:08 +0000 (14:12 -0700)]
altosui/telegps: Reduce CPU time needed for flight displays

Don't update displays which aren't shown; track hierarchy changes to
trigger display from most recent state data.

Don't update values which haven't changed; remember previous values
and compare with new before updating widget contents.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agodoc: Add TeleGPS screenshots
Keith Packard [Thu, 12 Jun 2014 06:28:55 +0000 (23:28 -0700)]
doc: Add TeleGPS screenshots

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agodoc: Update altusmetrum docs and screen shots for 1.4
Keith Packard [Thu, 12 Jun 2014 06:28:36 +0000 (23:28 -0700)]
doc: Update altusmetrum docs and screen shots for 1.4

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agotelegps: Remove 'Flight' from titles
Keith Packard [Thu, 12 Jun 2014 06:27:16 +0000 (23:27 -0700)]
telegps: Remove 'Flight' from titles

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos/telegps: Build .ihx versions for TeleGPS
Keith Packard [Thu, 12 Jun 2014 06:26:36 +0000 (23:26 -0700)]
altos/telegps: Build .ihx versions for TeleGPS

Needed to load with java

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosuilib: Repaint map when starting line draw
Keith Packard [Thu, 12 Jun 2014 06:04:46 +0000 (23:04 -0700)]
altosuilib: Repaint map when starting line draw

Starting line draw will remove any existing line, so repaint to get
rid of it

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltoslib: Report GPS height when baro height is not available
Keith Packard [Thu, 12 Jun 2014 06:04:11 +0000 (23:04 -0700)]
altoslib: Report GPS height when baro height is not available

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosui: Don't list tracker parameters when configuring altimeter
Keith Packard [Thu, 12 Jun 2014 04:37:23 +0000 (21:37 -0700)]
altosui: Don't list tracker parameters when configuring altimeter

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosuilib: Handle font and units changes in maps and stats table
Keith Packard [Thu, 12 Jun 2014 03:36:49 +0000 (20:36 -0700)]
altosuilib: Handle font and units changes in maps and stats table

Add AltosFontListener and AltosUnitsListener bits as needed

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agodoc: Update 1.4 release notes to include a few more changes
Keith Packard [Thu, 12 Jun 2014 02:57:24 +0000 (19:57 -0700)]
doc: Update 1.4 release notes to include a few more changes

pyro firing time.
flight erase on TeleMega/TeleMetrum v2

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosui: Add pyro firing time configuration
Keith Packard [Thu, 12 Jun 2014 02:51:37 +0000 (19:51 -0700)]
altosui: Add pyro firing time configuration

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosdroid: Altosdroid build doesn't work in parallel, so stop trying
Keith Packard [Thu, 12 Jun 2014 01:58:09 +0000 (18:58 -0700)]
altosdroid: Altosdroid build doesn't work in parallel, so stop trying

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos: Re-enable telemini v2.0 builds
Keith Packard [Thu, 12 Jun 2014 01:53:42 +0000 (18:53 -0700)]
altos: Re-enable telemini v2.0 builds

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos/telemini-v2.0: Disable beep frequency config on TeleMini v2.0
Keith Packard [Thu, 12 Jun 2014 01:53:10 +0000 (18:53 -0700)]
altos/telemini-v2.0: Disable beep frequency config on TeleMini v2.0

Not enough flash otherwise.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosuilib: Remove old widget-based map UI
Keith Packard [Thu, 12 Jun 2014 01:51:19 +0000 (18:51 -0700)]
altosuilib: Remove old widget-based map UI

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos: Disable TeleMini v2.0 build for now
Keith Packard [Thu, 12 Jun 2014 01:50:07 +0000 (18:50 -0700)]
altos: Disable TeleMini v2.0 build for now

5 years agoaltoslib: Use GPS seconds as an additional sort key for TeleGPS eeprom
Keith Packard [Thu, 12 Jun 2014 01:48:11 +0000 (18:48 -0700)]
altoslib: Use GPS seconds as an additional sort key for TeleGPS eeprom

Long idle periods with TeleGPS can easily overflow 16 bits of tick
count. Using the GPS seconds provides an additional sort which will
span the tick wrap-around.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosuilib: Rewrite map GUI bits
Keith Packard [Thu, 12 Jun 2014 01:46:47 +0000 (18:46 -0700)]
altosuilib: Rewrite map GUI bits

Use a single large Canvas and draw images on top by hand.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agotelegps: Add statistics tab to graph UI
Keith Packard [Tue, 10 Jun 2014 18:36:03 +0000 (11:36 -0700)]
telegps: Add statistics tab to graph UI

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosuilib: Move AltosFlightStatsTable to altosuilib
Keith Packard [Tue, 10 Jun 2014 18:35:30 +0000 (11:35 -0700)]
altosuilib: Move AltosFlightStatsTable to altosuilib

So that TeleGPS can share it

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosuilib: Skip voice announcements for invalid values
Keith Packard [Tue, 10 Jun 2014 18:34:21 +0000 (11:34 -0700)]
altosuilib: Skip voice announcements for invalid values

When height and speed values aren't available, don't say anything

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosui: Show "Missing" instead of huge numbers in descent/landed tabs
Keith Packard [Tue, 10 Jun 2014 18:32:57 +0000 (11:32 -0700)]
altosui: Show "Missing" instead of huge numbers in descent/landed tabs

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltoslib: Use GPS speed/height values when other sensors are missing
Keith Packard [Tue, 10 Jun 2014 18:31:53 +0000 (11:31 -0700)]
altoslib: Use GPS speed/height values when other sensors are missing

This lets TeleGPS report height/speed values without needing to
customize every AltosState user to pull out GPS values when the other
sensors aren't present.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosuilib: Split battery graph enable out from other adc enables
Keith Packard [Tue, 10 Jun 2014 18:30:36 +0000 (11:30 -0700)]
altosuilib: Split battery graph enable out from other adc enables

This lets TeleGPS just show the battery voltage values without also
adding enable lines for the other flight computer ADC values like
ignitor voltages.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltoslib: Check for time going backwards when replaying from file
Keith Packard [Tue, 10 Jun 2014 17:19:43 +0000 (10:19 -0700)]
altoslib: Check for time going backwards when replaying from file

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltoslib: Add new 'stateless' flight state for TeleGPS
Keith Packard [Tue, 10 Jun 2014 17:18:44 +0000 (10:18 -0700)]
altoslib: Add new 'stateless' flight state for TeleGPS

TeleGPS has no flight state, so add a new 'stateless' state for code
to handle this case differently than any of the existing states

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltoslib: TeleGPS no longer logs satellite information
Keith Packard [Tue, 10 Jun 2014 17:15:47 +0000 (10:15 -0700)]
altoslib: TeleGPS no longer logs satellite information

This doubles the amount of space available to log position information

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltoslib/altosui/telegps: Switch TeleGPS config to motion/interval
Keith Packard [Tue, 10 Jun 2014 17:14:07 +0000 (10:14 -0700)]
altoslib/altosui/telegps: Switch TeleGPS config to motion/interval

TeleGPS had configurable boost-detect values; those have been replaced
with a configurable stop-tracking motion limit and logging/telemetry
interval value.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltoslib/altosui/telegps: Change log size configuration
Keith Packard [Tue, 10 Jun 2014 17:11:03 +0000 (10:11 -0700)]
altoslib/altosui/telegps: Change log size configuration

* Use new log-space value provided by firmware when available.

* Divide that up into 1-8 flights and offer those sizes as options to
  the user instead of a fixed set of sizes.

* Show how many flights each selection will store

* This also checks values provided by the user

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos: Set TeleGPS default log size to half of avaiable memory
Keith Packard [Tue, 10 Jun 2014 16:55:04 +0000 (09:55 -0700)]
altos: Set TeleGPS default log size to half of avaiable memory

LPC11U14 doesn't have on-chip config space, so we're consuming a block
of external flash. As a result, only 1984kB are available for
logging. Set the default log size to half of that to store two flights.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos: Simplify tracker logic, removing boost detect
Keith Packard [Tue, 10 Jun 2014 16:52:15 +0000 (09:52 -0700)]
altos: Simplify tracker logic, removing boost detect

This removes the ao_flight_state value from the tracker code and makes
it simply log position information when the device has moved within
the last 10 log intervals. This also changes the configuration
parameters to define what 'motionless' means, and what interval to
configure the GPS receiver for, log data and send telemetry.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoRevert adding state to GPS location packets
Keith Packard [Tue, 10 Jun 2014 16:47:04 +0000 (09:47 -0700)]
Revert adding state to GPS location packets

TeleGPS no longer has ao_flight_state

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoRevert "ao-tools: Parse TeleGPS state value from gps location packet"
Keith Packard [Tue, 10 Jun 2014 16:44:57 +0000 (09:44 -0700)]
Revert "ao-tools: Parse TeleGPS state value from gps location packet"

This reverts commit 428d09294ba0395fedd71346ad00fd90a4cdde97.

5 years agoaltos: Make extra pyro channel firing time configurable
Keith Packard [Tue, 10 Jun 2014 16:42:43 +0000 (09:42 -0700)]
altos: Make extra pyro channel firing time configurable

This adds a 'I' parameter to set the extra pyro channel firing time
(in ticks). This has no effect on the main/drogue channels.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos: Report total available log space in version command
Keith Packard [Tue, 10 Jun 2014 16:37:43 +0000 (09:37 -0700)]
altos: Report total available log space in version command

This provides a more accurate means of determining available log space
than guessing whether some portion of the flash chip holds
configuration data.

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