fw/altos
7 years agoMerge remote-tracking branch 'origin/master'
Keith Packard [Tue, 13 May 2014 06:21:55 +0000 (23:21 -0700)]
Merge remote-tracking branch 'origin/master'

7 years agoao-tools/ao-usbload: Check image flash usage against device flash availability
Keith Packard [Tue, 13 May 2014 06:20:08 +0000 (23:20 -0700)]
ao-tools/ao-usbload: Check image flash usage against device flash availability

For devices which report the range of valid flash addresses from their
boot loader, check the loaded image to make sure it fits within that range.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos/flash-loader: Check memory addresses against flash space
Keith Packard [Tue, 13 May 2014 06:18:41 +0000 (23:18 -0700)]
altos/flash-loader: Check memory addresses against flash space

This validates memory read/write requests to make sure they are within
the available flash memory space.

This also reports the flash base and bounds addresses in the 'version'
command so that the loader can validate the image before attempting to
write it.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos/stm: Use #define'd constants for GPIO register addresses
Keith Packard [Tue, 13 May 2014 05:56:38 +0000 (22:56 -0700)]
altos/stm: Use #define'd constants for GPIO register addresses

This lets the compiler short-circuit the tests in ao_enable_gpio and
ao_disable_gpio to save a bit of code space and time.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos/stm: Figure out available flash space based on chip id registers
Keith Packard [Tue, 13 May 2014 05:55:38 +0000 (22:55 -0700)]
altos/stm: Figure out available flash space based on chip id registers

Look at the flash size and the device id registers to figure out how
much flash is available.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos/stm: White space fix in ao_boot_pin.c
Keith Packard [Tue, 13 May 2014 05:54:35 +0000 (22:54 -0700)]
altos/stm: White space fix in ao_boot_pin.c

7 years agoaltos/stm: Use flash address of boot loader instead of 0x0
Keith Packard [Tue, 13 May 2014 05:53:07 +0000 (22:53 -0700)]
altos/stm: Use flash address of boot loader instead of 0x0

Flash is at 0x08000000, but when the chip boots, it can be at 0x0 as
well. Use the 0x08000000 address when rebooting to flash

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Assume all LPC products will have 32KB of flash
Keith Packard [Tue, 13 May 2014 05:51:50 +0000 (22:51 -0700)]
altos: Assume all LPC products will have 32KB of flash

If we ever use something smaller than this, we'll need to figure out
how to tell how much memory the device has.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Report amount of program space available in the version command
Keith Packard [Tue, 13 May 2014 05:51:16 +0000 (22:51 -0700)]
altos: Report amount of program space available in the version command

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Add LED test command to pca9922 driver
Keith Packard [Tue, 13 May 2014 05:50:41 +0000 (22:50 -0700)]
altos: Add LED test command to pca9922 driver

This lets you control the LEDs from the command line to test things.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoao-bringup: Use official binaries for EasyMini turnon
Keith Packard [Tue, 13 May 2014 05:49:39 +0000 (22:49 -0700)]
ao-bringup: Use official binaries for EasyMini turnon

Don't use locally built ones, use the official ones found in
~/altusmetrumllc/Binaries to ensure that all devices are shipped with
known firmware.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoao-bringup: test-baro should accept altitudes a bit below sea level
Keith Packard [Tue, 13 May 2014 05:48:45 +0000 (22:48 -0700)]
ao-bringup: test-baro should accept altitudes a bit below sea level

Testing baro sensors on a particularly high pressure day at Keith's
house yields altitudes down to -20m or so.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoatosui: Hide Callsign and RSSI tabs for devices without a radio
Keith Packard [Tue, 13 May 2014 05:47:55 +0000 (22:47 -0700)]
atosui: Hide Callsign and RSSI tabs for devices without a radio

When doing Monitor Idle with EasyMini, it's nice to not put fields on
the screen which won't ever have useful data in them.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoupdate TeleMega turn-on script and Releasing for new stable firmware home
Bdale Garbee [Mon, 12 May 2014 23:31:14 +0000 (17:31 -0600)]
update TeleMega turn-on script and Releasing for new stable firmware home

7 years agofix copyright year
Bdale Garbee [Fri, 9 May 2014 18:30:25 +0000 (12:30 -0600)]
fix copyright year

