fw/altos
7 years agoupdate changelogs for Debian build debian/0.9.6.0
Bdale Garbee [Sat, 20 Aug 2011 04:47:50 +0000 (22:47 -0600)]
update changelogs for Debian build

7 years agoaltosui: Respect storage limits in flight log max config 0.9.6.0
Keith Packard [Sun, 14 Aug 2011 07:00:54 +0000 (00:00 -0700)]
altosui: Respect storage limits in flight log max config

Compute the maximum flight log using the data returned from the 'f'
command (total storage and erase block size). Limit menu to choices
which fall within this limit, complain if the user asks for too big a value.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: don't set channel when using radio setting
Keith Packard [Sun, 14 Aug 2011 07:00:07 +0000 (00:00 -0700)]
altosui: don't set channel when using radio setting

altos now sets the radio back to channel 0 when the radio setting is
changed.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: use raw height while waiting for landing
Keith Packard [Sun, 14 Aug 2011 06:58:03 +0000 (23:58 -0700)]
altos: use raw height while waiting for landing

This avoids any noise introduced by the kalman filter, making landing
detection much more reliable. This patch also changes the interval to
10s so that the height bounds can be increased to 4m.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Reset radio channel to zero when using radio setting
Keith Packard [Sun, 14 Aug 2011 06:56:55 +0000 (23:56 -0700)]
altos: Reset radio channel to zero when using radio setting

Otherwise, it's hard to set the frequency over the radio link.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Correct AO_CONFIG_MINOR from 6 to 7
Keith Packard [Sun, 14 Aug 2011 06:56:06 +0000 (23:56 -0700)]
altos: Correct AO_CONFIG_MINOR from 6 to 7

Forgot to bump this when adding radio setting.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: AltosSerial.flush_input shouldn't discard Interrupted exceptions
Keith Packard [Sun, 14 Aug 2011 04:10:15 +0000 (21:10 -0700)]
altos: AltosSerial.flush_input shouldn't discard Interrupted exceptions

The eeprom download code wants to interrupt serial communication so
that it can stop downloading stuff in the middle of a run. Make
flush_input pass the exception along instead of discarding it.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Eliminate inter-chunk flush_input calls
Keith Packard [Sun, 14 Aug 2011 04:09:19 +0000 (21:09 -0700)]
altosui: Eliminate inter-chunk flush_input calls

Once the serial line is nicely synchronized, we don't need to flush
input between chunks. This speeds up eeprom downloading quite a bit.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Devices with log-format can also delete flights
Keith Packard [Sun, 14 Aug 2011 04:05:46 +0000 (21:05 -0700)]
altosui: Devices with log-format can also delete flights

Any device with either flight-log-max or log-format can delete flights.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Add support for TeleScience eeprom download
Keith Packard [Sun, 14 Aug 2011 01:39:35 +0000 (18:39 -0700)]
altosui: Add support for TeleScience eeprom download

Using the existing eeprom methods, fetch and save TeleScience eeprom
data, storing to a filename generated from the serial/flight from the
TM connected to the TS board.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Clean up eeprom parsing a bit
Keith Packard [Sun, 14 Aug 2011 01:36:18 +0000 (18:36 -0700)]
altosui: Clean up eeprom parsing a bit

Export basic parsing and checksum functions for shared use.
Create 'erased' function to check a chunk of eeprom data for data.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: wait 10s for companion to boot
Keith Packard [Sun, 14 Aug 2011 01:31:08 +0000 (18:31 -0700)]
altos: wait 10s for companion to boot

In case the companion is delayed while booting, retry the setup 10
times with a 1s delay between tries.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Send serial/flight to companion board
Keith Packard [Sun, 14 Aug 2011 01:30:00 +0000 (18:30 -0700)]
altos: Send serial/flight to companion board

Lets the companion log them for later matching with TeleMetrum log

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Send SPI message at flight state changes
Keith Packard [Sat, 13 Aug 2011 04:41:25 +0000 (21:41 -0700)]
altos: Send SPI message at flight state changes

