fw/altos
2 months agoupdate changelog for Debian build debian debian/1.3.2-1
Bdale Garbee [Fri, 14 Feb 2014 04:57:26 +0000 (21:57 -0700)]
update changelog for Debian build

2 months agoMerge branch 'branch-1.3' into debian
Bdale Garbee [Fri, 14 Feb 2014 04:54:46 +0000 (21:54 -0700)]
Merge branch 'branch-1.3' into debian

2 months agoupdating changelog for release branch-1.3 1.3.2
Bdale Garbee [Fri, 14 Feb 2014 04:53:13 +0000 (21:53 -0700)]
updating changelog for release

2 months agodoc: Update the 1.3.2 release notes to include APRS and Fire Igniter changes
Keith Packard [Mon, 10 Feb 2014 07:47:47 +0000 (23:47 -0800)]
doc: Update the 1.3.2 release notes to include APRS and Fire Igniter changes

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

2 months agodoc: Add remaining configurable parameters to the System Operation chapter
Keith Packard [Mon, 10 Feb 2014 07:46:39 +0000 (23:46 -0800)]
doc: Add remaining configurable parameters to the System Operation chapter

Yes, this duplicates the section in the AltosUI chapter, but I'm not
sure how to describe the device without talking about it in two
places, so we might as well make both of them complete.

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

2 months agoaltos: Put locked/unlocked GPS status in APRS comments
Keith Packard [Mon, 10 Feb 2014 06:54:31 +0000 (22:54 -0800)]
altos: Put locked/unlocked GPS status in APRS comments

Replace the 'S' (which marks the field showing sats in view) with
either 'L' or 'U' to tell the user whether the GPS receiver is locked
or unlocked.

This also removes the colons in the comment field to shorten it. This
makes it fit on one line of my FT1D display.

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

2 months agoaltos: Re-send previous GPS position in APRS if lock is lost
Keith Packard [Mon, 10 Feb 2014 06:53:05 +0000 (22:53 -0800)]
altos: Re-send previous GPS position in APRS if lock is lost

APRS radios often show only the last received APRS packet, which means
that erasing the last known GPS position when we lose lock by sending
0/0/0 is unhelpful. Instead, just send the last known position, and
make sure that we send 0/0/0 before we're locked the first time.

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

2 months agoaltos: Fixup named ADC printing
Keith Packard [Sun, 9 Feb 2014 06:02:02 +0000 (22:02 -0800)]
altos: Fixup named ADC printing

Print all ADC values on one line when using named ADC values

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

2 months agoaltos: Add needed math sources to TeleGPS v0.1 build
Keith Packard [Sun, 9 Feb 2014 04:05:02 +0000 (20:05 -0800)]
altos: Add needed math sources to TeleGPS v0.1 build

APRS requires the logf function to report altitude.

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

2 months agoaltos: Report nsat in view in APRS packet
Keith Packard [Sun, 9 Feb 2014 04:02:54 +0000 (20:02 -0800)]
altos: Report nsat in view in APRS packet

This adds the number of sats in view (as opposed to the number of sats
in solution) to the APRS packet.

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

2 months agoaltos: Don't write more than 12 sat infos in ublox driver
Keith Packard [Sun, 9 Feb 2014 04:00:56 +0000 (20:00 -0800)]
altos: Don't write more than 12 sat infos in ublox driver

This was overwriting memory past the end of the ao_gps_tracking_data
array, which isn't a good idea.

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

2 months agoaltos/stm: Block interrupts while reprogramming flash
Keith Packard [Sat, 1 Feb 2014 08:32:43 +0000 (00:32 -0800)]
altos/stm: Block interrupts while reprogramming flash

Wouldn't work well to get interrupted...

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

2 months agoaltos: Enable system timer in flash loader and prod watchdog with it
Keith Packard [Sat, 1 Feb 2014 08:06:30 +0000 (00:06 -0800)]
altos: Enable system timer in flash loader and prod watchdog with it

This makes it possible to reflash the board without needing to disable
the watchdog.

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

2 months agoaltos: Eliminate warnings in FAT code
Keith Packard [Sat, 1 Feb 2014 01:44:45 +0000 (17:44 -0800)]
altos: Eliminate warnings in FAT code