7 years agoaltos: Simplify quadrature tracking
Keith Packard [Fri, 9 May 2014 07:05:39 +0000 (00:05 -0700)]
altos: Simplify quadrature tracking

Set the timer to 200Hz for a 5ms debounce interval. Then, simply look
for transitions ending in both bits in the encoder being off, which
indicates the the encoder is resting in a detent. If bit '2' is
turning off, the encoder was rotated clockwise, otherwise the encoder
was rotated counter clockwise.

This is a lot more reliable, although still not perfect.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Clean up trailing whitespace in ao_pad.c
Keith Packard [Tue, 6 May 2014 06:46:34 +0000 (23:46 -0700)]
altos: Clean up trailing whitespace in ao_pad.c

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Fix byte offsets in the mega AO_LOG_FLIGHT packets
Keith Packard [Tue, 6 May 2014 06:45:30 +0000 (23:45 -0700)]
altos: Fix byte offsets in the mega AO_LOG_FLIGHT packets

Just comments, but even those should be correct

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: ublox driver always offers course data when it has a fix
Keith Packard [Tue, 6 May 2014 06:43:44 +0000 (23:43 -0700)]
altos: ublox driver always offers course data when it has a fix

Set the AO_GPS_COURSE_VALID bit to signal that this part of the GPS
data is valid.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Add GPS course, ground speed and climb rate to graphs
Keith Packard [Tue, 6 May 2014 06:41:43 +0000 (23:41 -0700)]
altosui: Add GPS course, ground speed and climb rate to graphs

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltoslib: Parse remaining mega AO_LOG_FLIGNT and AO_LOG_GPS_TIME fields
Keith Packard [Tue, 6 May 2014 06:38:44 +0000 (23:38 -0700)]
altoslib: Parse remaining mega AO_LOG_FLIGNT and AO_LOG_GPS_TIME fields

GPS fields past 'day' were not getting parsed. Ground values for the
IMU were not getting parsed, but a false 'temperature' value was being read.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltoslib: Add a comment to remind us to fix the IMU code to deal with calibration
Keith Packard [Tue, 6 May 2014 06:38:05 +0000 (23:38 -0700)]
altoslib: Add a comment to remind us to fix the IMU code to deal with calibration

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: 8051 64 * 16 multiply function was broken for negative 64-bit
Keith Packard [Sat, 3 May 2014 17:58:31 +0000 (10:58 -0700)]
altos: 8051 64 * 16 multiply function was broken for negative 64-bit

It was jumping around the actual multiply when the 64-bit argument was negative.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agorelay control implemented, this project is now complete
Bdale Garbee [Thu, 8 May 2014 22:24:26 +0000 (16:24 -0600)]
relay control implemented, this project is now complete

7 years agofirst cut of usbrelay-v0.1 support .. LEDs wiggle, not switching relay yet
Bdale Garbee [Thu, 8 May 2014 22:09:11 +0000 (16:09 -0600)]
first cut of usbrelay-v0.1 support .. LEDs wiggle, not switching relay yet

7 years agoaltosui: Add configuration UI for beeper tone
Keith Packard [Fri, 2 May 2014 20:53:08 +0000 (13:53 -0700)]
altosui: Add configuration UI for beeper tone

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Add configurable beep tone
Keith Packard [Fri, 2 May 2014 19:26:07 +0000 (12:26 -0700)]
altos: Add configurable beep tone

This lets you directly set the mid-range beep tone; the high and low
tones remain set off of that in the same ratio as before.

Note that none of the cc1111 products get this feature as they don't
have enough flash space anymore...

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: For telelco discovery packets, retry 5 times with shorter timeout
Keith Packard [Thu, 1 May 2014 05:14:37 +0000 (22:14 -0700)]
altos: For telelco discovery packets, retry 5 times with shorter timeout

A timeout of 10ms is more than enough to receive a query packet, but
if we miss it during device discovery, it's a pain, so retry 5 times
to make sure we find everyone.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoao-tools: Clean up ao-sym structure an initializers
Keith Packard [Thu, 1 May 2014 05:13:44 +0000 (22:13 -0700)]
ao-tools: Clean up ao-sym structure an initializers

