fw/altos
7 years agoao-tools/ao-test-gps: Improve output formatting
Keith Packard [Sat, 13 Sep 2014 03:56:29 +0000 (20:56 -0700)]
ao-tools/ao-test-gps: Improve output formatting

Add a newline before printing out the flags and sats at exit time

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoao-bringup: Use C version of ao-test-gps in test-telegps
Keith Packard [Sat, 13 Sep 2014 00:22:37 +0000 (17:22 -0700)]
ao-bringup: Use C version of ao-test-gps in test-telegps

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoao-tools: Add ao-test-gps program
Keith Packard [Sat, 13 Sep 2014 00:22:03 +0000 (17:22 -0700)]
ao-tools: Add ao-test-gps program

This waits for GPS to report lock

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoao-bringup: Use C version of test-flash for telegps
Keith Packard [Fri, 12 Sep 2014 23:38:59 +0000 (16:38 -0700)]
ao-bringup: Use C version of test-flash for telegps

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Ignore built .desktop file
Keith Packard [Fri, 12 Sep 2014 02:59:58 +0000 (19:59 -0700)]
altosui: Ignore built .desktop file

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Make sure we don't beep out continuity twice in idle mode
Keith Packard [Fri, 12 Sep 2014 02:56:13 +0000 (19:56 -0700)]
altos: Make sure we don't beep out continuity twice in idle mode

If the battery voltage report takes longer than the initialiation
sequence, we could get to the state reporting after the state had
switched from startup to idle. This would result in continuity being
reported the first time through the loop. Then, as the state had
already changed, we'd pass through the while test and go back to
report continuity a second time.

Fixed by using the state remembered before beeping out the voltage to
decide whether to report the continuity.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Add smaller altitude table file to .gitignore
Keith Packard [Thu, 11 Sep 2014 22:57:21 +0000 (15:57 -0700)]
altos: Add smaller altitude table file to .gitignore

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos/test: Add TMv2 test program to .gitignore
Keith Packard [Thu, 11 Sep 2014 22:56:14 +0000 (15:56 -0700)]
altos/test: Add TMv2 test program to .gitignore

7 years agoaltos: Fix ability to disable telemetry by setting interval to 0
Keith Packard [Thu, 11 Sep 2014 22:00:25 +0000 (15:00 -0700)]
altos: Fix ability to disable telemetry by setting interval to 0

For non-zero telemetry intervals, the radio code limits the value
based on the data rate. However, a zero interval means that telemetry
should be entirely disabled, so that value should be left alone when
checking.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agotelegps: Was mis-configuring the 'Configure Device' dialog
Keith Packard [Thu, 11 Sep 2014 21:23:29 +0000 (14:23 -0700)]
telegps: Was mis-configuring the 'Configure Device' dialog

Make sure we show 'rate_label' instead of showing 'radio_enable_label'
twice.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltoslib: Stop re-loading previous flight when starting telemetry monitoring
Keith Packard [Thu, 11 Sep 2014 21:14:07 +0000 (14:14 -0700)]
altoslib: Stop re-loading previous flight when starting telemetry monitoring

This feature is necessary on AltosDroid because there's no other UI
for reloading an old flight. It's not useful on the desktop where you
really just want to see new telemetry; old telemetry is availbale
through the 'graph flight' or 'replay' mechanisms.

AltosDroid uses a different class for reading telemetry data, so we
can just remove this feature from altoslib at this point.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agouse dh_installmime, which requires telling configure to stay out of the way
Bdale Garbee [Wed, 10 Sep 2014 07:29:56 +0000 (01:29 -0600)]
use dh_installmime, which requires telling configure to stay out of the way

7 years agoanother build dep
Bdale Garbee [Wed, 10 Sep 2014 06:26:10 +0000 (00:26 -0600)]
another build dep

