fw/altos
5 years agoBump version to 1.4.1.1
Keith Packard [Tue, 24 Jun 2014 22:58:35 +0000 (15:58 -0700)]
Bump version to 1.4.1.1

5 years agoaltos/ao_flight_test: Get the Tmega version compiling again
Keith Packard [Tue, 24 Jun 2014 22:57:13 +0000 (15:57 -0700)]
altos/ao_flight_test: Get the Tmega version compiling again

A few changes broke this recently.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos: Add optional debugging to print out pyro firing status
Keith Packard [Tue, 24 Jun 2014 22:56:11 +0000 (15:56 -0700)]
altos: Add optional debugging to print out pyro firing status

This dumps pyro check failures for ao_flight_test so you can see why
pyro charges aren't firing.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoao-bringup: Use the C tools to test EasyMini
Keith Packard [Mon, 23 Jun 2014 04:13:54 +0000 (21:13 -0700)]
ao-bringup: Use the C tools to test EasyMini

I think my USB driver in the kernel is broken; the nickle versions of
these  tools did very strange things and never worked.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoao-tools: Add ao-test-baro, ao-test-igniter and ao-test-flash
Keith Packard [Mon, 23 Jun 2014 04:12:37 +0000 (21:12 -0700)]
ao-tools: Add ao-test-baro, ao-test-igniter and ao-test-flash

C versions of the test programs used to validate hardware prior to ship

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosui/telegps: Expose configurable APRS SSID
Keith Packard [Mon, 23 Jun 2014 04:06:24 +0000 (21:06 -0700)]
altosui/telegps: Expose configurable APRS SSID

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos: Make APRS SSID configurable
Keith Packard [Mon, 23 Jun 2014 04:05:05 +0000 (21:05 -0700)]
altos: Make APRS SSID configurable

This uses the low-digit from the serial number by default, but lets
the user change it if desired.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosui: Add Ignitor tab to Monitor Idle mode
Keith Packard [Sun, 22 Jun 2014 01:27:42 +0000 (18:27 -0700)]
altosui: Add Ignitor tab to Monitor Idle mode

Oops; missed adding this when I included it in the Monitor Flight window.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos/aprs: Encode last serial number in SSID. Transmit serial in comment
Keith Packard [Fri, 20 Jun 2014 07:41:17 +0000 (00:41 -0700)]
altos/aprs: Encode last serial number in SSID. Transmit serial in comment

This makes it a lot easier to tell which device is sending
information, and to receive data from multiple devices on the same
receiver.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosuilib: Wrap radio frequency menu in JMenuBar when used in config
Keith Packard [Fri, 20 Jun 2014 07:40:10 +0000 (00:40 -0700)]
altosuilib: Wrap radio frequency menu in JMenuBar when used in config

The device config dialogs place the radio frequency menu inside a
dialog box; it needs to be inside a MenuBar to work properly, so
create one to hold it.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoRename icon files to fit XDG specifications. Add file icons. Add mime types
Keith Packard [Thu, 19 Jun 2014 21:33:27 +0000 (14:33 -0700)]
Rename icon files to fit XDG specifications. Add file icons. Add mime types

Our SVG icons now follow XDG standards by including a vendor
prefix. The new file type icons include application-vnd.altusmetrum as
a prefix so that they match the mime types declared.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agolinux: .desktop files must begin with organization name
Keith Packard [Thu, 19 Jun 2014 17:25:07 +0000 (10:25 -0700)]
linux: .desktop files must begin with organization name

The spec requires that .desktop files start with the organization
name, so I've renamed all of them to altusmetrum-<application>.desktop

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agowindows: Missed adding 'refresh-sh.nsh'
Keith Packard [Thu, 19 Jun 2014 03:35:12 +0000 (20:35 -0700)]
windows: Missed adding 'refresh-sh.nsh'

This script forces windows explorer to reload icons.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agomacosx: Respond to apple messages in all apps
Keith Packard [Wed, 18 Jun 2014 23:18:05 +0000 (16:18 -0700)]
macosx: Respond to apple messages in all apps

This connects the callbacks in AltosUIFrame to actually do something
useful with them.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosuilib: Hook up apple messages to callbacks
Keith Packard [Wed, 18 Jun 2014 23:14:44 +0000 (16:14 -0700)]
altosuilib: Hook up apple messages to callbacks