The FAT file system code wasn't cleaned up when the warning fixes were
done recently.

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

2 months agoaltos: Add watchdog timer task
Keith Packard [Thu, 21 Mar 2013 17:16:35 +0000 (10:16 -0700)]
altos: Add watchdog timer task

This new task frobs a pin periodically to inform the hardware that the
operating system is running.

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

2 months agoaltos: Add names when reporting STM ADC values
Keith Packard [Thu, 24 Jan 2013 05:36:18 +0000 (21:36 -0800)]
altos: Add names when reporting STM ADC values

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

2 months agodoc: Add title page image to altusmetrum.pdf
Keith Packard [Sat, 8 Feb 2014 22:31:06 +0000 (14:31 -0800)]
doc: Add title page image to altusmetrum.pdf

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

2 months agodoc: Ignore generate template XSL file
Keith Packard [Sat, 8 Feb 2014 22:30:52 +0000 (14:30 -0800)]
doc: Ignore generate template XSL file

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

2 months agodoc: Document GPS max height addition
Keith Packard [Sat, 8 Feb 2014 22:24:48 +0000 (14:24 -0800)]
doc: Document GPS max height addition

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

2 months agodoc: Update micropeak docs to include lots of pictures
Keith Packard [Sat, 8 Feb 2014 22:24:13 +0000 (14:24 -0800)]
doc: Update micropeak docs to include lots of pictures

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

2 months agodoc: Micropeak doc updates for 1.3.2
Keith Packard [Sat, 8 Feb 2014 18:25:33 +0000 (10:25 -0800)]
doc: Micropeak doc updates for 1.3.2

New 'download' button.
Update download instructions for new USB adapter.

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

2 months agomicropeak: Missing a couple of new exceptions when loading files
Keith Packard [Sat, 8 Feb 2014 06:45:26 +0000 (22:45 -0800)]
micropeak: Missing a couple of new exceptions when loading files

The change to keep reading on invalid chars from the serial port
exposed a couple of new exceptions from the MicroData code which the
file loading code needs to cope with.

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

2 months agomicropeak: Keep reading until we get valid data
Keith Packard [Sat, 8 Feb 2014 06:32:17 +0000 (22:32 -0800)]
micropeak: Keep reading until we get valid data

Don't stop just because we saw something invalid on the serial line;
let the user try again, or cancel when they get bored.

However, if the serial line disappears or some other fatal error
occurs, then do stop and put up an error dialog.

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

2 months agoaltos: report 0/0/0 for APRS position when GPS is not locked
Keith Packard [Fri, 7 Feb 2014 01:08:34 +0000 (17:08 -0800)]
altos: report 0/0/0 for APRS position when GPS is not locked

We were reporting whatever the GPS device sent, even if it wasn't
reporting a valid status. That's not terribly useful.

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

2 months agomicropeak: Watch serial data during download
Keith Packard [Mon, 3 Feb 2014 08:24:38 +0000 (00:24 -0800)]
micropeak: Watch serial data during download

This adds a text area to monitor the incoming serial data in case some
problem occurs.

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

2 months agoaltoslib: Use existing unicode Charset in AltosLink
Keith Packard [Mon, 3 Feb 2014 08:26:42 +0000 (00:26 -0800)]
altoslib: Use existing unicode Charset in AltosLink

Instead of making AltosLink look up the unicode charset, just provide
it directly.

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

2 months agodoc: Mention that an APRS interval of 0 disables it entirely
Keith Packard [Sat, 1 Feb 2014 02:09:26 +0000 (18:09 -0800)]
doc: Mention that an APRS interval of 0 disables it entirely

And mention that the value is a time in seconds between APRS packets.

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

2 months agodoc: Replace screen captures with 'active' window ones
Keith Packard [Fri, 31 Jan 2014 04:54:24 +0000 (20:54 -0800)]
doc: Replace screen captures with 'active' window ones

These are the same as the previous captures, just with the titlebar
highlighted instead of grey so that they're all consistent. These were
also done with the gimp which makes the areas outside of the window
(like outside the rounded corners) have zero alpha so that the white
background shows through.

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