7 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Wed, 10 Sep 2014 07:30:37 +0000 (01:30 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

7 years agoconfigure: Add --disable-install-shared-mime-info option
Keith Packard [Wed, 10 Sep 2014 07:03:53 +0000 (00:03 -0700)]
configure: Add --disable-install-shared-mime-info option

This inhibits the installation of the shared mime info data file and
updating of the shared mime database. Necessary if you want to use a
distribution-specific shared mime installation hook, like dh_installmime

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years ago.desktop: Use %F instead of %f in .desktop files
Keith Packard [Wed, 10 Sep 2014 06:43:10 +0000 (23:43 -0700)]
.desktop: Use %F instead of %f in .desktop files

%F is a list of files, %f is a single file. All of our tools can
handle lists of files, so make the .desktop file reflect that.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agomore build dependencies for processing icons
Bdale Garbee [Wed, 10 Sep 2014 05:44:45 +0000 (23:44 -0600)]
more build dependencies for processing icons

7 years agoicons: Use DESTDIR when updating mime/icon caches
Keith Packard [Wed, 10 Sep 2014 06:00:14 +0000 (23:00 -0700)]
icons: Use DESTDIR when updating mime/icon caches

This is done in install-data-hook and needs to explicitly use DESTDIR

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltoslib/altosuilib: clean all versions of the .jar file
Keith Packard [Tue, 9 Sep 2014 16:38:03 +0000 (09:38 -0700)]
altoslib/altosuilib: clean all versions of the .jar file

When we switch libary versions, we want to remove the old ones; just
have 'make clean' remove all versions of the libaries.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltoslib/altosuilib: Add EasyMega support
Keith Packard [Tue, 9 Sep 2014 16:37:13 +0000 (09:37 -0700)]
altoslib/altosuilib: Add EasyMega support

This makes flashing find the right files, and Monitor Idle show all of
the state data.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos/easymega: Set USB PID for EasyMega to 0x0028
Keith Packard [Tue, 9 Sep 2014 16:09:22 +0000 (09:09 -0700)]
altos/easymega: Set USB PID for EasyMega to 0x0028

It was using 0x0023, which is for TeleMega. 0x0028 is what's listed in
usbvidpid.h.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltoslib: Fix idle monitor parsing of MMA655x state
Keith Packard [Tue, 9 Sep 2014 16:02:51 +0000 (09:02 -0700)]
altoslib: Fix idle monitor parsing of MMA655x state

There's no ':' after 'MMA655X value' in the output, and the parser
returns 'true' on success, not false.

With this, 'Monitor Idle' now reports correct accelerometer readings.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoTag version 1.4.9.3 1.4.9.3
Keith Packard [Tue, 9 Sep 2014 16:01:42 +0000 (09:01 -0700)]
Tag version 1.4.9.3

This should be the final firmware version for 1.5

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Include EasyMega firmware in fat release
Keith Packard [Sun, 7 Sep 2014 05:56:25 +0000 (22:56 -0700)]
altosui: Include EasyMega firmware in fat release

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Sun, 7 Sep 2014 05:42:47 +0000 (23:42 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

7 years agodoc: Update for version 1.5 release
Keith Packard [Sun, 7 Sep 2014 05:28:13 +0000 (22:28 -0700)]
doc: Update for version 1.5 release

Add stuff about EasyMega and telemetry rate configuration. Update
screen shots as needed.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Scale packet master receive delay by baud rate
Keith Packard [Sun, 7 Sep 2014 03:44:30 +0000 (20:44 -0700)]
altos: Scale packet master receive delay by baud rate

Increase the time we wait for return packets based on the remote
protocol baud rate.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltoslib: Increase timeouts when using low baud rate remote protocol
Keith Packard [Sun, 7 Sep 2014 03:43:32 +0000 (20:43 -0700)]
altoslib: Increase timeouts when using low baud rate remote protocol

When using 2400 or 9600 baud remote link rates, we need to increase
the packet timeout from 500ms to much longer values to avoid annoying
the user with timeout warnings.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltoslib: Update local callsign/baud rate when using remote protocol
Keith Packard [Sun, 7 Sep 2014 03:41:58 +0000 (20:41 -0700)]
altoslib: Update local callsign/baud rate when using remote protocol

We've had code to synchronously update the local and remote radio
frequencies when doing configuration over the remote link. This patch
adds the same code when changing the call sign and baud rate.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Reduce deviation at 2400/9600 baud
Keith Packard [Sun, 7 Sep 2014 03:39:37 +0000 (20:39 -0700)]
altos: Reduce deviation at 2400/9600 baud

There's no reason to use 20.5kHz deviation at 2400 and 9600 baud, and
if we get a better receiver, we'll want to use narrower deviation to
have less bandwidth sucking noise into the radio. The new values are
(nominally) 5.125kHz deviation for 9600 baud and 1.5kHz deviation for
2400 baud.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Sat, 6 Sep 2014 19:41:36 +0000 (13:41 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

Conflicts:
ao-bringup/turnon_telemega

7 years agotweaking test scripts
Bdale Garbee [Sat, 6 Sep 2014 19:40:59 +0000 (13:40 -0600)]
tweaking test scripts

7 years agoaltosdroid: Mark completed items as 'done'
Keith Packard [Sat, 6 Sep 2014 07:39:41 +0000 (00:39 -0700)]
altosdroid: Mark completed items as 'done'

Frequency display
Re-load data on restart
Auto re-connect to TBT at correct freq

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosdroid: Add imperial unit support
Keith Packard [Sat, 6 Sep 2014 07:14:26 +0000 (00:14 -0700)]
altosdroid: Add imperial unit support

Provides a menu entry to switch units, changes all value displays to
use the AltosLib units conversion code.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosdroid: Update tab contents before switching
Keith Packard [Sat, 6 Sep 2014 06:10:07 +0000 (23:10 -0700)]
altosdroid: Update tab contents before switching

Make sure the new tab contents are updated before switching tabs so
that the user doesn't see old stuff.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosdroid: Ignore TelemetryService messages after service shutdown
Keith Packard [Sat, 6 Sep 2014 05:06:21 +0000 (22:06 -0700)]
altosdroid: Ignore TelemetryService messages after service shutdown

Messages may get delivered after the service has been shut down;
ignore those.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosdroid: add new TelemetryState.java
Keith Packard [Thu, 4 Sep 2014 18:28:40 +0000 (11:28 -0700)]
altosdroid: add new TelemetryState.java

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Don't mark altimeter dirty when opening pyro panel
Keith Packard [Thu, 4 Sep 2014 05:59:09 +0000 (22:59 -0700)]
altosui: Don't mark altimeter dirty when opening pyro panel

Skip setting the UI dirty when filling in the pyro firing time value.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Allow negative values for pyro configuration data
Keith Packard [Thu, 4 Sep 2014 05:58:22 +0000 (22:58 -0700)]
altos: Allow negative values for pyro configuration data

All of the integer pyro configuration parameters may be negative, so
parse that correctly.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosdroid: Use single object to pass data to UI
Keith Packard [Thu, 4 Sep 2014 05:32:49 +0000 (22:32 -0700)]
altosdroid: Use single object to pass data to UI

Instead of having separate messages for each piece of telemetry state,
package the whole mess up in one object and send it for any
change. This simplifies tracking within the UI by avoiding corner
cases during reconnect.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos/telefire: Add firing length to manual pad command
Keith Packard [Thu, 4 Sep 2014 05:12:15 +0000 (22:12 -0700)]
altos/telefire: Add firing length to manual pad command

This adds an optional length of time (in 1/10s of a second) to the
ao_pad_manual function to enable testing of igniters without needing
to use TeleLCO.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Fix 'pad' screen for TeleGPS
Keith Packard [Mon, 1 Sep 2014 23:25:00 +0000 (18:25 -0500)]
altosui: Fix 'pad' screen for TeleGPS

Don't report pad position for TeleGPS

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltoslib: Catch a couple null pointers in AltosConfigTD
Keith Packard [Mon, 1 Sep 2014 23:23:42 +0000 (18:23 -0500)]
altoslib: Catch a couple null pointers in AltosConfigTD

When messing with TD, I hit a couple of paths that could try to
dereference null pointers. Check for those.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltoslib: Ignore extra AO_LOG_FLIGHT records from TeleGPS
Keith Packard [Mon, 1 Sep 2014 23:21:49 +0000 (18:21 -0500)]
altoslib: Ignore extra AO_LOG_FLIGHT records from TeleGPS

TeleGPS was inserting a spurious AO_LOG_FLIGHT record each time it
turned on, which confused altoslib quite a bit.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Don't add AO_LOG_FLIGHT to existing GPS logs
Keith Packard [Mon, 1 Sep 2014 23:12:29 +0000 (18:12 -0500)]
altos: Don't add AO_LOG_FLIGHT to existing GPS logs

When appending to a TeleGPS log, don't stick another flight value into
the log. That just confuses the ground station software.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosdroid: reload previous log file at connect time
Keith Packard [Sun, 31 Aug 2014 05:28:15 +0000 (00:28 -0500)]
altosdroid: reload previous log file at connect time

Use the saved logfile to re-load the previous state at startup time.

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

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

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

7 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

7 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>
7 years agoupdate turnon tools
Bdale Garbee [Wed, 16 Jul 2014 05:15:50 +0000 (23:15 -0600)]
update turnon tools

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

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