Remove unused 'default_addr' field. Use named initializers when
setting up the struct.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoao-load: Make ao_sym static to avoid collision with ao-editaltos
Keith Packard [Thu, 1 May 2014 05:12:30 +0000 (22:12 -0700)]
ao-load: Make ao_sym static to avoid collision with ao-editaltos

ao-load doesn't use ao-editaltos at this point, but does share the
same name for the symbol table. To make the linker happier, make the
ao-load version static.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoao-telem: Dump orientation field from TeleMega sensor telemetry packet
Keith Packard [Thu, 1 May 2014 05:11:39 +0000 (22:11 -0700)]
ao-telem: Dump orientation field from TeleMega sensor telemetry packet

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Mark TeleMega additional pyro ignitor fired points in graphs
Keith Packard [Thu, 1 May 2014 05:10:29 +0000 (22:10 -0700)]
altosui: Mark TeleMega additional pyro ignitor fired points in graphs

Add markers to indicate when each additional pyro channel fires

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltoslib: Track pyro firing state when reading mega eeprom files
Keith Packard [Thu, 1 May 2014 04:30:46 +0000 (21:30 -0700)]
altoslib: Track pyro firing state when reading mega eeprom files

TeleMega records whether each pyro has been fired in the eeprom file;
track that in the AltosState record.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Add extra ignitors to graphable objects
Keith Packard [Wed, 30 Apr 2014 02:04:30 +0000 (19:04 -0700)]
altosui: Add extra ignitors to graphable objects

List all of the available extra ignitors as possible things to graph.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agougly hack (just make sleep longer) to work around ttyACM* discovery issue
Bdale Garbee [Sun, 13 Apr 2014 14:58:36 +0000 (08:58 -0600)]
ugly hack (just make sleep longer) to work around ttyACM* discovery issue

7 years agoaltos: Switch beeping to farnsworth spacing
Keith Packard [Sun, 13 Apr 2014 00:46:34 +0000 (17:46 -0700)]
altos: Switch beeping to farnsworth spacing

Use 17wpm/12wpm farnsworth spacing for the state reports. Leave the
numeric reports running slowly as those require counting.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosuilib: Make lines in graphs 2 units wide
Keith Packard [Sun, 13 Apr 2014 00:45:38 +0000 (17:45 -0700)]
altosuilib: Make lines in graphs 2 units wide

This makes the graphs a lot easier to read.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltoslib/altosui/altosuilib/libaltos: Remove trailing whitespace
Keith Packard [Fri, 11 Apr 2014 23:40:06 +0000 (16:40 -0700)]
altoslib/altosui/altosuilib/libaltos: Remove trailing whitespace

Just cleaning up the source code.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Add 'microwater' product
Keith Packard [Fri, 11 Apr 2014 23:31:32 +0000 (16:31 -0700)]
altos: Add 'microwater' product

This is a custom firmware spin for micropeak designed for use with
water rockets that sets the boost detect altitude to 10m instead of 30m.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Disable flight log configuration while flights are stored
Keith Packard [Mon, 7 Apr 2014 06:46:48 +0000 (23:46 -0700)]
altosui: Disable flight log configuration while flights are stored

The log code won't let you resize the maximum flight log while there
is still data on the flight computer; the code to figure that out in
the UI was busted, leaving users confused about why it wasn't working.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Fix nanopeak compile
Keith Packard [Mon, 7 Apr 2014 05:27:37 +0000 (22:27 -0700)]
altos: Fix nanopeak compile

Nanopeak uses port B bit 3 for the LED instead of bit 4. Fix the async
code to support arbitrary bits for the serial LED.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Provide stable binaries for MicroPeak
Keith Packard [Mon, 7 Apr 2014 03:14:49 +0000 (20:14 -0700)]
altos: Provide stable binaries for MicroPeak

Publish MicroPeak .hex file to LLC repo and install it from there,
rather than rebuilding it locally. This ensures that the installed
bits don't depend on local configuration of any kind.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Replace C code attiny async output with inline asm
Keith Packard [Mon, 7 Apr 2014 02:48:07 +0000 (19:48 -0700)]
altos: Replace C code attiny async output with inline asm

