fw/altos
9 years agoaltosdroid: Add missing preferences backend file
Keith Packard [Sun, 31 Aug 2014 05:27:54 +0000 (00:27 -0500)]
altosdroid: Add missing preferences backend file

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltoslib: create logfiles preference object. check link in existing_data
Keith Packard [Sun, 31 Aug 2014 05:11:28 +0000 (00:11 -0500)]
altoslib: create logfiles preference object. check link in existing_data

The logfiles preference hash wasn't getting created, resulting in
crashes.

When there was no link, don't try to load existing data.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltosdroid: Add quit. Restart. Show freq in title.
Keith Packard [Sun, 31 Aug 2014 05:08:33 +0000 (00:08 -0500)]
altosdroid: Add quit. Restart. Show freq in title.

Add a quit button to menu.
When restarting, reconnect to previous device.
When connecting, set the freq/rate to previous values.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltosdroid: fixup fetching active device address
Keith Packard [Sat, 30 Aug 2014 03:33:36 +0000 (22:33 -0500)]
altosdroid: fixup fetching active device address

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltoslib: TeleMega telemetry pyro voltages are uint8
Keith Packard [Sat, 30 Aug 2014 03:08:43 +0000 (22:08 -0500)]
altoslib: TeleMega telemetry pyro voltages are uint8

Using int8 means that voltages over about 6V are reported incorrectly.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltosdroid: start restoring from log data on startup
Keith Packard [Fri, 29 Aug 2014 20:22:43 +0000 (15:22 -0500)]
altosdroid: start restoring from log data on startup

Remember which flight was last being received and reload that file

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltos: Make sure pyro remains valid during delay
Keith Packard [Fri, 29 Aug 2014 20:12:38 +0000 (15:12 -0500)]
altos: Make sure pyro remains valid during delay

Keep checking pyro status while waiting for delay to expire to make
sure nothing changes. Disable pyro channel if something does.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoao-bringup: Test EasyMega boards
Keith Packard [Fri, 29 Aug 2014 02:52:30 +0000 (19:52 -0700)]
ao-bringup: Test EasyMega boards

9 years agoao-bringup: Use ao-cal-accel instead of cal-accel in turnon scripts
Keith Packard [Mon, 18 Aug 2014 17:57:26 +0000 (10:57 -0700)]
ao-bringup: Use ao-cal-accel instead of cal-accel in turnon scripts

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoAdd ao-tools/ao-cal-accel
Keith Packard [Mon, 18 Aug 2014 17:53:04 +0000 (10:53 -0700)]
Add ao-tools/ao-cal-accel

This C version may be more reliable than the nickle version

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoturn echo back on after accel cal in turnon_telemetrum so rest is easier
Bdale Garbee [Mon, 18 Aug 2014 17:25:32 +0000 (11:25 -0600)]
turn echo back on after accel cal in turnon_telemetrum so rest is easier

9 years agoaltos: Add telerepeat-v1.0
Keith Packard [Mon, 18 Aug 2014 04:03:12 +0000 (21:03 -0700)]
altos: Add telerepeat-v1.0

This uses TeleBT hardware to provide a telemetry repeater, receiving
packets on one frequency and re-transmitting them on another.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltosui: Make Windows java test "smarter"
Keith Packard [Thu, 26 Jun 2014 23:29:37 +0000 (16:29 -0700)]
altosui: Make Windows java test "smarter"

Or at least have it try more options, and then finally ask the user
before downloading and installing java

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agotelegps-v1.0: Provide one log and append to it
Keith Packard [Mon, 18 Aug 2014 03:59:45 +0000 (20:59 -0700)]
telegps-v1.0: Provide one log and append to it

Instead of creating per-flight logs, create a single log and append
data to it each time TeleGPS is powered on. This avoids potentially
running out of log space just because the device is powered off/on.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agocc1111: Wait for internal flash write to complete
Keith Packard [Mon, 18 Aug 2014 03:57:16 +0000 (20:57 -0700)]
cc1111: Wait for internal flash write to complete