2 months agodoc: Update screen capture of pyro config with correct names
Keith Packard [Fri, 31 Jan 2014 02:42:08 +0000 (18:42 -0800)]
doc: Update screen capture of pyro config with correct names

With the UI now using letters as TeleMega does, update the screen shot
used in the manual to match

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

2 months agoaltosui: Use letter names for pyro channels in pyro config UI
Keith Packard [Fri, 31 Jan 2014 02:38:01 +0000 (18:38 -0800)]
altosui: Use letter names for pyro channels in pyro config UI

TeleMega has the extra pyro channels labeled A, B, C, D instead of 0,
1, 2, 3. Use those names in the UI to avoid confusion.

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

2 months agodoc: Add explicit paragraph about using one battery with Tmega
Keith Packard [Wed, 29 Jan 2014 05:52:57 +0000 (21:52 -0800)]
doc: Add explicit paragraph about using one battery with Tmega

Just in case the factory-supplied jumper gets lost.

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

2 months agouse firmware in /usr/share/altos for teledongle, update telemetrum for v2.0
Bdale Garbee [Wed, 29 Jan 2014 01:21:10 +0000 (18:21 -0700)]
use firmware in /usr/share/altos for teledongle, update telemetrum for v2.0

2 months agoaltoslib: Don't lose gps_height value between GPS samples
Keith Packard [Sat, 25 Jan 2014 06:43:25 +0000 (22:43 -0800)]
altoslib: Don't lose gps_height value between GPS samples

gps_height is now reliably updated whenever GPS altitude data is
received, so don't try to reset it between samples.

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

2 months agoaltosui: Show GPS max height in flight stats window of graph
Keith Packard [Sat, 25 Jan 2014 06:40:49 +0000 (22:40 -0800)]
altosui: Show GPS max height in flight stats window of graph

Uses the new state.max_gps_height() function.#

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

2 months agoaltoslib: Track GPS altitude values to be able to report max gps height
Keith Packard [Sat, 25 Jan 2014 06:39:10 +0000 (22:39 -0800)]
altoslib: Track GPS altitude values to be able to report max gps height

This adds separate GPS altitude and GPS ground altitude values so that
the AltosState object can report GPS max height.

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

2 months agodoc: Fix spelling of decelerate
Keith Packard [Sat, 25 Jan 2014 05:34:39 +0000 (21:34 -0800)]
doc: Fix spelling of decelerate

2 months agodoc: Document flight computer wiring connections
Keith Packard [Sat, 25 Jan 2014 05:31:17 +0000 (21:31 -0800)]
doc: Document flight computer wiring connections

This details all of the wiring connections for each flight computer
and explains how to wire batteries, switches and how to use external
pyro batteries and active switches with each one.

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

2 months agoSet version to 1.3.2 in preparation for release
Keith Packard [Fri, 24 Jan 2014 18:10:00 +0000 (10:10 -0800)]
Set version to 1.3.2 in preparation for release

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

2 months agodoc: Add 1.3.2 release notes
Keith Packard [Fri, 24 Jan 2014 17:35:55 +0000 (09:35 -0800)]
doc: Add 1.3.2 release notes

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

2 months agoaltos: Tmega Don't try to log info about more than 12 GPS sats
Keith Packard [Fri, 24 Jan 2014 17:21:46 +0000 (09:21 -0800)]
altos: Tmega Don't try to log info about more than 12 GPS sats

The mega log format has a single packet for GPS info which holds a
maximum of 12 satellites. Bdale managed to get 14 sats in view, which
ended up crashing the ground station software, and also overflowed the
gps_tracking_data structure.

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

2 months agoaltoslib: Validate TeleMega GPS_SAT log packet nsat
Keith Packard [Fri, 24 Jan 2014 06:16:36 +0000 (22:16 -0800)]
altoslib: Validate TeleMega GPS_SAT log packet nsat

Make sure nsat is not more than the size of the array

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

2 months agoupdate notes on how to release
Bdale Garbee [Thu, 23 Jan 2014 04:31:03 +0000 (21:31 -0700)]
update notes on how to release