Using inline asm instead of C ensures that compiler changes will not
affect the timing of the serial data.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Build TeleBalloon v2.0 by default
Keith Packard [Sun, 6 Apr 2014 01:17:17 +0000 (18:17 -0700)]
altos: Build TeleBalloon v2.0 by default

We're supporting this now, we might as well build it.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoao-bringup: Split out easymini test into separate script
Keith Packard [Sun, 6 Apr 2014 01:16:21 +0000 (18:16 -0700)]
ao-bringup: Split out easymini test into separate script

This lets you run the easy mini testing code without also flashing the device.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Add ignitor tab for TeleMega extra ignitors
Keith Packard [Sun, 6 Apr 2014 01:14:35 +0000 (18:14 -0700)]
altosui: Add ignitor tab for TeleMega extra ignitors

Show the current state of the additional ignitors in another tab;
there's not really room in the 'Pad' tab.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agodoc: Document new voltage beeping at startup time
Keith Packard [Sat, 5 Apr 2014 07:28:13 +0000 (00:28 -0700)]
doc: Document new voltage beeping at startup time

7 years agoBump version to 1.3.3
Keith Packard [Sat, 5 Apr 2014 07:20:22 +0000 (00:20 -0700)]
Bump version to 1.3.3

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Report battery voltage instead of S at startup
Keith Packard [Sat, 5 Apr 2014 07:18:57 +0000 (00:18 -0700)]
altos: Report battery voltage instead of S at startup

This works on everything with a beeper except TeleMetrum v1.0 which
just doesn't have enough flash space for the code.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agodoc: Outline files are now generated, so don't put them in git
Keith Packard [Sat, 5 Apr 2014 06:40:22 +0000 (23:40 -0700)]
doc: Outline files are now generated, so don't put them in git

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoao-tools: Wait for device to become ready instead of failing
Keith Packard [Sat, 5 Apr 2014 06:38:40 +0000 (23:38 -0700)]
ao-tools: Wait for device to become ready instead of failing

For some reason, USB devices take 'a while' to become usable; instead
of bailing immediately, sit around waiting to see if the device
becomes usable if we get an EBUSY or EACCES error.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoao-tools: Use 'program' command in ao-flash-lpc instead of 'flash'
Keith Packard [Sat, 5 Apr 2014 06:37:15 +0000 (23:37 -0700)]
ao-tools: Use 'program' command in ao-flash-lpc instead of 'flash'

The program meta-command is supposed to do the whole thing, and seems
more reliable in actually getting what we want flashed to the board.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoao-bringup: Get turnon_telemini working
Keith Packard [Sat, 5 Apr 2014 06:36:34 +0000 (23:36 -0700)]
ao-bringup: Get turnon_telemini working

This script now does complete testing of the board

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Rename 'core' to 'kernel'
Keith Packard [Sat, 5 Apr 2014 06:34:48 +0000 (23:34 -0700)]
altos: Rename 'core' to 'kernel'

core remains a bad name to use -- dirvish skips files (and
directories, it seems) with that name.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltoslib: Missed a couple of easy mini voltage API changes
Keith Packard [Thu, 3 Apr 2014 07:10:19 +0000 (00:10 -0700)]
altoslib: Missed a couple of easy mini voltage API changes