Get the companion board starting its data logging as soon as possible
after boost starts.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Add companion support to the flight UI and CSV conversion
Keith Packard [Fri, 12 Aug 2011 21:58:34 +0000 (14:58 -0700)]
altosui: Add companion support to the flight UI and CSV conversion

Shows the companion data in a new tab. Also put companion data into
CSV file.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Check for companion init packet validity was busted
Keith Packard [Fri, 12 Aug 2011 13:29:13 +0000 (06:29 -0700)]
altos: Check for companion init packet validity was busted

Was using board_id == ~board_id instead of board_id ==
~board_id_inverse.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: add the 'L' command to show the status of a linked companion board
Keith Packard [Fri, 12 Aug 2011 12:42:05 +0000 (05:42 -0700)]
altos: add the 'L' command to show the status of a linked companion board

This prints out whether there is a board connected, along with the
various values fetched from it.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Make sure companion task exits cleanly when done
Keith Packard [Fri, 12 Aug 2011 12:41:15 +0000 (05:41 -0700)]
altos: Make sure companion task exits cleanly when done

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Put SPI in slower mode when talking to companion board
Keith Packard [Fri, 12 Aug 2011 12:38:16 +0000 (05:38 -0700)]
altos: Put SPI in slower mode when talking to companion board

The AVR CPU on the other side just can't go very fast. This reduces
the SPI clock by a factor of 16, just under 200kHz. As the companion
commands are reasonably short, this shouldn't have a huge effect on
overall SPI utilization.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Add SPI-based companion board support
Keith Packard [Sat, 9 Jul 2011 23:59:16 +0000 (16:59 -0700)]
altos: Add SPI-based companion board support

This sends current flight state information and retrieves companion
data to include in telemetry.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Don't try to use non-basestations for remote eeprom download
Keith Packard [Sun, 14 Aug 2011 01:38:38 +0000 (18:38 -0700)]
altos: Don't try to use non-basestations for remote eeprom download

Companion boards may also have eeprom data to fetch; don't try to use
them as a radio.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos/altosui: Report log format in the version command
Keith Packard [Sat, 13 Aug 2011 04:43:56 +0000 (21:43 -0700)]
altos/altosui: Report log format in the version command

This will make it easier to figure out what the contents of the flash
should look like from altosui; the current 'guessing' mechanism will
not scale to many more formats.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: re-write a bit of GPS parsing code to reduce size
Keith Packard [Sun, 14 Aug 2011 01:28:38 +0000 (18:28 -0700)]
altos: re-write a bit of GPS parsing code to reduce size

Use a local variable while computing hdop.
Place the next incoming character in data instead of pdata.

Saved a surprising amount of memory.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: shrink text space from ao_config.c
Keith Packard [Fri, 12 Aug 2011 12:26:09 +0000 (05:26 -0700)]
altos: shrink text space from ao_config.c

Eliminate redundant config initializers by setting minor to zero and
letting upgrade code handle all of the new values.

Stop computing (fake) frequency when showing radio channel
Stop computing feet when showing main deploy height

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agolibaltos: Mis-allocated device list in libaltos
Keith Packard [Sun, 14 Aug 2011 01:33:07 +0000 (18:33 -0700)]
libaltos: Mis-allocated device list in libaltos

Would overrun mis-allocated array, causing chaos.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoao-tools: ao-list was crashing with more than 3 devices connected
Keith Packard [Sat, 13 Aug 2011 22:00:14 +0000 (15:00 -0700)]
ao-tools: ao-list was crashing with more than 3 devices connected

the list of devices was getting realloced for each new device, but
that realloc was too small.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: remove monitor disable stubs from altimeter code
Keith Packard [Thu, 11 Aug 2011 23:11:34 +0000 (16:11 -0700)]
altos: remove monitor disable stubs from altimeter code

Monitor mode in the ground-station boards must be disabled when the
radio is going to be used for another purpose, or the radio parameters
changed. That places monitor-mode disable calls in other parts of the
system which are shared with the altimeter code.

Elide the ao_set_monitor calls for builds which do not include any
monitoring code.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Apply igniter boot pulse-width reduction to telemini
Keith Packard [Thu, 11 Aug 2011 22:59:47 +0000 (15:59 -0700)]
altos: Apply igniter boot pulse-width reduction to telemini