2 months agoupdate notes on how to release
Bdale Garbee [Thu, 23 Jan 2014 04:31:03 +0000 (21:31 -0700)]
update notes on how to release

2 months agoupdate changelog for Debian build debian/1.3.1-1
Bdale Garbee [Thu, 23 Jan 2014 03:57:04 +0000 (20:57 -0700)]
update changelog for Debian build

2 months agoMerge branch 'branch-1.3' into debian
Bdale Garbee [Thu, 23 Jan 2014 03:55:41 +0000 (20:55 -0700)]
Merge branch 'branch-1.3' into debian

2 months agofreshen ChangeLog for release 1.3.1
Bdale Garbee [Thu, 23 Jan 2014 03:53:03 +0000 (20:53 -0700)]
freshen ChangeLog for release

2 months agoupdate copyright date on main documentation file
Bdale Garbee [Thu, 23 Jan 2014 03:52:09 +0000 (20:52 -0700)]
update copyright date on main documentation file

3 months agodoc: Update for 1.3.1
Keith Packard [Wed, 22 Jan 2014 07:02:27 +0000 (23:02 -0800)]
doc: Update for 1.3.1

Add 1.3.1 release notes. Update screen shots. Document new functionality

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

3 months agodoc: Fix image widths to make them all scale the same amount
Keith Packard [Wed, 22 Jan 2014 07:01:28 +0000 (23:01 -0800)]
doc: Fix image widths to make them all scale the same amount

Hand-compute scale factors so that all images are presented at the
same relative size as they would be on the screen.

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

3 months agoaltosui: Handle serial-port startup errors in idle-monitor
Keith Packard [Wed, 22 Jan 2014 06:13:01 +0000 (22:13 -0800)]
altosui: Handle serial-port startup errors in idle-monitor

Trap exceptions during idle monitor startup and report them.

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

3 months agoaltosui: Handle already-opened link in IgniteUI
Keith Packard [Wed, 22 Jan 2014 06:01:39 +0000 (22:01 -0800)]
altosui: Handle already-opened link in IgniteUI

Must run the link open from the UI thread so that we can put up the
in-use dialog immdiately; otherwise the UI thread is blocked which
means the dialog never appears and the app appears to hang.

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

3 months agoaltosuilib: Remove some spurious debug printfs
Keith Packard [Wed, 22 Jan 2014 05:37:18 +0000 (21:37 -0800)]
altosuilib: Remove some spurious debug printfs

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

3 months agoaltoslib: Fetch target device config for Fire Igniter npyro value
Keith Packard [Wed, 22 Jan 2014 05:34:58 +0000 (21:34 -0800)]
altoslib: Fetch target device config for Fire Igniter npyro value

The code was using the AltosLink config_data, which is always the
locally connected device's configuration. When using the packet link,
that's not terribly useful when asking how many extra pyro channels
are available.

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

3 months agoMerge remote-tracking branch 'origin/master'
Keith Packard [Wed, 22 Jan 2014 04:59:06 +0000 (20:59 -0800)]
Merge remote-tracking branch 'origin/master'

3 months agoset version to 1.3.1 for release
Bdale Garbee [Wed, 22 Jan 2014 04:31:25 +0000 (21:31 -0700)]
set version to 1.3.1 for release

3 months agoaltosui: rate limit map downloads
Anthony Towns [Mon, 20 Jan 2014 09:38:21 +0000 (19:38 +1000)]
altosui: rate limit map downloads

3 months agoaltosui: --fetchmaps gets same number of maps as GUI
Anthony Towns [Sun, 19 Jan 2014 19:10:58 +0000 (05:10 +1000)]
altosui: --fetchmaps gets same number of maps as GUI

3 months agoAltosSiteMapPreload: only load 49 maps
Anthony Towns [Sun, 19 Jan 2014 18:52:43 +0000 (04:52 +1000)]
AltosSiteMapPreload: only load 49 maps

Google Static Maps API limits queries to 50 maps per IP per minute,
so querying a 7x7 array instead of a 9x9 array seems more likely to
work well.

3 months agoaltosui: Make romconfig serial and radio cal fields 8 digits wide
Keith Packard [Sun, 19 Jan 2014 08:17:06 +0000 (00:17 -0800)]
altosui: Make romconfig serial and radio cal fields 8 digits wide