Oh, and Tm was using Em conversions (which is almost right, except Tm
doesn't have the history)

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoAdd easymini turnon script and helpers
Keith Packard [Thu, 3 Apr 2014 06:35:36 +0000 (23:35 -0700)]
Add easymini turnon script and helpers

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltoslib: Fix EasyMini voltage computations
Keith Packard [Thu, 3 Apr 2014 05:04:18 +0000 (22:04 -0700)]
altoslib: Fix EasyMini voltage computations

Early Em prototypes had a 3.0V regulator.
Early v1.0 boards measured power past the blocking diode.

Deal with both conditions to try and report more accurate voltages for
EasyMini data.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltoslib: Ignore speed/accel after boost when finding maxima
Keith Packard [Thu, 3 Apr 2014 03:36:26 +0000 (20:36 -0700)]
altoslib: Ignore speed/accel after boost when finding maxima

Large spikes in acceleration often occur with ejection charges, which
can cause bogus acceleration and speed data to be seen. Ignore those
for the purpose of computing the maximum values of each.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: HAS_LED is useless; remove it
Keith Packard [Sat, 29 Mar 2014 06:33:25 +0000 (23:33 -0700)]
altos: HAS_LED is useless; remove it

ao_flight was trying to decide whether to turn off the red LED by
checking whether HAS_LED was defined. And yet, none of the flight
firmware defines that anymore, except for easymini which defines it to
zero.

Remove all uses and defines of this value, substituting AO_LED_RED in
ao_flight.c, which has to be defined for the ao_led_off call to work.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoAdd easymega firmware
Keith Packard [Mon, 17 Mar 2014 01:12:33 +0000 (18:12 -0700)]
Add easymega firmware

A trimmed down TeleMega build with no radio or GPS, along with pin
changes necessary for the device.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Hide Tilt Angle values when not available
Keith Packard [Tue, 11 Mar 2014 05:55:45 +0000 (22:55 -0700)]
altosui: Hide Tilt Angle values when not available

In the Ascent table, make sure the tilt angle fields are hidden when
they are set to MISSING.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Another missing usbtrng file
Keith Packard [Mon, 10 Mar 2014 04:10:10 +0000 (21:10 -0700)]
altos: Another missing usbtrng file

7 years agoaltos: Missing ao_pins files for usbtrng
Keith Packard [Mon, 10 Mar 2014 04:08:25 +0000 (21:08 -0700)]
altos: Missing ao_pins files for usbtrng

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Fix LPC LED driver
Keith Packard [Mon, 10 Mar 2014 03:59:43 +0000 (20:59 -0700)]
altos: Fix LPC LED driver

Was using wrong types

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: fix building LPC serial support for STDIO
Keith Packard [Mon, 10 Mar 2014 03:58:36 +0000 (20:58 -0700)]
altos: fix building LPC serial support for STDIO

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Don't require projects to define PACKET_HAS_SLAVE
Keith Packard [Mon, 10 Mar 2014 03:57:31 +0000 (20:57 -0700)]
altos: Don't require projects to define PACKET_HAS_SLAVE

Really, most don't need it, and whinging about not having it defined
isn't useful.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoAdd USB True Random Number Generator product
Keith Packard [Sun, 9 Mar 2014 05:39:33 +0000 (21:39 -0800)]
Add USB True Random Number Generator product

Just basic device support

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoRe-add LCD bits to stm-demo
Keith Packard [Sun, 9 Mar 2014 00:25:33 +0000 (16:25 -0800)]
Re-add LCD bits to stm-demo

7 years agoAdd flash loader for stm-demo board
Keith Packard [Sun, 9 Mar 2014 00:25:10 +0000 (16:25 -0800)]
Add flash loader for stm-demo board

7 years agodoc: Add separate outline pdf generation
Keith Packard [Sat, 8 Mar 2014 05:27:26 +0000 (21:27 -0800)]
doc: Add separate outline pdf generation

This generates one-page pdf files that contain just the outline of
each product.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoInstall .desktopfile as _SCRIPTS so they are left executable
Keith Packard [Sat, 1 Mar 2014 07:04:54 +0000 (23:04 -0800)]
Install .desktopfile as _SCRIPTS so they are left executable

.desktop files should be marked executable so that the desktop
environment knows they are correct.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltosui: Retry device enumeration after rebooting for self flash
Keith Packard [Sat, 1 Mar 2014 05:16:57 +0000 (21:16 -0800)]
altosui: Retry device enumeration after rebooting for self flash

Windows takes 'a while' to include the rebooted device in the list of
available devices, so try a few times with a 100ms delay so that we
can avoid asking the user to select from an empty list.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoMark development sequence to 1.3.3 by bumping version to 1.3.2.1
Keith Packard [Sat, 1 Mar 2014 05:16:36 +0000 (21:16 -0800)]
Mark development sequence to 1.3.3 by bumping version to 1.3.2.1

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agolibaltos: Link so with -znoexecstack flag
Keith Packard [Mon, 24 Feb 2014 01:42:08 +0000 (17:42 -0800)]
libaltos: Link so with -znoexecstack flag

This marks the library as not requiring an executable stack, which
openjdk prefers

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Thu, 20 Feb 2014 20:23:52 +0000 (13:23 -0700)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

7 years agoupdate turnon scripts to store cal values
Bdale Garbee [Thu, 20 Feb 2014 20:23:32 +0000 (13:23 -0700)]
update turnon scripts to store cal values

7 years agotypo fixes from Matt Kraai
Bdale Garbee [Thu, 20 Feb 2014 20:23:20 +0000 (13:23 -0700)]
typo fixes from Matt Kraai

7 years agoaltos: Create balloon-specific load for TMv2 hardware
Keith Packard [Tue, 18 Feb 2014 17:47:51 +0000 (09:47 -0800)]
altos: Create balloon-specific load for TMv2 hardware

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Make balloon code run again
Keith Packard [Tue, 18 Feb 2014 17:46:17 +0000 (09:46 -0800)]
altos: Make balloon code run again

This fixes the balloon code so that it works with recent altos bits

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Set reasonable accel values when !HAS_ACCEL
Keith Packard [Tue, 18 Feb 2014 17:45:41 +0000 (09:45 -0800)]
altos: Set reasonable accel values when !HAS_ACCEL

This lets us use telemetrum log and telemetry formats for balloons

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Expose ao_usb_running globally
Keith Packard [Tue, 18 Feb 2014 17:44:52 +0000 (09:44 -0800)]
altos: Expose ao_usb_running globally

This lets other bits of the code know when USB has been connected.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoaltos: Move balloon flight code to core
Keith Packard [Tue, 18 Feb 2014 17:43:43 +0000 (09:43 -0800)]
altos: Move balloon flight code to core

This lets us create more than one balloon product

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agodoc: Need to publish .svg files as well
Keith Packard [Tue, 18 Feb 2014 05:30:28 +0000 (21:30 -0800)]
doc: Need to publish .svg files as well

The drill templates are all .svg files that are referenced by the
generated html.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoRe-create drill templates
Keith Packard [Tue, 18 Feb 2014 05:27:57 +0000 (21:27 -0800)]
Re-create drill templates

Using inkscape, the drill templates weren't getting printed
correctly. Switching to hand-generated svg fixes that.

The .xsl file is also fixed to really encourage the images to be
printed at exactly 100%.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agodeliver images used in MicroPeak manual to web server, too
Bdale Garbee [Mon, 17 Feb 2014 07:15:58 +0000 (00:15 -0700)]
deliver images used in MicroPeak manual to web server, too

7 years agoupdate copyright year assertion in MicroPeak manual, remember during releases
Bdale Garbee [Mon, 17 Feb 2014 07:10:05 +0000 (00:10 -0700)]
update copyright year assertion in MicroPeak manual, remember during releases

7 years agoMark .desktop files as executable
Keith Packard [Mon, 17 Feb 2014 02:01:10 +0000 (18:01 -0800)]
Mark .desktop files as executable

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agomicropeak: Construct linux install script
Keith Packard [Sun, 16 Feb 2014 23:53:50 +0000 (15:53 -0800)]
micropeak: Construct linux install script

Uses the same script as altosui, just edits the final path name

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoMove .desktop and icon management out of debian dir
Keith Packard [Sun, 16 Feb 2014 23:17:40 +0000 (15:17 -0800)]
Move .desktop and icon management out of debian dir

This constructs a .desktop file from a template and installs it, along
with suitable .svg icons, during the normal build process

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years agoPut altusmetrum.svg and micropeak.svg in icon directory
Keith Packard [Sun, 16 Feb 2014 22:57:38 +0000 (14:57 -0800)]
Put altusmetrum.svg and micropeak.svg in icon directory

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, 16 Feb 2014 22:53:35 +0000 (15:53 -0700)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

7 years agouse svg in the .desktop file
Bdale Garbee [Sun, 16 Feb 2014 22:53:22 +0000 (15:53 -0700)]
use svg in the .desktop file

7 years agohave the cal-freq script save cal values to a file
Bdale Garbee [Sun, 16 Feb 2014 22:51:32 +0000 (15:51 -0700)]
have the cal-freq script save cal values to a file

7 years agoAdd linux installer script
Keith Packard [Sun, 16 Feb 2014 21:01:29 +0000 (13:01 -0800)]
Add linux installer script

Create a linux installer shell script that unpacks the archive in a
sensible place and adds a .desktop file to the environment

Signed-off-by: Keith Packard <keithp@keithp.com>
7 years 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

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