TeleMini needs the same fix as TeleMetrum to reduce startup igniter
pulses.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Pull igniter pins low as soon as possible at boot time
Keith Packard [Thu, 11 Aug 2011 22:57:58 +0000 (15:57 -0700)]
altos: Pull igniter pins low as soon as possible at boot time

This reduces the pulse width on the igniter circuit caused by the
default cc1111 pin configuration at powerup time.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agodoc: Add 1.0 release notes.
Keith Packard [Thu, 11 Aug 2011 05:43:26 +0000 (22:43 -0700)]
doc: Add 1.0 release notes.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agodoc: Add release notes, include them in altusmetrum doc. Shuffle altusmetrum
Keith Packard [Thu, 11 Aug 2011 05:14:32 +0000 (22:14 -0700)]
doc: Add release notes, include them in altusmetrum doc. Shuffle altusmetrum

This adds release notes and includes them in the main altusmetrum doc
as well as making stand-alone html available for inclusion in the website.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agodoc: Add telemetry docs to debian/linux/mac/windows packages
Keith Packard [Thu, 11 Aug 2011 01:32:05 +0000 (18:32 -0700)]
doc: Add telemetry docs to debian/linux/mac/windows packages

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agodoc: Describe 'stats' tab in Graph UI, 'Graph Flight' button.
Keith Packard [Thu, 11 Aug 2011 01:22:16 +0000 (18:22 -0700)]
doc: Describe 'stats' tab in Graph UI, 'Graph Flight' button.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agodoc: Document Ignite Mode and Pad Orientation configuration options
Keith Packard [Thu, 11 Aug 2011 01:14:10 +0000 (18:14 -0700)]
doc: Document Ignite Mode and Pad Orientation configuration options

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agodoc: Update altusmetrum.xsl for v1.0 software and TeleMini
Keith Packard [Thu, 11 Aug 2011 00:43:58 +0000 (17:43 -0700)]
doc: Update altusmetrum.xsl for v1.0 software and TeleMini

Add TeleMini references and sections as appropriate, update AltosUI
docs to describe new bits.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoBump version to 0.9.6.0
Keith Packard [Wed, 10 Aug 2011 23:01:25 +0000 (16:01 -0700)]
Bump version to 0.9.6.0

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Move launch-sites.txt file to altusmetrum.org
Keith Packard [Wed, 10 Aug 2011 22:00:44 +0000 (15:00 -0700)]
altosui: Move launch-sites.txt file to altusmetrum.org

The official URL is now:

http://www.altusmetrum.org/AltOS/launch-sites.txt

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Plot reasonable data from Tm files
Keith Packard [Wed, 10 Aug 2011 21:35:21 +0000 (14:35 -0700)]
altosui: Plot reasonable data from Tm files

Don't plot acceleration based on baro data.
Display baro speed if accel speed isn't available.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Prune telemetry file graphs to just the flight
Keith Packard [Wed, 10 Aug 2011 21:34:39 +0000 (14:34 -0700)]
altosui: Prune telemetry file graphs to just the flight

Remove data earlier than 1 second before boost and data after landing.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Add a 'Graph Flight' button to the 'landed' tab
Keith Packard [Wed, 10 Aug 2011 21:08:21 +0000 (14:08 -0700)]
altosui: Add a 'Graph Flight' button to the 'landed'  tab

This lets you see the results of a flight as soon as the rocket lands
using the telemetry data.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoAltosui: Add flight statistics tab to graph window
Keith Packard [Wed, 10 Aug 2011 20:35:26 +0000 (13:35 -0700)]
Altosui: Add flight statistics tab to graph window

Provide basic flight stats alongside the flight graph.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Ship TeleMini v1.0 firmware with fat blobs
Keith Packard [Wed, 10 Aug 2011 01:28:19 +0000 (18:28 -0700)]
altosui: Ship TeleMini v1.0 firmware with fat blobs

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Ensure serial code tracks reply nesting correctly
Keith Packard [Wed, 10 Aug 2011 01:27:19 +0000 (18:27 -0700)]
altosui: Ensure serial code tracks reply nesting correctly