This ensure that they are wide enough to show a cc1120 calibration
value, which is 7 digits.

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

3 months agoset version to 1.3.0.2 for test flights this weekend
Bdale Garbee [Sat, 18 Jan 2014 03:55:45 +0000 (20:55 -0700)]
set version to 1.3.0.2 for test flights this weekend

3 months agouse firmware in /usr/share/altos for production flashing
Bdale Garbee [Sat, 18 Jan 2014 03:47:16 +0000 (20:47 -0700)]
use firmware in /usr/share/altos for production flashing

3 months agoaltos: Add missing ADC divider values for Tmega v1.0
Keith Packard [Wed, 15 Jan 2014 21:28:16 +0000 (13:28 -0800)]
altos: Add missing ADC divider values for Tmega v1.0

Somehow I left these out of the previous commit

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

3 months agoIgnore 32 and 64 bit cjnitest apps
Keith Packard [Wed, 15 Jan 2014 20:42:59 +0000 (12:42 -0800)]
Ignore 32 and 64 bit cjnitest apps

3 months agoaltos: Report battery, apogee and main voltages over APRS
Keith Packard [Wed, 15 Jan 2014 20:40:26 +0000 (12:40 -0800)]
altos: Report battery, apogee and main voltages over APRS

This makes APRS more usable when you mute the RF audio on the HT.

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

3 months agoaltos: Use factory calibration for all acceleration computations
Keith Packard [Wed, 15 Jan 2014 07:29:59 +0000 (23:29 -0800)]
altos: Use factory calibration for all acceleration computations

The ground acceleration value will vary depending on the tilt angle of
the airframe, which will result in incorrect acceleration computations
during flight. This also avoids accidental boost detect when moving
the airframe around in pad mode.

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

3 months agoaltos: Switch APRS to compressed position format
Keith Packard [Wed, 15 Jan 2014 07:21:40 +0000 (23:21 -0800)]
altos: Switch APRS to compressed position format

This provides lat/lon/alt in fewer bytes while improving precision.

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

3 months agodoc: Ship telemini outline as pdf file too
Keith Packard [Wed, 15 Jan 2014 07:18:40 +0000 (23:18 -0800)]
doc: Ship telemini outline as pdf file too

Build telemini.pdf from telemini.svg and include it in all of the
released packages.

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

3 months agoaltosui: Require both libaltos32 and libaltos64 for fat Linux tarball
Keith Packard [Thu, 2 Jan 2014 06:08:13 +0000 (22:08 -0800)]
altosui: Require both libaltos32 and libaltos64 for fat Linux tarball

No sense shipping a broken tarball ever

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

3 months agolibaltos: Build -m64 and -m32 for fat tarball when possible
Keith Packard [Thu, 2 Jan 2014 06:02:56 +0000 (22:02 -0800)]
libaltos: Build -m64 and -m32 for fat tarball when possible

Check to see if we can compile libaltos for both 32 bit and 64 bit
systems, and then use those when generating the linux tarball.

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

3 months agoBump version to 1.3.9.1
Keith Packard [Thu, 2 Jan 2014 06:02:04 +0000 (22:02 -0800)]
Bump version to 1.3.9.1

Lots of new features; let's not release with 1.3 set

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

3 months agoaltosui: Handle a missing libaltos when starting up
Keith Packard [Thu, 2 Jan 2014 06:00:24 +0000 (22:00 -0800)]
altosui: Handle a missing libaltos when starting up

Skip a null list of devices when figuring out what to open monitor
windows for during startup.

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

3 months agoaltos: Flip acceleration data consistently for orientation changes
Keith Packard [Thu, 2 Jan 2014 05:12:20 +0000 (21:12 -0800)]
altos: Flip acceleration data consistently for orientation changes

Must flip the acceleration calibration data using the same function as
flipping the actual acceleration data or the calibration will no
longer be valid after changing orientation. For the MMA655x, this
means using 4095 in both places, rather than using 0x7fff for the
calibration data changes and 4095 for the data value changes. For the
MPU6000, this means using 0 in both places.

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