This supports open, quit and preferences. I'm leaving 'about' to the
existing stuff until I decide it's worth the effort to create a fancy
about dialog.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosui: Ship TeleMetrum v2.0 firmware with AltosUI
Keith Packard [Wed, 18 Jun 2014 21:16:36 +0000 (14:16 -0700)]
altosui: Ship TeleMetrum v2.0 firmware with AltosUI

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agomacosx: Define icons for our file types on OS X
Keith Packard [Wed, 18 Jun 2014 21:15:27 +0000 (14:15 -0700)]
macosx: Define icons for our file types on OS X

Adds definitions to the Info.plist files shipped to specify which
icons to show for .telem, .eeprom and .mpd files. Note that the
applications don't respond to open apple events, so double clicking on
a file only starts the application.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agowindows installer: Create file associations for Windows.
Keith Packard [Wed, 18 Jun 2014 09:16:51 +0000 (02:16 -0700)]
windows installer: Create file associations for Windows.

This makes icons appear for the files in the file manager, and lets
you double-click on the files to open the appropriate application.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoicon: Construct .exe files to hold windows icons for file associations
Keith Packard [Wed, 18 Jun 2014 09:15:04 +0000 (02:15 -0700)]
icon: Construct .exe files to hold windows icons for file associations

It appears that creating an executable with an icon resource is the
only way to display icons for files. Fortunately, that's not all that
hard.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoFix java version detection and downloading
Keith Packard [Wed, 18 Jun 2014 03:46:33 +0000 (20:46 -0700)]
Fix java version detection and downloading

Move java stuff to a common include file, java.nsh

Let any version no older than 1.6 serve by using ${VersionCompare}

Use version 6 downloads as those don't require a click-through agreement.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoSign our .inf file with the comodo key. Update signing-driver
Keith Packard [Tue, 17 Jun 2014 07:08:03 +0000 (00:08 -0700)]
Sign our .inf file with the comodo key. Update signing-driver

I've tested this on Windows 7 and it appears to work. No idea if it
works on Windows 8 yet.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos/micropeak: Add load script template
Keith Packard [Tue, 17 Jun 2014 06:03:49 +0000 (23:03 -0700)]
altos/micropeak: Add load script template

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agojava: Bump java library versions for next release
Keith Packard [Tue, 17 Jun 2014 05:49:34 +0000 (22:49 -0700)]
java: Bump java library versions for next release

Prepare for future release by bumping java versions now

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosui: Fix ground station configure frequency list
Keith Packard [Tue, 17 Jun 2014 05:48:25 +0000 (22:48 -0700)]
altosui: Fix ground station configure frequency list

Fix the API to match the switch to a menu, wrap in a menu bar to make
it work.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosuilib: Move menu bars into the Mac OS X top bar
Keith Packard [Tue, 17 Jun 2014 04:58:13 +0000 (21:58 -0700)]
altosuilib: Move menu bars into the Mac OS X top bar

Setting these properties causes the top menu bar to get placed into
the Mac OS X window system menu bar

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltosui/telegps: Use menus for frequency list and telemetry formats
Keith Packard [Tue, 17 Jun 2014 04:57:35 +0000 (21:57 -0700)]
altosui/telegps: Use menus for frequency list and telemetry formats

This will let us move them into the Mac OS X menu bar, as well as
making them look a bit nicer.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agoaltos/micropeak: Create a script to load firmware.
Keith Packard [Mon, 16 Jun 2014 22:59:09 +0000 (15:59 -0700)]
altos/micropeak: Create a script to load firmware.

The micropeak-load script flashes micropeak with firmware from
whatever directory it is sitting in. A 'publish' target in the source
directory copies the script and hex to ~/altusmetrumllc/Binaries

Signed-off-by: Keith Packard <keithp@keithp.com>
5 years agodoc: Add instructions for flash recovery technique
Keith Packard [Mon, 16 Jun 2014 18:02:49 +0000 (11:02 -0700)]
doc: Add instructions for flash recovery technique

The flash recovery section explained which pins to connect, but lacked
explicit instructions on how to make it work.

5 years agonotes updated for TeleGPS and 1.4 release learnings
Bdale Garbee [Mon, 16 Jun 2014 00:41:25 +0000 (18:41 -0600)]
notes updated for TeleGPS and 1.4 release learnings

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>