fw/altos
6 years agoDocument the need for ~/altusmetrumllc/google-maps-api-key
Keith Packard [Wed, 28 May 2014 17:43:09 +0000 (10:43 -0700)]
Document the need for ~/altusmetrumllc/google-maps-api-key

Stick this in Releasing

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agojenkins.sh: make -j 4 can fail, fix for altosui-test
Tom Marble [Wed, 28 May 2014 19:08:02 +0000 (14:08 -0500)]
jenkins.sh: make -j 4 can fail, fix for altosui-test

6 years agofix for jenkins.sh
Tom Marble [Wed, 28 May 2014 17:50:42 +0000 (12:50 -0500)]
fix for jenkins.sh

6 years agoadd jenkins.sh
Tom Marble [Wed, 28 May 2014 17:38:36 +0000 (12:38 -0500)]
add jenkins.sh

6 years agoaltosuilib: Don't try to draw to destroyed map windows
Keith Packard [Wed, 28 May 2014 17:31:47 +0000 (10:31 -0700)]
altosuilib: Don't try to draw to destroyed map windows

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltosuilib: Publish AltosSiteMap.centre. Add prefetchMaps with old API
Keith Packard [Wed, 28 May 2014 17:27:52 +0000 (10:27 -0700)]
altosuilib: Publish AltosSiteMap.centre. Add prefetchMaps with old API

This gets altosui working again.

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltosuilib: Update map preloading UI to include zoom and maptypes
Keith Packard [Wed, 28 May 2014 17:16:38 +0000 (10:16 -0700)]
altosuilib: Update map preloading UI to include zoom and maptypes

This lets you specify precisely which maps to load.

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltosuilib: Remove debug printf in AltosSiteMapCache
Keith Packard [Wed, 28 May 2014 09:18:41 +0000 (02:18 -0700)]
altosuilib: Remove debug printf in AltosSiteMapCache

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltoslib: When log-format is missing, use product
Keith Packard [Wed, 28 May 2014 09:06:18 +0000 (02:06 -0700)]
altoslib: When log-format is missing, use product

log-format was added for 1.0; earlier log files don't include that,
but do say which product they're from.

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltosuilib: Add google maps API key, configured with -with-google-key
Keith Packard [Wed, 28 May 2014 07:42:24 +0000 (00:42 -0700)]
altosuilib: Add google maps API key, configured with -with-google-key

This places the actual key outside of the repository, allowing the
user to configure the name of the file containing the key. By default,
this pulls the key from $HOME/altusmetrumllc/google-maps-api-key.

With the key present, there are no longer any rate limits to loading
map data.

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltosuilib: Decompress map images asynchronously and in parallel
Keith Packard [Wed, 28 May 2014 03:34:29 +0000 (20:34 -0700)]
altosuilib: Decompress map images asynchronously and in parallel

This speeds up loading map images from disk quite a bit, and keeps the
UI responsive while that happens as well.

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltosuilib: Add distance measuring line to site map.
Keith Packard [Tue, 27 May 2014 22:39:13 +0000 (15:39 -0700)]
altosuilib: Add distance measuring line to site map.

Use any modifier or button other than the left one to draw a line on
the map. The length of the line is shown at the start of the line.

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltos: Fake flight code changes in kernel and stm
Keith Packard [Tue, 27 May 2014 18:05:02 +0000 (11:05 -0700)]
altos: Fake flight code changes in kernel and stm

Redirects data input from local sensors to USB sourced data, leaving
USB enabled when the computer goes into pad mode.

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltosuilib: Add multiple zoom levels and content types to map
Keith Packard [Tue, 27 May 2014 17:58:53 +0000 (10:58 -0700)]
altosuilib: Add multiple zoom levels and content types to map

Also changes the file format for hybrid, satellite and terrain maps to
jpg to save disk space.

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltos/test: Fix ADC structure for mega, use ao_config.h
Keith Packard [Mon, 26 May 2014 04:14:42 +0000 (21:14 -0700)]
altos/test: Fix ADC structure for mega, use ao_config.h

This switches from hand-coding the ao_config structure to using
ao_config.h and also updates the ADC structure for ao_flight_test_mega
to using the same one as telemega does natively

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltos: Move ao_config declarations to ao_config.h
Keith Packard [Mon, 26 May 2014 04:12:29 +0000 (21:12 -0700)]
altos: Move ao_config declarations to ao_config.h