3 months agoaltos: Add 'O' command for TeleMega orient testing
Keith Packard [Sat, 28 Dec 2013 18:18:53 +0000 (10:18 -0800)]
altos: Add 'O' command for TeleMega orient testing

Only present when HAS_FLIGHT_DEBUG is enabled, this command lets the
user check the orientation tracking code by showing the current
orientation and when the calibration values are reset.

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

3 months agoaltosui: Switch Graph to AltosOrient type
Keith Packard [Sat, 28 Dec 2013 18:17:37 +0000 (10:17 -0800)]
altosui: Switch Graph to AltosOrient type

The graph was using a private class for orient type, use the altoslib one

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

3 months agoaltosui: Adjust info table column width
Keith Packard [Sat, 28 Dec 2013 18:16:24 +0000 (10:16 -0800)]
altosui: Adjust info table column width

Make sure the info table can show a full longitude value

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

3 months agoaltosui: Add orient to ascent and info table views
Keith Packard [Sat, 28 Dec 2013 18:15:26 +0000 (10:15 -0800)]
altosui: Add orient to ascent and info table views

This adds 'tilt angle' to both ascent and info table views

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

3 months agoaltoslib: Add AltosOrient class and max_orient()
Keith Packard [Sat, 28 Dec 2013 18:13:05 +0000 (10:13 -0800)]
altoslib: Add AltosOrient class and max_orient()

This adds the class necessary to put orient into a UI.

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

4 months agoaltosui: Extend Fire Igniter to additional channels
Keith Packard [Sat, 21 Dec 2013 16:56:00 +0000 (08:56 -0800)]
altosui: Extend Fire Igniter to additional channels

This lets the UI test fire other pyro channels on TeleMega

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

4 months agoaltosui: Switch from radio buttons to check boxes in pyro config. Add close
Keith Packard [Sat, 21 Dec 2013 14:46:46 +0000 (06:46 -0800)]
altosui: Switch from radio buttons to check boxes in pyro config. Add close

First of (we hope) many review comments from Troj.

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

4 months agoaltos: Turn on -Werror for STM and LPC builds
Keith Packard [Sat, 21 Dec 2013 07:04:43 +0000 (23:04 -0800)]
altos: Turn on -Werror for STM and LPC builds

Now that the build completes with no warnings, make future warnings
into errors.

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

4 months agoaltos: Turn on warnings for LPC products too
Keith Packard [Sat, 21 Dec 2013 07:02:51 +0000 (23:02 -0800)]
altos: Turn on warnings for LPC products too

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

4 months agoaltos/lpc: Missing */ in definition of PIO0_4
Keith Packard [Sat, 21 Dec 2013 07:02:21 +0000 (23:02 -0800)]
altos/lpc: Missing */ in definition of PIO0_4

Would maek using these values pretty hard.

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

4 months agoaltos: lpc exti setup was incorrectly testing mode
Keith Packard [Sat, 21 Dec 2013 07:00:43 +0000 (23:00 -0800)]
altos: lpc exti setup was incorrectly testing mode

Check for NOCONFIGURE bit was missing parens

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

4 months agoaltos: cc115l driver tone_run wasn't recording number of tones
Keith Packard [Sat, 21 Dec 2013 06:59:42 +0000 (22:59 -0800)]
altos: cc115l driver tone_run wasn't recording number of tones

This would prevent the cc115l driver from ever sending tones.

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

4 months agoaltos: Clean up warnings for LPC products
Keith Packard [Sat, 21 Dec 2013 06:58:10 +0000 (22:58 -0800)]
altos: Clean up warnings for LPC products

Unused varibles, functions and parameters.

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

4 months agoaltos/stm: Turn on -Wextra
Keith Packard [Sat, 21 Dec 2013 06:45:56 +0000 (22:45 -0800)]
altos/stm: Turn on -Wextra

All of the warnings for STM projects are cleaned up now

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

4 months agoaltos: Add default button return value from ao_button_get
Keith Packard [Sat, 21 Dec 2013 06:45:01 +0000 (22:45 -0800)]
altos: Add default button return value from ao_button_get

This "can't" happen, but it's not unreasonable to have a default
return value.

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