Trap any exceptional return conditions from 'get_reply' to make sure
in_reply gets decremented.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Don't export product defs from libaltos
Keith Packard [Wed, 10 Aug 2011 01:26:07 +0000 (18:26 -0700)]
altosui: Don't export product defs from libaltos

As we add new products, that would change the ABI generated for java,
invaliding old library versions sitting around for windows and mac.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Switch telemini from v0.1 to v1.0
Keith Packard [Tue, 9 Aug 2011 21:26:43 +0000 (14:26 -0700)]
altos: Switch telemini from v0.1 to v1.0

TeleMini production boards are firmware compatible with the v0.1
design, so instead of creating another product, just rename the
existing one.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Add close button to 'fire' dialog
Keith Packard [Tue, 9 Aug 2011 03:41:34 +0000 (20:41 -0700)]
altosui: Add close button to 'fire' dialog

Easier to hit than the tiny close box in the frame.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Make set of telemetries to use while scanning configurable
Keith Packard [Tue, 9 Aug 2011 03:38:44 +0000 (20:38 -0700)]
altosui: Make set of telemetries to use while scanning configurable

with a preference to remember across application runs.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Reading serial from swing thread only bad if remote
Keith Packard [Tue, 9 Aug 2011 03:38:14 +0000 (20:38 -0700)]
altosui: Reading serial from swing thread only bad if remote

Make the warning on this condition based on whether the link is remote.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Remove unused AltosConfigData from AltosTelemetryReader
Keith Packard [Tue, 9 Aug 2011 01:53:59 +0000 (18:53 -0700)]
altosui: Remove unused AltosConfigData from AltosTelemetryReader

Now that AltosSerial manages this data, it's not needed here.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Flush radio setting to serial device
Keith Packard [Tue, 9 Aug 2011 01:53:27 +0000 (18:53 -0700)]
altosui: Flush radio setting to serial device

When changing frequencies, make sure the device hears about it.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Remove debugging printfs from AltosSerial
Keith Packard [Tue, 9 Aug 2011 01:53:03 +0000 (18:53 -0700)]
altosui: Remove debugging printfs from AltosSerial

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Show AltosFrequency in scan results
Keith Packard [Tue, 9 Aug 2011 01:52:11 +0000 (18:52 -0700)]
altosui: Show AltosFrequency in scan results

Include frequency and description instead of just frequency.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Save frequency after setting it in AltosFlightUI
Keith Packard [Tue, 9 Aug 2011 01:51:16 +0000 (18:51 -0700)]
altosui: Save frequency after setting it in AltosFlightUI

Otherwise we'll just save the old frequency.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Have single radio_to_frequency function
Keith Packard [Tue, 9 Aug 2011 01:49:45 +0000 (18:49 -0700)]
altosui: Have single radio_to_frequency function

This takes all three radio params (setting, cal, channel) and computes
the current frequency.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: A few misc cleanups.
Keith Packard [Tue, 9 Aug 2011 01:47:36 +0000 (18:47 -0700)]
altosui: A few misc cleanups.

Initialize radio_setting as it won't be set for older devices ever.
Remove unused set_radio_frequency function from AltosConfigUI.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Must set radio calibration before radio setting
Keith Packard [Tue, 9 Aug 2011 01:45:36 +0000 (18:45 -0700)]
altosui: Must set radio calibration before radio setting

Setting the radio calibration erases any previous radio setting as
the radio calibration change invalidates any previously computed radio
setting for a specific frequency.

Hence, the radio setting must be configured *after* the radio
calibration value lest it be ignored.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: minor type in comment about accel correction
Keith Packard [Tue, 9 Aug 2011 00:46:04 +0000 (17:46 -0700)]
altos: minor type in comment about accel correction

Kurt Roeckx found a typo in the equations describing how the
accelerometer is corrected by the 5V reference measurement.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Pull out BlueTooth support
Keith Packard [Mon, 8 Aug 2011 19:31:48 +0000 (12:31 -0700)]
altosui: Pull out BlueTooth support