No sense leaving these in ao.h, and it's nice to make that file smaller

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltos: Make MS5607 PROM a public variable
Keith Packard [Mon, 26 May 2014 04:11:23 +0000 (21:11 -0700)]
altos: Make MS5607 PROM a public variable

This will let the fake flight code update it as necessary, without
creating a new interface in ao_ms5607.c

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agomicropeak: Add -Xlint:unchecked to javac line
Keith Packard [Mon, 26 May 2014 04:08:44 +0000 (21:08 -0700)]
micropeak: Add -Xlint:unchecked to javac line

This shows missing parametric type errors

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltoslib/altosuilib: Change versions to altoslib:4, altosuilib:2
Keith Packard [Mon, 26 May 2014 04:01:38 +0000 (21:01 -0700)]
altoslib/altosuilib: Change versions to altoslib:4, altosuilib:2

API has changed for these libraries, time to bump the file versions

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoao-tools: Add cc_usb_write function
Keith Packard [Mon, 26 May 2014 03:58:24 +0000 (20:58 -0700)]
ao-tools: Add cc_usb_write function

This writes raw bytes to the USB port; useful for sending binary data
for flashing or the upcoming flight test stuff.

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltosui/altosuilib/altoslib: Move more stuff out of autosui. Reduce site map memory
Keith Packard [Mon, 26 May 2014 03:55:11 +0000 (20:55 -0700)]
altosui/altosuilib/altoslib: Move more stuff out of autosui. Reduce site map memory

Prepare to share with TeleGPS application.

This also has the changes to the site map tile which cache only a few
images and regenerate the flight path on the fly, saving piles of memory

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltosui/altosuilib: Cleanup -Xlint:unchecked warnings
Keith Packard [Mon, 26 May 2014 03:47:49 +0000 (20:47 -0700)]
altosui/altosuilib: Cleanup -Xlint:unchecked warnings

Add parametric types to avoid unchecked warnings.

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltoslib: Move CSV/KML output code to altoslib
Keith Packard [Fri, 23 May 2014 01:46:58 +0000 (18:46 -0700)]
altoslib: Move CSV/KML output code to altoslib

It's sharable, so share it

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltos: Add config values for tracker start motion limits
Keith Packard [Wed, 21 May 2014 21:02:35 +0000 (14:02 -0700)]
altos: Add config values for tracker start motion limits

TeleGPS switches from 'pad' to 'drogue' states after the device moves
a specified distance from the initial starting point. These values can
be configured, and this is the configuration for them.

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltos/test: Parse mega ground data. Fix pyro parsing
Keith Packard [Wed, 21 May 2014 21:00:05 +0000 (14:00 -0700)]
altos/test: Parse mega ground data. Fix pyro parsing

This gets ao_flight_test_mega working with eeprom files

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltos/test: Get APRS generation test working again
Keith Packard [Wed, 21 May 2014 20:58:54 +0000 (13:58 -0700)]
altos/test: Get APRS generation test working again

APRS now includes sat info, so we have to fake that up to generate an
APRS test file

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltos: Don't define ao_ignite_decivolt without igniters
Keith Packard [Wed, 21 May 2014 08:37:57 +0000 (01:37 -0700)]
altos: Don't define ao_ignite_decivolt without igniters

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltos: Expose ao_gps_set_rate from u-blox driver
Keith Packard [Wed, 21 May 2014 08:36:40 +0000 (01:36 -0700)]
altos: Expose ao_gps_set_rate from u-blox driver

This lets applications set the desired GPS update rate to reduce power usage

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltos: Fix cc115l debug build
Keith Packard [Wed, 21 May 2014 08:35:33 +0000 (01:35 -0700)]
altos: Fix cc115l debug build

New compiler warning flags and moving to the nxp require a few minor
changes in the code to make it work.

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltos: Allow APRS to send just battery voltage
Keith Packard [Wed, 21 May 2014 08:34:27 +0000 (01:34 -0700)]
altos: Allow APRS to send just battery voltage

Don't require apogee and main voltages as well

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltos/lpc: whitespace
Keith Packard [Wed, 21 May 2014 08:39:46 +0000 (01:39 -0700)]
altos/lpc: whitespace

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltos/lpc: adc code computes number of active ADC channels
Keith Packard [Wed, 21 May 2014 08:39:01 +0000 (01:39 -0700)]
altos/lpc: adc code computes number of active ADC channels