This ensures that we don't try to start another write too soon.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoUse -ldl when testing whether -m32 and -m64 builds work
Keith Packard [Mon, 18 Aug 2014 03:56:22 +0000 (20:56 -0700)]
Use -ldl when testing whether -m32 and -m64 builds work

We only need -ldl, and not -lbluetooth now that libaltos uses dlopen
on the bluetooth library

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoao-tools/ao-send-telem: Support sending TM v2 and Tm v2 telemetry
Keith Packard [Mon, 18 Aug 2014 03:55:34 +0000 (20:55 -0700)]
ao-tools/ao-send-telem: Support sending TM v2 and Tm v2 telemetry

Add state tracking so the telemetry sending code works.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltoslib: Remove some debug printfs
Keith Packard [Mon, 18 Aug 2014 03:54:44 +0000 (20:54 -0700)]
altoslib: Remove some debug printfs

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltoslib: Improve performance of AltosLib.hexbytes
Keith Packard [Mon, 18 Aug 2014 03:53:31 +0000 (20:53 -0700)]
altoslib: Improve performance of AltosLib.hexbytes

On an android device, this function was spending quite a bit of time
calling hexbyte. Open code the conversion to improve performance.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltoslib: Close serial port when AltosFlash fails to detect a target
Keith Packard [Mon, 18 Aug 2014 03:51:36 +0000 (20:51 -0700)]
altoslib: Close serial port when AltosFlash fails to detect a target

AltosDebug.check_connection raises an exception when the link fails,
but the AltosFlash constructor didn't close the serial port in this
case, causing the serial port to appear to be busy.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltoslib: Handle link timeout in AltosDebug.read_memory
Keith Packard [Mon, 18 Aug 2014 03:50:38 +0000 (20:50 -0700)]
altoslib: Handle link timeout in AltosDebug.read_memory

link.get_reply returns null on a link error; don't crash in
read_memory when this happens.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltoslib: Parse 'Log fixed:' configuration value
Keith Packard [Mon, 18 Aug 2014 03:49:27 +0000 (20:49 -0700)]
altoslib: Parse 'Log fixed:' configuration value

TeleGPS holds a single flight record and constantly appends data to it
instead of having separate flight records on the board. It reports
'Log fixed: 1' to let AltosLib know that the size of the per-flight
log is not configurable.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltosdroid: Skip updating hidden UI elements
Keith Packard [Mon, 18 Aug 2014 03:48:23 +0000 (20:48 -0700)]
altosdroid: Skip updating hidden UI elements

Instead of updating everything in the UI, only update the visible UI
elements to save a bunch of computation.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltosdroid: Add telemetry rate support
Keith Packard [Mon, 18 Aug 2014 03:46:48 +0000 (20:46 -0700)]
altosdroid: Add telemetry rate support

Provides a menu to select the receiver telemetry bit rate

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltos: Report additional pyro channels via beeper
Keith Packard [Fri, 15 Aug 2014 02:03:29 +0000 (19:03 -0700)]
altos: Report additional pyro channels via beeper

Send a beep for each additional pyro channel, low for no igniter, mid
for igniter. Does not change the reporting for the apogee/main channels.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltos: Document which TeleFire alarm pins are which
Keith Packard [Tue, 22 Jul 2014 21:18:06 +0000 (14:18 -0700)]
altos: Document which TeleFire alarm pins are which

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltos: Have MicroKite just start recording at startup
Keith Packard [Sun, 20 Jul 2014 05:35:30 +0000 (22:35 -0700)]
altos: Have MicroKite just start recording at startup

This avoids having MicroKite try to detect boost and has it just start
recording data immediately.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agochange easymega from v0.1 to v1.0, tweak to build on master, add to Makefile
Bdale Garbee [Fri, 15 Aug 2014 00:16:14 +0000 (18:16 -0600)]
change easymega from v0.1 to v1.0, tweak to build on master, add to Makefile