This leaves the code in place, but commented out so that it isn't used
until we've got a bluetooth device ready for use.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: altimeter is not spelled altimter
Keith Packard [Mon, 8 Aug 2011 19:25:30 +0000 (12:25 -0700)]
altosui: altimeter is not spelled altimter

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoSet version to 0.9.5.0
Keith Packard [Mon, 8 Aug 2011 09:05:28 +0000 (02:05 -0700)]
Set version to 0.9.5.0

Make the frequency-based systems distinct

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Convert from channels to frequencies
Keith Packard [Mon, 8 Aug 2011 08:47:29 +0000 (01:47 -0700)]
altosui: Convert from channels to frequencies

Major areas:

 * Preferences are stored as frequencies instead
   of channels

 * Serial configuration is done using frequencies

 * UI is presented with frequency lists

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Add dialogs to configure 'common' frequencies
Keith Packard [Sun, 7 Aug 2011 21:52:29 +0000 (14:52 -0700)]
altosui: Add dialogs to configure 'common' frequencies

These are stored in preferences, but not yet hooked up to the TM/TD
configure dialogs

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Add ability to set arbitrary radio frequency
Keith Packard [Thu, 4 Aug 2011 06:07:53 +0000 (23:07 -0700)]
altos: Add ability to set arbitrary radio frequency

This adds a separate config parameter to control the raw radio
frequency setting, allowing the user to select an arbitrary frequency
instead of being forced to choose one of the 10 pre-defined 'channels'.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Remove pad_orientation functions from non-accel devices
Keith Packard [Mon, 8 Aug 2011 19:08:45 +0000 (12:08 -0700)]
altos: Remove pad_orientation functions from non-accel devices

Anything without an accelerometer can't detect pad orientation.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Change button to 'Configure Altimeter'
Keith Packard [Mon, 8 Aug 2011 19:04:00 +0000 (12:04 -0700)]
altosui: Change button to 'Configure Altimeter'

Now that we've got more than one model.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Correct flight log max on Tm to 5k
Keith Packard [Mon, 8 Aug 2011 18:58:23 +0000 (11:58 -0700)]
altos: Correct flight log max on Tm to 5k

Was using the wrong #define name to check for Tm/Tn devices that use
internal flash for data storage.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoupdate changelogs for Debian build debian/0.9.4.5
Bdale Garbee [Mon, 8 Aug 2011 15:38:53 +0000 (09:38 -0600)]
update changelogs for Debian build

7 years agorewind changelog for re-build of 0.9.4.5
Bdale Garbee [Mon, 8 Aug 2011 15:34:59 +0000 (09:34 -0600)]
rewind changelog for re-build of 0.9.4.5

7 years agoclean up all existing lintian warnings
Bdale Garbee [Mon, 8 Aug 2011 15:31:18 +0000 (09:31 -0600)]
clean up all existing lintian warnings

7 years agobuild depend on bluetooth dev package
Bdale Garbee [Mon, 8 Aug 2011 13:54:14 +0000 (07:54 -0600)]
build depend on bluetooth dev package

7 years agostop doing automatic tag push during builds
Bdale Garbee [Mon, 8 Aug 2011 13:38:48 +0000 (07:38 -0600)]
stop doing automatic tag push during builds

7 years agoupdate changelogs for Debian build
Bdale Garbee [Mon, 8 Aug 2011 13:37:23 +0000 (07:37 -0600)]
update changelogs for Debian build

7 years agoupdate changelogs for Debian build
Bdale Garbee [Mon, 8 Aug 2011 13:35:47 +0000 (07:35 -0600)]
update changelogs for Debian build

7 years agosimplify version in last changelog entry so git-dch is less confused 0.9.4.5
Bdale Garbee [Mon, 8 Aug 2011 13:33:09 +0000 (07:33 -0600)]
simplify version in last changelog entry so git-dch is less confused

7 years agoupdate version for a Bdale build for use turning on TeleMini v1.0
Bdale Garbee [Mon, 8 Aug 2011 13:30:42 +0000 (07:30 -0600)]
update version for a Bdale build for use turning on TeleMini v1.0

7 years agoaltos/altosui: Add pad orientation configure option
Keith Packard [Wed, 3 Aug 2011 02:07:56 +0000 (19:07 -0700)]
altos/altosui: Add pad orientation configure option