Don't require the application to provide AO_NUM_ADC when AO_ADC_NUM is
computed automatically.

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltos/stm: Make stm applications depend on ao_boot.h
Keith Packard [Wed, 21 May 2014 08:41:38 +0000 (01:41 -0700)]
altos/stm: Make stm applications depend on ao_boot.h

This should make sure they get recompiled when boot stuff changes.

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltosui: Remove another beep config debug printf
Keith Packard [Fri, 16 May 2014 06:00:12 +0000 (00:00 -0600)]
altosui: Remove another beep config debug printf

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltosui: Remove debug printf about beep config
Keith Packard [Fri, 16 May 2014 05:57:50 +0000 (23:57 -0600)]
altosui: Remove debug printf about beep config

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltos: stm and lpc ao_boot.h were identical. move to kernel.
Keith Packard [Fri, 16 May 2014 05:46:41 +0000 (23:46 -0600)]
altos: stm and lpc ao_boot.h were identical. move to kernel.

These two files were absolutely identical, so share them by moving
under kernel instead.x

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltos: Use explicit boot loader signal in ao_boot_reboot
Keith Packard [Fri, 16 May 2014 05:34:17 +0000 (23:34 -0600)]
altos: Use explicit boot loader signal in ao_boot_reboot

Instead of just "knowing" that ao_boot_loader will be passed zero when
the application wants to get back to the boot loader, explicitly
define the values so that both sides always agree.

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agodoc: Document the Apogee Lockout setting
Keith Packard [Fri, 16 May 2014 05:10:54 +0000 (23:10 -0600)]
doc: Document the Apogee Lockout setting

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoinclude EasyMega Makefiles
Bdale Garbee [Thu, 15 May 2014 23:20:39 +0000 (17:20 -0600)]
include EasyMega Makefiles

6 years agoworking?
Bdale Garbee [Thu, 15 May 2014 23:19:08 +0000 (17:19 -0600)]
working?

6 years agolose the (old) easymega-v1.0 directory in favor of my fresher 0.1
Bdale Garbee [Thu, 15 May 2014 22:23:17 +0000 (16:23 -0600)]
lose the (old) easymega-v1.0 directory in favor of my fresher 0.1

6 years agoaltos: Make quadrature debounce per-pin rather than per-device
Keith Packard [Thu, 15 May 2014 15:31:24 +0000 (09:31 -0600)]
altos: Make quadrature debounce per-pin rather than per-device

Debouncing per-pin means we don't lose transitions, which makes
counting a lot more precise.

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltos/telemini-v2.0: Enable beep frequency configuration
Keith Packard [Thu, 15 May 2014 15:30:32 +0000 (09:30 -0600)]
altos/telemini-v2.0: Enable beep frequency configuration

Now that there's space for this, add it in.

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltos/telemini-v2.0: Remove old baro->alt conversion table
Keith Packard [Thu, 15 May 2014 15:29:52 +0000 (09:29 -0600)]
altos/telemini-v2.0: Remove old baro->alt conversion table

TeleMini doesn't have two baro sensors...

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltos/cc1111: Switch P1_0 from a green LED to USB pullup
Keith Packard [Thu, 15 May 2014 15:28:30 +0000 (09:28 -0600)]
altos/cc1111: Switch P1_0 from a green LED to USB pullup

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltos/cc1111: Add support for CPU-driven USB pullup
Keith Packard [Thu, 15 May 2014 15:27:34 +0000 (09:27 -0600)]
altos/cc1111: Add support for CPU-driven USB pullup

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltos/cc1111: Errata fix isn't needed for discontinued products
Keith Packard [Wed, 14 May 2014 05:46:19 +0000 (22:46 -0700)]
altos/cc1111: Errata fix isn't needed for discontinued products

And, doesn't fit in memory for some of them, so don't compile it.

Signed-off-by: Keith Packard <keithp@keithp.com>
6 years agoaltos/cc1111: Wait for xtal to be stable
Keith Packard [Wed, 14 May 2014 00:30:47 +0000 (17:30 -0700)]
altos/cc1111: Wait for xtal to be stable

Errata http://www.ti.com/lit/er/swrz022c/swrz022c.pdf says that the
xtal is stable bit is bogus and that you need to just delay for a while.

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

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

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

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

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

6 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

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

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

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