9 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Thu, 14 Aug 2014 23:08:36 +0000 (17:08 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

9 years agoaltoslib: Handle TeleGPS files for KML export
Keith Packard [Thu, 17 Jul 2014 00:13:25 +0000 (17:13 -0700)]
altoslib: Handle TeleGPS files for KML export

TeleGPS files had state values that couldn't be converted to colors,
which resulted in a truncated file that wasn't much use for anything.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoupdate turnon tools
Bdale Garbee [Wed, 16 Jul 2014 05:15:50 +0000 (23:15 -0600)]
update turnon tools

9 years agolinux-fat: Fix up fat linux install icons, mime types and .desktop files
Keith Packard [Tue, 15 Jul 2014 07:44:14 +0000 (00:44 -0700)]
linux-fat: Fix up fat linux install icons, mime types and .desktop files

use the standard xdg utilities to install mime type and .desktop
files. The standard xdg icon installer doesn't handle svg icons, so we
have to do those manually.

With this patch, xfce, gnome3 and kde4 all place the applications in
user-visible menus, display correct file icons and launch correct
applications for our file types.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltosuilib: Fix minor scan UI nits
Keith Packard [Mon, 14 Jul 2014 09:32:03 +0000 (02:32 -0700)]
altosuilib: Fix minor scan UI nits

Wasn't computing geometry correctly and overlapped the 2400 baud entry
with the list of scan results.

Was not saving the telemetry rate/telemetry style when switching to
monitor mode, which caused the new monitor to come up with the wrong values.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoSet version to 1.4.9.2 1.4.9.2
Keith Packard [Mon, 14 Jul 2014 07:46:41 +0000 (00:46 -0700)]
Set version to 1.4.9.2

9 years agoaltoslib: Parse eeprom 'altitude-32' fields
Keith Packard [Mon, 14 Jul 2014 07:45:13 +0000 (00:45 -0700)]
altoslib: Parse eeprom 'altitude-32' fields

This lets us tell if the altimeter supports 32-bit GPS altitudes in
the eeprom log.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltos/test: Build TeleMetrumV2 flight test variant
Keith Packard [Mon, 14 Jul 2014 03:44:39 +0000 (20:44 -0700)]
altos/test: Build TeleMetrumV2 flight test variant

Parses TeleMetrumV2 eeprom files and runs the TeleMetrumV2 flight code.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltos: Make ao_gps_print deal with telem containing 32-bit altitude values
Keith Packard [Mon, 14 Jul 2014 03:43:27 +0000 (20:43 -0700)]
altos: Make ao_gps_print deal with telem containing 32-bit altitude values

ao_gps_print is used with new telem packets from a few places; use
AO_TELEMETRY_LOCATION_ALTITUDE when necessary.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltos: Interrupt radio receive when changing data rate
Keith Packard [Mon, 14 Jul 2014 03:42:41 +0000 (20:42 -0700)]
altos: Interrupt radio receive when changing data rate

This aborts any pending radio receive when changing the data rate so
that the radio can be reprogrammed to receive at the correct rate.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoao-tools: Add a few GPS telem/eeprom constants
Keith Packard [Mon, 14 Jul 2014 03:41:36 +0000 (20:41 -0700)]
ao-tools: Add a few GPS telem/eeprom constants

These make it possible to encode/decode GPS data from telemetry and
eeprom files

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoao-tools: Provide altitude to temperature conversion function
Keith Packard [Mon, 14 Jul 2014 03:40:40 +0000 (20:40 -0700)]
ao-tools: Provide altitude to temperature conversion function

This takes altitude and computes the 'normal' temperature for
that.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoao-tools: Add TMv2 and Tgps log formats to cc.h
Keith Packard [Sun, 13 Jul 2014 18:06:29 +0000 (11:06 -0700)]
ao-tools: Add TMv2 and Tgps log formats to cc.h

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltos/telefire,telelco: Add HAS_RADIO_RATE to launch system software
Keith Packard [Sun, 13 Jul 2014 06:52:05 +0000 (23:52 -0700)]
altos/telefire,telelco: Add HAS_RADIO_RATE to launch system software

This lets us set the rate to a lower value to improve range. 9600 baud
works great; 2400 baud makes the initial search take a long time.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agotelegps: Missing function in TeleGPSConfigUI
Keith Packard [Fri, 11 Jul 2014 04:27:30 +0000 (21:27 -0700)]
telegps: Missing function in TeleGPSConfigUI

set_altitude_32 was added to the abstract class but not here.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agolibaltos: typo in libaltos broke the build
Keith Packard [Fri, 11 Jul 2014 04:13:49 +0000 (21:13 -0700)]
libaltos: typo in libaltos broke the build

When converting this to use dlopen, I mis-typed the name hci_read_remote_name

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltosui: Don't show bluetooth UI bits on mac/windows
Keith Packard [Fri, 11 Jul 2014 01:43:31 +0000 (18:43 -0700)]
altosui: Don't show bluetooth UI bits on mac/windows

This just confuses people into thinking that bluetooth is supported on
those machines.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agolibaltos: Bind to libbluetooth at runtime on demand
Keith Packard [Fri, 11 Jul 2014 01:42:37 +0000 (18:42 -0700)]
libaltos: Bind to libbluetooth at runtime on demand

This lets us reliably start and run without libbluetooth present.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltoslib: Extend telemetry heights from 16 to 32 bits
Keith Packard [Fri, 11 Jul 2014 00:27:43 +0000 (17:27 -0700)]
altoslib: Extend telemetry heights from 16 to 32 bits

Uses the GPS data and/or previous kalman data to compute the upper 16
bits of the truncated telemetry altitude value.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltosui: Fix the 'Graph' button on the landed tab
Keith Packard [Fri, 11 Jul 2014 00:26:19 +0000 (17:26 -0700)]
altosui: Fix the 'Graph' button on the landed tab

It hasn't been getting enabled since the state tabs were rewritten.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltos: Use 32-bits for flight state data (alt/speed/accel)
Keith Packard [Fri, 11 Jul 2014 00:18:38 +0000 (17:18 -0700)]
altos: Use 32-bits for flight state data (alt/speed/accel)

Stores 32-bits for all of the flight parameters. Uses 64-bit
intermediates for kalman computation.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltos: Record pdop value in TeleMetrumV2 log
Keith Packard [Fri, 11 Jul 2014 00:15:09 +0000 (17:15 -0700)]
altos: Record pdop value in TeleMetrumV2 log

There's only one byte free, so we'll record the pdop value

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltos: Scale DOP values by 10 in GPS drivers
Keith Packard [Fri, 11 Jul 2014 00:13:09 +0000 (17:13 -0700)]
altos: Scale DOP values by 10 in GPS drivers

sky traq was scaling by 5, ublox was scaling by 100.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltoslib: Handle wide GPS altitude values in eeprom and telemetry
Keith Packard [Fri, 11 Jul 2014 00:10:49 +0000 (17:10 -0700)]
altoslib: Handle wide GPS altitude values in eeprom and telemetry

Detect when the wider data is present and handle it correctly

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltos: Extend GPS altitudes to at least 24 bits everywhere
Keith Packard [Fri, 11 Jul 2014 00:07:48 +0000 (17:07 -0700)]
altos: Extend GPS altitudes to at least 24 bits everywhere

Telemetry gets a special 'mode' flag indicating that 24-bit data is
present; log files get new data and log readers are expected to detect
that via the firmware version number.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltosuilib: Allow for unitless axes in graphs
Keith Packard [Thu, 10 Jul 2014 23:19:52 +0000 (16:19 -0700)]
altosuilib: Allow for unitless axes in graphs

DOP values have no units.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltosuilib: Add GPS DOP values to info table
Keith Packard [Thu, 10 Jul 2014 23:19:34 +0000 (16:19 -0700)]
altosuilib: Add GPS DOP values to info table

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltosuilib: Add GPS DOP values to graph
Keith Packard [Thu, 10 Jul 2014 23:19:17 +0000 (16:19 -0700)]
altosuilib: Add GPS DOP values to graph

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltoslib: Ensure CSV output is consistent
Keith Packard [Thu, 10 Jul 2014 23:17:56 +0000 (16:17 -0700)]
altoslib: Ensure CSV output is consistent

Scan entire flight to figure out which columns to include before
outputing header or data. Limit data output to values which are valid.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltoslib: Clean up GPS DOP support in AltosState
Keith Packard [Thu, 10 Jul 2014 23:15:52 +0000 (16:15 -0700)]
altoslib: Clean up GPS DOP support in AltosState

Parse out hdop/pdop/vdop from telem and eeprom. Deal with legacy
eeprom files that have dop/100 instead of dop/10 values.

Clear state DOP values to MISSING at startup

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agomicropeak/altosui/telegps: Fix icon file names
Keith Packard [Thu, 10 Jul 2014 07:26:55 +0000 (00:26 -0700)]
micropeak/altosui/telegps: Fix icon file names

The icon file names are now structured to have an organization name
and application name component. This should avoid collisions with
other packages when the icon files are installed in a shared
directory, as on Linux. Within the Java .jar file, the new names need
to be correctly referenced or we won't find them.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltos/telemini-v2.0: Enable beep config and radio rate config
Keith Packard [Wed, 9 Jul 2014 06:47:09 +0000 (23:47 -0700)]
altos/telemini-v2.0: Enable beep config and radio rate config

use the smaller pa to altitude table to make room for the new code

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltos: Add smaller pa to altitude table for TeleMini
Keith Packard [Wed, 9 Jul 2014 06:46:24 +0000 (23:46 -0700)]
altos: Add smaller pa to altitude table for TeleMini

TeleMini doesn't have space for the larger table, and the smaller one
isn't that much less accurate at lower altitudes.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltos/telemini-v2.0: Add memory decorations to new telemetry variables
Keith Packard [Wed, 9 Jul 2014 06:45:10 +0000 (23:45 -0700)]
altos/telemini-v2.0: Add memory decorations to new telemetry variables

This lets TeleMini-v2.0 compile.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltosui: Hide inactive altimeter configuration entries
Keith Packard [Wed, 9 Jul 2014 06:43:31 +0000 (23:43 -0700)]
altosui: Hide inactive altimeter configuration entries

Instead of disabling them, just hide them so that entries that do not
apply to a particular device won't get shown at all.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoBump version to 1.4.9.1 -- on the way to 1.5 1.4.9.1
Keith Packard [Mon, 7 Jul 2014 03:10:21 +0000 (20:10 -0700)]
Bump version to 1.4.9.1 -- on the way to 1.5

9 years agoAdd support for the "kite" micropeak variant
Keith Packard [Sun, 6 Jul 2014 19:35:13 +0000 (12:35 -0700)]
Add support for the "kite" micropeak variant

This uses a 100m 'launch detect' altitude and logs data every 19.2s
instead of every .192s.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agotelegps: Support variable telemetry rate
Keith Packard [Sat, 5 Jul 2014 07:16:57 +0000 (00:16 -0700)]
telegps: Support variable telemetry rate

Add combo box to monitoring window and device configuration.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltosui: Support telemetry data rates
Keith Packard [Sat, 5 Jul 2014 06:41:16 +0000 (23:41 -0700)]
altosui: Support telemetry data rates

Add combo box to flight UI and flight hardware configuration UIs
Add telemetry rate to the TD/TBT config dialog

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltosuilib: Add telemetry rate to Scan UI
Keith Packard [Sat, 5 Jul 2014 06:57:42 +0000 (23:57 -0700)]
altosuilib: Add telemetry rate to Scan UI

Let the user scan for multiple data rates as well as telemetry formats
and frequencies

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltoslib: Support multiple telemetry rates
Keith Packard [Thu, 3 Jul 2014 05:48:13 +0000 (22:48 -0700)]
altoslib: Support multiple telemetry rates

Altos now supports 2400 and 9600 baud in addition to the classic 38400
baud rate. Add support to altoslib for these as well

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltos: Rework packet receive for cc1120
Keith Packard [Sat, 5 Jul 2014 07:04:06 +0000 (00:04 -0700)]
altos: Rework packet receive for cc1120

Instead of blocking on PQT, just set up the receiver to start going
and when the first bit interrupt comes in, grab the SPI bus if
possible and configure it for reception. This improves sensitivity in
the radio by a significant amount while making the code conceptually a
bit nicer.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltos: Add telemetry rate support to CC1120 driver
Keith Packard [Thu, 3 Jul 2014 05:34:48 +0000 (22:34 -0700)]
altos: Add telemetry rate support to CC1120 driver

This supports the new 2400 and 9600 baud rates

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltos: Packet reception tuning for cc1120 driver
Keith Packard [Sat, 5 Jul 2014 06:42:30 +0000 (23:42 -0700)]
altos: Packet reception tuning for cc1120 driver

This adjusts the cc1120 receive parameters to increase sensitivity at
the expense of reporting many more invalid packets to the UI.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltos: Add 2400 and 9600 baud telemetry support to cc115l driver
Keith Packard [Thu, 3 Jul 2014 05:41:20 +0000 (22:41 -0700)]
altos: Add 2400 and 9600 baud telemetry support to cc115l driver

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltos/cc1111: Add 2400 and 9600 baud telemetry rate support
Keith Packard [Thu, 3 Jul 2014 05:31:59 +0000 (22:31 -0700)]
altos/cc1111: Add 2400 and 9600 baud telemetry rate support

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltos/cc1111: Adjust receive parameters to improve sensitivity
Keith Packard [Thu, 3 Jul 2014 05:30:23 +0000 (22:30 -0700)]
altos/cc1111: Adjust receive parameters to improve sensitivity

This removes the packet quality test and carrier sense tests when
deciding whether to start decoding a packet. This lets more bad
packets through, but the CRC check catches those and now we're
regularly receiving packets down to -110 or even -112 dBm. Before this
change, we'd rarely see packets as low as -105dBm

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltos: Call ao_telemetry_reset_interval when telemetry rate changes
Keith Packard [Sat, 5 Jul 2014 07:09:25 +0000 (00:09 -0700)]
altos: Call ao_telemetry_reset_interval when telemetry rate changes

This lets the radio code adjust the telemetry packet sending pattern
when the data rate changes.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltos: Add config support for 2400 and 9600 baud telemetry rates
Keith Packard [Thu, 3 Jul 2014 05:44:07 +0000 (22:44 -0700)]
altos: Add config support for 2400 and 9600 baud telemetry rates

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltos: Add defines for 2400 and 9600 baud telemetry rates
Keith Packard [Thu, 3 Jul 2014 05:42:10 +0000 (22:42 -0700)]
altos: Add defines for 2400 and 9600 baud telemetry rates

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltos: Reduce configuration data telemetry to once per 5 seconds
Keith Packard [Sat, 5 Jul 2014 06:26:57 +0000 (23:26 -0700)]
altos: Reduce configuration data telemetry to once per 5 seconds

This data is constant, so we don't need to send it very often. Once
every five seconds should be plenty.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltos: Use TeleMetrum v1.9 board for MegaDongle experiments
Keith Packard [Thu, 3 Jul 2014 05:46:07 +0000 (22:46 -0700)]
altos: Use TeleMetrum v1.9 board for MegaDongle experiments

This configures the MegaDongle v0.1 directory to use the pin
assignments in TeleMetrum v1.9 boards.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltos: Stop sticking cc1111 firmware in src directory
Keith Packard [Thu, 3 Jul 2014 05:45:01 +0000 (22:45 -0700)]
altos: Stop sticking cc1111 firmware in src directory

This just clutters src.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltos: ao_rssi subsystem needs to use AO_LED_TYPE instead of uint8_t
Keith Packard [Thu, 3 Jul 2014 05:42:43 +0000 (22:42 -0700)]
altos: ao_rssi subsystem needs to use AO_LED_TYPE instead of uint8_t

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltosuilib: Remove debug printfs from map cache
Keith Packard [Sat, 5 Jul 2014 06:22:20 +0000 (23:22 -0700)]
altosuilib: Remove debug printfs from map cache

Just annoying

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltoslib: Preserve receiver_serial across state reset for new transmitter
Keith Packard [Sat, 5 Jul 2014 06:20:51 +0000 (23:20 -0700)]
altoslib: Preserve receiver_serial across state reset for new transmitter

When the transmitter serial or flight number changes, we re-init the
state information, but we want to preserve the receiver serial number
so that the log file has that in the name

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltoslib: Disable telemetry while getting config data
Keith Packard [Wed, 25 Jun 2014 20:50:54 +0000 (13:50 -0700)]
altoslib: Disable telemetry while getting config data

We're seeing some log files created without a suitable -via- number
included. My hypothesis is that incoming telemetry is getting
interleaved with the configuration data containing the serial
number. This change simply disables telemetry while retrieving the
configuration data to try and keep that from happening.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltosui/telegps: Undo the frequency/telemetry menu changes
Keith Packard [Sat, 5 Jul 2014 06:38:53 +0000 (23:38 -0700)]
altosui/telegps: Undo the frequency/telemetry menu changes

Using menus for these items isn't what we want; we want to show the
current value on the screen, which is what a combo box is for. Switch
back to those and remove the frequency and telemetry config from the
TeleGPS menu bar so that Mac OS X is happy.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agonote need to push the updated repo with production binaries during release
Bdale Garbee [Wed, 25 Jun 2014 19:37:56 +0000 (13:37 -0600)]
note need to push the updated repo with production binaries during release

9 years agoWindows sucks, hard .. make sure filenames are legal in .mdwn files
Bdale Garbee [Wed, 25 Jun 2014 04:43:04 +0000 (22:43 -0600)]
Windows sucks, hard .. make sure filenames are legal in .mdwn files

9 years agoupdate Releasing file based on learnings from 1.4.1 release
Bdale Garbee [Wed, 25 Jun 2014 04:35:43 +0000 (22:35 -0600)]
update Releasing file based on learnings from 1.4.1 release

9 years agotelegps: Disable tracker config when not available
Keith Packard [Wed, 25 Jun 2014 03:57:29 +0000 (20:57 -0700)]
telegps: Disable tracker config when not available

Tracker motion and interval were both left enabled even when the
device being configured didn't support them. Disable them like other
elements.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltosui: Don't show the tracker motion value when switching units
Keith Packard [Wed, 25 Jun 2014 03:52:34 +0000 (20:52 -0700)]
altosui: Don't show the tracker motion value when switching units

The tracker value was left enabled when hidden; the logic for deciding
whether to update it with new information used only the enabled state,
not the visible state. Set both states when hiding it to keep things
more consistent

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoAdd note about including Google maps API key
Keith Packard [Fri, 20 Jun 2014 18:56:58 +0000 (11:56 -0700)]
Add note about including Google maps API key

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoAdd 1.4.1 release notes
Keith Packard [Fri, 20 Jun 2014 18:51:11 +0000 (11:51 -0700)]
Add 1.4.1 release notes

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoClean all .desktop files, ignore them too
Keith Packard [Wed, 25 Jun 2014 03:31:50 +0000 (20:31 -0700)]
Clean all .desktop files, ignore them too

All .desktop files are built from .desktop.in files, so just remove
all of them in make clean, and ignore all of them in .gitignore.
This makes the rename less painful.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoneed the api key in Bdale's root too
Bdale Garbee [Wed, 25 Jun 2014 03:22:26 +0000 (21:22 -0600)]
need the api key in Bdale's root too

9 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Wed, 25 Jun 2014 03:17:53 +0000 (21:17 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

9 years agoaltosuilib: Mark 'Configure AltosUI' window with maps key status
Keith Packard [Wed, 25 Jun 2014 03:15:38 +0000 (20:15 -0700)]
altosuilib: Mark 'Configure AltosUI' window with maps key status

This lets us check a build to make sure it has a maps key

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agomake sure to use Google Maps API key for official builds
Bdale Garbee [Wed, 25 Jun 2014 03:12:59 +0000 (21:12 -0600)]
make sure to use Google Maps API key for official builds

9 years agoicon: Generate altusmetrum.xpm and install it
Keith Packard [Wed, 25 Jun 2014 01:26:04 +0000 (18:26 -0700)]
icon: Generate altusmetrum.xpm and install it

This is for the debian menu, still a required part of a debian package.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 years agoaltosuilib: Outline map lines and distance value with white
Keith Packard [Wed, 25 Jun 2014 01:25:31 +0000 (18:25 -0700)]
altosuilib: Outline map lines and distance value with white

This makes the value and line visible on dark backgrounds

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