Allow TeleMetrum to be operated with the antenna pointing downwards on
the pad. This provides some additional flexibility when designing an
ebay.

The accelerometer calibration levels are flipped around to match, so
no re-calibration should be required.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Add idle monitor dialog
Keith Packard [Wed, 3 Aug 2011 00:41:53 +0000 (17:41 -0700)]
altosui: Add idle monitor dialog

This monitors a telemetrum device in idle mode, either directly or through a
teledongle, allowing the GPS status and batteries to be monitored
without resorting to placing the device in pad mode.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Simple timeouts don't work with query data
Keith Packard [Wed, 3 Aug 2011 01:01:52 +0000 (18:01 -0700)]
altosui: Simple timeouts don't work with query data

To get the query to come back, it's best to abort and retry the
command, other wise the command may have been lost to the previous
connection.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Parse accel cal from 'c s' command
Keith Packard [Wed, 3 Aug 2011 00:41:02 +0000 (17:41 -0700)]
altosui: Parse accel cal from 'c s' command

These fields weren't used before, so the code to parse them hadn't
been written.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Standard text field in flight UI needs more width (now 20)
Keith Packard [Wed, 3 Aug 2011 00:40:02 +0000 (17:40 -0700)]
altosui: Standard text field in flight UI needs more width (now 20)

Latitude and longitude take more than 16 characters.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Require sequencing through 'main' state before landing
Keith Packard [Tue, 2 Aug 2011 09:09:23 +0000 (02:09 -0700)]
altos: Require sequencing through 'main' state before landing

The old version of the code would permit the flight to go straight
from 'drogue' to 'landed' without passing through 'main' at all. This
meant that a false landing detection would leave the main charge
unfired, potentially causing the airframe to land on drogue alone.

Requiring that the flight sequence pass through main ensures that the
main charge will get fired at the right time, although if the airframe
lands higher than that altitude, it will not go to 'landed' mode ever.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Reduce height averaging filter time constant
Keith Packard [Tue, 2 Aug 2011 08:49:35 +0000 (01:49 -0700)]
altos: Reduce height averaging filter time constant

Using the longer time constant could lead to false landing detection
just after apogee, which is definitely not a good idea.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Average height values for landing detection
Keith Packard [Tue, 2 Aug 2011 05:33:38 +0000 (22:33 -0700)]
altos: Average height values for landing detection

Instead of using the direct output of the kalman filter and hoping
that is quiet enough to detect landing, filter that with a long
exponential decay filter and then check to make sure that doesn't
change more than 2m in 5 seconds as a trigger for landing detection.

Tested with existing telemetrum flight logs and it correctly detects
landing in all cases.

Signed-off-by: Keith Packard <keithp@keithp.com>
8 years agoaltos: Add ability to read new TELEM files to ao_flight_test
Keith Packard [Mon, 18 Jul 2011 01:49:55 +0000 (18:49 -0700)]
altos: Add ability to read new TELEM files to ao_flight_test

Not that telem files are currently very useful as the kalman filter
gets completly confused by the variable steps caused by missing data, but...

Signed-off-by: Keith Packard <keithp@keithp.com>
8 years agoaltosui: Change continutity colors to yellow/magenta
Keith Packard [Sun, 17 Jul 2011 23:44:10 +0000 (16:44 -0700)]
altosui: Change continutity colors to yellow/magenta

Makes them stand apart from the accel/speed lines

Signed-off-by: Keith Packard <keithp@keithp.com>
8 years agoAdd HARA Bragg Farms site
Keith Packard [Sun, 17 Jul 2011 23:43:41 +0000 (16:43 -0700)]
Add HARA Bragg Farms site

Signed-off-by: Keith Packard <keithp@keithp.com>
8 years agoFix NCR Pawnee location
Keith Packard [Sun, 17 Jul 2011 22:53:13 +0000 (15:53 -0700)]
Fix NCR Pawnee location

Signed-off-by: Keith Packard <keithp@keithp.com>
8 years agoaltosui: Mark preload site location with red circles (like launch)
Keith Packard [Sun, 17 Jul 2011 22:45:07 +0000 (15:45 -0700)]
altosui: Mark preload site location with red circles (like launch)