4 months agoaltos: unsigned value in ao_pyro_set checked for negative value
Keith Packard [Sat, 21 Dec 2013 06:44:20 +0000 (22:44 -0800)]
altos: unsigned value in ao_pyro_set checked for negative value

No sense checking unsigned values for less than zero.

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

4 months agoaltos: Clean up -Wextra warnings
Keith Packard [Sat, 21 Dec 2013 06:43:18 +0000 (22:43 -0800)]
altos: Clean up -Wextra warnings

Unused variables, mismatching signed/unsigned and a few other misc
warnings.

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

4 months agoaltos: Turn on -Wall for stm compiles
Keith Packard [Sat, 21 Dec 2013 06:21:23 +0000 (22:21 -0800)]
altos: Turn on -Wall for stm compiles

The warnings are all cleaned up now, leave this on by default

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

4 months agoaltos: Clean up some minor warnings from -Wall
Keith Packard [Sat, 21 Dec 2013 06:15:25 +0000 (22:15 -0800)]
altos: Clean up some minor warnings from -Wall

Unused variables, functions and labels, missing enums in switch.

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

4 months agoaltos: mma655x also needs ao_sensor_errors
Keith Packard [Sat, 21 Dec 2013 06:13:32 +0000 (22:13 -0800)]
altos: mma655x also needs ao_sensor_errors

TeleMetrum has an MMA655X but no IMU, so it needs an explicit addition
for sensor errors.

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

4 months agoaltos: Complain about sensor self-test errors only in idle mode
Keith Packard [Sat, 21 Dec 2013 06:08:11 +0000 (22:08 -0800)]
altos: Complain about sensor self-test errors only in idle mode

When the accelerometer says to go into pad mode, don't look for other
sensor self test errors. Only look for sensor self test errors to
choose between idle and invalid mode. This will prevent minor sensor
self test errors from letting the rocket fly safely.

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

4 months agoaltos: 3-axis accel calibration was invalid in explicit accel cal mode
Keith Packard [Sat, 21 Dec 2013 06:06:52 +0000 (22:06 -0800)]
altos: 3-axis accel calibration was invalid in explicit accel cal mode

When explicit Z-axis accel calibration values were provided to the 'c
a' command, the 3-axis accelerometer calibration values would get set
to uninitialized values. Not so helpful.

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

4 months agoaltos: Execute self-test on MMA655X part
Keith Packard [Sat, 21 Dec 2013 06:04:53 +0000 (22:04 -0800)]
altos: Execute self-test on MMA655X part

This doesn't check for fine calibration, just makes sure the part is
within the broad tolerances specified by the manufacturer. The subtle fix
here was actually getting reset working -- there was a typo in the
bitpattern definition which caused the reset to fail, making it hard
to self-test the part, as self-test is only valid before the part is running.

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

4 months agoaltoslib: Bump library version
Keith Packard [Sat, 21 Dec 2013 03:44:38 +0000 (19:44 -0800)]
altoslib: Bump library version

Prepare for next release by making sure we notice that the API/ABI for
this library has changed.

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

4 months agoaltosui: Add imu and mag sensor values to plots
Keith Packard [Sat, 21 Dec 2013 03:40:31 +0000 (19:40 -0800)]
altosui: Add imu and mag sensor values to plots

Makes for a lot of potential graph elements.

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

4 months agoaltosuilib: Rearrange graph enable buttons
Keith Packard [Sat, 21 Dec 2013 03:39:40 +0000 (19:39 -0800)]
altosuilib: Rearrange graph enable buttons

Eliminate separate 'enable' radio button, provide for multiple columns

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

4 months agoaltoslib: Fetch 'orient' value from Mega Sensor packet
Keith Packard [Sat, 21 Dec 2013 03:38:29 +0000 (19:38 -0800)]
altoslib: Fetch 'orient' value from Mega Sensor packet

The mega sensor packet had a spare byte to hold the current
orientation value.

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

4 months agoaltoslib: Convert IMU and Mag sensor values to useful units
Keith Packard [Sat, 21 Dec 2013 03:37:08 +0000 (19:37 -0800)]
altoslib: Convert IMU and Mag sensor values to useful units

Convert from raw sensor values to metric units

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