Just to show where on the map the official launch location is.

Signed-off-by: Keith Packard <keithp@keithp.com>
8 years agoaltosui: Add a bunch more site locations
Keith Packard [Sun, 17 Jul 2011 22:09:55 +0000 (15:09 -0700)]
altosui: Add a bunch more site locations

BALLS, Rio Rancho, METRA, QRS Cedar Grove and Hudson Ranch

Signed-off-by: Keith Packard <keithp@keithp.com>
8 years agoaltosui: Add launch-sites.txt
Keith Packard [Sun, 17 Jul 2011 18:29:13 +0000 (11:29 -0700)]
altosui: Add launch-sites.txt

Contains a few of our favorites.

Signed-off-by: Keith Packard <keithp@keithp.com>
8 years agoaltosui: Download list of site locations for map preloading
Keith Packard [Sun, 17 Jul 2011 18:25:47 +0000 (11:25 -0700)]
altosui: Download list of site locations for map preloading

The current URL for this is:
http://gag.com/~keithp/launch-sites.txt

The format is:
<site-name>:<lat>:<lon>

lat and lon are both in signed decimal degrees.

Signed-off-by: Keith Packard <keithp@keithp.com>
8 years agoMerge branch 'preload-maps'
Keith Packard [Sun, 17 Jul 2011 15:17:44 +0000 (08:17 -0700)]
Merge branch 'preload-maps'

8 years agoaltos, altosui: Add igniter mode (dual, apogee, main) split-telemetry
Keith Packard [Mon, 23 May 2011 18:32:29 +0000 (11:32 -0700)]
altos, altosui: Add igniter mode (dual, apogee, main)

This provides for redundant charges for either apogee or main.

Signed-off-by: Keith Packard <keithp@keithp.com>
8 years agoSet version to 0.9.4.4
Keith Packard [Sun, 17 Jul 2011 15:13:15 +0000 (08:13 -0700)]
Set version to 0.9.4.4

Signed-off-by: Keith Packard <keithp@keithp.com>
8 years agoaltosui: Make sure degree and minute values are visible (map preload)
Anthony Towns [Sun, 17 Jul 2011 06:08:49 +0000 (23:08 -0700)]
altosui: Make sure degree and minute values are visible (map preload)

Set min size to preferred size so that the value remains visible
instead of snapping to 0 pixels wide.

Signed-off-by: Keith Packard <keithp@keithp.com>
8 years agoaltosui: Remove a bunch of sitemap debugging printfs
Keith Packard [Sun, 17 Jul 2011 05:43:34 +0000 (22:43 -0700)]
altosui: Remove a bunch of sitemap debugging printfs

Seems to work, let's get less chatty

Signed-off-by: Keith Packard <keithp@keithp.com>
8 years agoaltosui: Display full map preload area in view.
Keith Packard [Sun, 17 Jul 2011 05:34:44 +0000 (22:34 -0700)]
altosui: Display full map preload area in view.

This involved fixing the map view to support arbitrary sizes, and then
exposing a synchronous tile loading API so that the progress bar could
be used to show tile loading progress.

Signed-off-by: Keith Packard <keithp@keithp.com>
8 years agoMerge branch 'scan-telemetry' into preload-maps
Keith Packard [Sun, 17 Jul 2011 04:06:37 +0000 (21:06 -0700)]
Merge branch 'scan-telemetry' into preload-maps

8 years agoaltosui: Flush telemetry lines before starting to watch for scan results
Keith Packard [Sun, 17 Jul 2011 04:05:06 +0000 (21:05 -0700)]
altosui: Flush telemetry lines before starting to watch for scan results

This prevents pending telemetry lines from being incorrectly
attributed to the wrong channel/telemetry.

Signed-off-by: Keith Packard <keithp@keithp.com>
8 years agoaltosui: Try to avoid resize weirdness with map preloading
Keith Packard [Sun, 17 Jul 2011 00:37:20 +0000 (17:37 -0700)]
altosui: Try to avoid resize weirdness with map preloading

grid bag + box does some strange stuff, this appears to avoid the
worst of the interactions.

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