fw/altos
11 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Tue, 9 Apr 2013 00:02:37 +0000 (18:02 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

11 years agoaltos: Create telebt-v1.0 product. Remove old telebt products
Keith Packard [Mon, 8 Apr 2013 23:48:40 +0000 (16:48 -0700)]
altos: Create telebt-v1.0 product. Remove old telebt products

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Create telebt-v1.0 product. Remove old telebt products
Keith Packard [Mon, 8 Apr 2013 23:48:40 +0000 (16:48 -0700)]
altos: Create telebt-v1.0 product. Remove old telebt products

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Try RDF mode for TX calibration
Keith Packard [Sun, 7 Apr 2013 06:48:36 +0000 (23:48 -0700)]
altos: Try RDF mode for TX calibration

Trying to get the radio to stop modulating the carrier when
calibrating the radio, we'll try RDF mode which says no preamble or
sync data. This might shift the frequency though?

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Graph TeleMini flights without crashing
Keith Packard [Wed, 3 Apr 2013 00:44:06 +0000 (17:44 -0700)]
altosui: Graph TeleMini flights without crashing

Adding maps to the graph UI failed to check for missing GPS data in a
couple of places causing crashes when fed a TeleMini file.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Display current GPS in 'pad' tab for 'startup' staten
Keith Packard [Wed, 3 Apr 2013 00:29:40 +0000 (17:29 -0700)]
altosui: Display current GPS in 'pad' tab for 'startup' staten

This is the state for telegps, so just display the current GPS info as
we don't know where it started at.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Hide flight-related tabs for telegps
Keith Packard [Tue, 2 Apr 2013 23:48:05 +0000 (16:48 -0700)]
altosui: Hide flight-related tabs for telegps

Products without a flight state don't need ascent/descent/landed tabs.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Don't display missing sensor data
Keith Packard [Tue, 2 Apr 2013 23:47:07 +0000 (16:47 -0700)]
altosui: Don't display missing sensor data

For devices without sensors, don't display temperature, barometric and
accelerometer-derived values.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltoslib: Make any incoming telem packet update the RSSI value
Keith Packard [Tue, 2 Apr 2013 23:44:58 +0000 (16:44 -0700)]
altoslib: Make any incoming telem packet update the RSSI value

Every packet has RSSI info, so use the latest one available. This
makes telegps RSSI available as it never sends sensor packets (having
no sensors).

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoSet telegps USB id to 0025
Keith Packard [Tue, 2 Apr 2013 23:43:53 +0000 (16:43 -0700)]
Set telegps USB id to 0025

It was accidentally using the same ID as megadongle...

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Shorten SD initialization timeouts.
Keith Packard [Tue, 2 Apr 2013 23:41:29 +0000 (16:41 -0700)]
altos: Shorten SD initialization timeouts.

This makes failure when no card is present much quicker.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Horrible kludge -- disable radio while talking with SD card
Keith Packard [Mon, 1 Apr 2013 09:39:35 +0000 (02:39 -0700)]
altos: Horrible kludge -- disable radio while talking with SD card

The SD card really doesn't like the RFI generated by our enormous
radio, so just lock the radio out while working with the card.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Add defines for the specific pins used for telegps SPI
Keith Packard [Mon, 1 Apr 2013 09:10:14 +0000 (02:10 -0700)]
altos: Add defines for the specific pins used for telegps SPI

These aren't needed at this point, but who knows?

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Retry SD card I/O. Use time for timeouts instead of counts
Keith Packard [Mon, 1 Apr 2013 09:08:18 +0000 (02:08 -0700)]
altos: Retry SD card I/O. Use time for timeouts instead of counts

Sometimes I/O operations may fail; give the card a chance and retry
the operation in case it works the next time.

Replace the loop counts with loops that check the clock so that
they'll have consistent timeouts even if the CPU or SPI speed changes.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Provide build hooks for sampling profiler in telegps
Keith Packard [Mon, 1 Apr 2013 09:07:06 +0000 (02:07 -0700)]
altos: Provide build hooks for sampling profiler in telegps

Might prove useful if the CPU is ever doing anything?

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Add a FAT test that re-writes the same file multiple times
Keith Packard [Mon, 1 Apr 2013 09:06:03 +0000 (02:06 -0700)]
altos: Add a FAT test that re-writes the same file multiple times

This caught a bunch of FAT cluster chain allocation bugs.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Support open on multiple simultaneous FAT files
Keith Packard [Mon, 1 Apr 2013 09:03:57 +0000 (02:03 -0700)]
altos: Support open on multiple simultaneous FAT files

Need to be able to see the contents of a log file, even if the logger
is running.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Make sure FAT cluster allocation works for size zero files
Keith Packard [Mon, 1 Apr 2013 09:02:14 +0000 (02:02 -0700)]
altos: Make sure FAT cluster allocation works for size zero files

There were some rounding errors mis-computing the number of clusters
needed, and the logic to figure out how to re-connect a chain was broken.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: let FAT tracing work in ao_fat_test as needed
Keith Packard [Mon, 1 Apr 2013 09:00:21 +0000 (02:00 -0700)]
altos: let FAT tracing work in ao_fat_test as needed

This allows the FAT DBG hooks to be enabled even if some other module
turned DBG off.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Flush the on-board mega log after every sample interval.
Keith Packard [Mon, 1 Apr 2013 08:58:37 +0000 (01:58 -0700)]
altos: Flush the on-board mega log after every sample interval.

SPI flash parts don't need flushing, but the SD card does. Make sure
the SD card contents are sane after every logging interval has passed
by flushing all dirty blocks to the device.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Create the log file if it doesn't already exist
Keith Packard [Sun, 31 Mar 2013 23:11:27 +0000 (16:11 -0700)]
altos: Create the log file if it doesn't already exist

open will return failure unless the file already exists.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Make ao_fat_readdir return real error values instead of 1/0
Keith Packard [Sun, 31 Mar 2013 23:10:33 +0000 (16:10 -0700)]
altos: Make ao_fat_readdir return real error values instead of 1/0

This way, we can distinguish between 'something bad happened' and
'you're at the end of the directory'.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Increase SD card timeout at startup time
Keith Packard [Sun, 31 Mar 2013 20:55:16 +0000 (13:55 -0700)]
altos: Increase SD card timeout at startup time

Sometimes the SD card takes 'a while' to go into idle mode at first
power up. Just hang around waiting for a long time.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Fix command-line FAT filename parsing
Keith Packard [Sun, 31 Mar 2013 19:46:41 +0000 (12:46 -0700)]
altos: Fix command-line FAT filename parsing

Pad extension with spaces

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoao-tools/ao-stmload: Be smarter about ELF parsing. Retry open on failure.
Keith Packard [Sat, 23 Mar 2013 09:10:38 +0000 (02:10 -0700)]
ao-tools/ao-stmload: Be smarter about ELF parsing. Retry open on failure.

Figuring out what goes where is tricky; turns out we want to pull all
of the sections that map inside any program area that is supposed to
be loaded from the file.

So, we walk the program headers, then walk all of the section headers
looking for those that suck data from the same portion of the
file. Compute where in ROM each relevant section goes and build a full
ROM image in memory using that.

This patch also adds code to close and re-open the device if the first
open failed to do what we want. Much nicer to have the computer figure
out when the open succeeded rather than having people re-run the app.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Unmount file system after each testing pass in ao_fat_test
Keith Packard [Sun, 31 Mar 2013 19:39:32 +0000 (12:39 -0700)]
altos: Unmount file system after each testing pass in ao_fat_test

Otherwise, we use stale data and 'bad things' happen.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Don't add fat commands when building ao_fat_test
Keith Packard [Sun, 31 Mar 2013 19:29:37 +0000 (12:29 -0700)]
altos: Don't add fat commands when building ao_fat_test

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos/stm: Always check for idle IN buffer before sending
Keith Packard [Sun, 24 Mar 2013 22:04:57 +0000 (15:04 -0700)]
altos/stm: Always check for idle IN buffer before sending

Unlike the AVR and CC1111 USB drivers, the STM usb driver queues IN
bytes in a local buffer instead of in the driver; this means that the
driver is queuing bytes while the previous IN packet is queued for the
host, which allows for overlapping execution.

It also means that when the local buffer is full, we must check to see
if the host has picked up the previous IN packet before trying to
queue another IN packet for transmission. This is done by always
waiting for the IN buffer to be ready before sending data.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos/stm: Add debugging mechanism to STM USB driver
Keith Packard [Sun, 24 Mar 2013 22:03:59 +0000 (15:03 -0700)]
altos/stm: Add debugging mechanism to STM USB driver

This adds a pile of debugging hooks to the USB driver to try and
isolate various lockup-related issues. It's all disabled by default,
of course.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Do not release interrupts from any pollchar function
Keith Packard [Sun, 24 Mar 2013 22:00:20 +0000 (15:00 -0700)]
altos: Do not release interrupts from any pollchar function

getchar relies on interrupts being blocked across the pollchar calls
and into the sleep call or it may go to sleep with data pending.

This prefixes all pollchar functions with _ to indicate that they are
to be called with interrupts blocked and eliminates all interrupt
manipulation calls from within the pollchar functions.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Add sdcard read/write tracing
Keith Packard [Sun, 31 Mar 2013 19:23:31 +0000 (12:23 -0700)]
altos: Add sdcard read/write tracing

This just dumps info in trace mode about read and write commands

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Move fat mount information to separate command.
Keith Packard [Sun, 31 Mar 2013 19:22:28 +0000 (12:22 -0700)]
altos: Move fat mount information to separate command.

This makes the mount report precise error information and then prints
that with the 'M' command.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Disable CC115L debug commands
Keith Packard [Sun, 31 Mar 2013 19:21:03 +0000 (12:21 -0700)]
altos: Disable CC115L debug commands

now that it appears to work, leave these disabled by default

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Add SD card writing function
Keith Packard [Sun, 31 Mar 2013 17:35:47 +0000 (10:35 -0700)]
altos: Add SD card writing function

Now that the FAT code seems to be operational, go back and add
SD writing.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Add logging and telem to telegps
Keith Packard [Sat, 30 Mar 2013 08:33:49 +0000 (01:33 -0700)]
altos: Add logging and telem to telegps

This turns on telemetry, APRS, RDF and data logging for telegps.

Data is logged as soon as GPS has a date to create the right
filename, using files of the form YYYYMMDD.LOG which just barely fits
in a FAT filename.

Telemetry/RDF/APRS are all separately controllable.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Export ao_fat_sync and ao_fat_full functions
Keith Packard [Sat, 30 Mar 2013 08:32:30 +0000 (01:32 -0700)]
altos: Export ao_fat_sync and ao_fat_full functions

ao_fat_sync() flushes the bufio data to disk along with any fsinfo
changes. ao_fat_full() returns whether the file system is full.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Lock cc115l radio mutex when using global radio values
Keith Packard [Sat, 30 Mar 2013 08:31:12 +0000 (01:31 -0700)]
altos: Lock cc115l radio mutex when using global radio values

This moves the locking up above the global state variable uses so that
multiple radio users (as if we had any) won't collide.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Configure cc115l sync byte count for each radio mode
Keith Packard [Sat, 30 Mar 2013 08:30:18 +0000 (01:30 -0700)]
altos: Configure cc115l sync byte count for each radio mode

two sync bytes for packet mode, disable sync for rdf/aprs mode.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Get CC115L radio working.
Keith Packard [Sat, 30 Mar 2013 00:05:36 +0000 (17:05 -0700)]
altos: Get CC115L radio working.

This involved figuring out which GPIO signal would reliably indicate
that the transmitter was finished; I ended up using the PA_PD bit for
this.

This also converts all of the radio users to the long packet support
as the CC115L has only a 64-byte fifo, not large enough to hold either
an RDF tone or a regular AltOS telemetry packet.

This also renames the public API for sending APRS packets from
ao_radio_send_lots to ao_radio_send_aprs, which is at least more
accurate. The workings of that API haven't changed, just the name.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Add temporary RF power settings
Keith Packard [Fri, 29 Mar 2013 19:13:59 +0000 (12:13 -0700)]
altos: Add temporary RF power settings

These expose the raw cc115l and rfpa0133 register settings so that we
can calibrate them against measured power outputs.

I've tested them to verify that they change how much power the board
consumes, so they're clearly doing something...

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Add FAT32 support. And lots more testing.
Keith Packard [Fri, 29 Mar 2013 07:32:23 +0000 (00:32 -0700)]
altos: Add FAT32 support. And lots more testing.

Generalizes the FAT code to deal with either 16-bit or 32-bit
versions. The testing code now runs over a variety of disk images to
check for compatibility on all of them.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: seek forward on FAT cluster chain instead of restarting
Keith Packard [Fri, 29 Mar 2013 00:38:14 +0000 (17:38 -0700)]
altos: seek forward on FAT cluster chain instead of restarting

This improves sequential file performance by taking advantage of any
previous cached cluster/offset pair and starting from there when the
cluster changes rather than starting from scratch at the begining again.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Add a simple cache for the FAT position->cluster computation
Keith Packard [Thu, 28 Mar 2013 23:57:02 +0000 (16:57 -0700)]
altos: Add a simple cache for the FAT position->cluster computation

This improves read/write performance with large files by not
re-walking the cluster chain for every operation

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Clean up fat driver API. Improve fat test
Keith Packard [Thu, 28 Mar 2013 23:05:24 +0000 (16:05 -0700)]
altos: Clean up fat driver API. Improve fat test

Make FAT api provide reasonable error return values, change the tests
to write and then read a pile of files, checking that the contents are
correct (using md5sum).

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Add sanity checking to busy counts in bufio driver
Keith Packard [Thu, 28 Mar 2013 22:55:35 +0000 (15:55 -0700)]
altos: Add sanity checking to busy counts in bufio driver

Make sure the busy counts don't underflow or overflow.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Don't deref null pyros when saving altimeter config
Keith Packard [Thu, 28 Mar 2013 05:11:53 +0000 (22:11 -0700)]
altosui: Don't deref null pyros when saving altimeter config

The check for no pyro config is to compare npyros against zero rather
than check the length of the pyros array as the latter may be null.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Use FTDW, clear DATA bit. Disable backup write protection
Keith Packard [Thu, 28 Mar 2013 01:43:42 +0000 (18:43 -0700)]
altos: Use FTDW, clear DATA bit. Disable backup write protection

The newer(?) chips in telegps didn't like the previous programming
scheme, so go back to fixed time for write, which does an implicit
erase before every write. Also clear the DATA bit, which is only
needed for double word erase/programming.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Teleshield has a radio, set HAS_RADIO in ao_pins.h
Keith Packard [Wed, 27 Mar 2013 08:25:24 +0000 (01:25 -0700)]
altos: Teleshield has a radio, set HAS_RADIO in ao_pins.h

Otherwise, lots of random code won't know about the radio..

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Add new panic flag for bufio misuse
Keith Packard [Wed, 27 Mar 2013 08:15:04 +0000 (01:15 -0700)]
altos: Add new panic flag for bufio misuse

Allow the bufio code to signal a fatal error if someone misuses the API

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Hook up the FAT16 and SD card support to telegps
Keith Packard [Wed, 27 Mar 2013 08:14:15 +0000 (01:14 -0700)]
altos: Hook up the FAT16 and SD card support to telegps

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Add SDCARD and FAT16 filesystem support
Keith Packard [Wed, 27 Mar 2013 08:12:33 +0000 (01:12 -0700)]
altos: Add SDCARD and FAT16 filesystem support

This adds a fairly primitive FAT16 file system implementation
along with support for SD cards.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Fix config to not abort radio recv when no recv is available
Keith Packard [Tue, 26 Mar 2013 21:28:37 +0000 (14:28 -0700)]
altos: Fix config to not abort radio recv when no recv is available

Use the new radio recv define to skip disabling the receiver when
there isn't a receiver.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Allow radio recv and xmit to be separately configured
Keith Packard [Tue, 26 Mar 2013 21:27:46 +0000 (14:27 -0700)]
altos: Allow radio recv and xmit to be separately configured

The CC115L is xmit only, so split out the functions and provide
defines to check for xmit or recv separately as needed.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos/stm: Ensure SPI always sends 0xff during receive
Keith Packard [Tue, 26 Mar 2013 21:26:38 +0000 (14:26 -0700)]
altos/stm: Ensure SPI always sends 0xff during receive

SD cards require 0xff when fetching data

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Improve CC115L driver. Generates carrier now.
Keith Packard [Tue, 26 Mar 2013 21:25:48 +0000 (14:25 -0700)]
altos: Improve CC115L driver. Generates carrier now.

Still no data, but at least the carrier comes up on frequency now.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Add RFPA0133 amplifier driver
Keith Packard [Tue, 26 Mar 2013 21:24:45 +0000 (14:24 -0700)]
altos: Add RFPA0133 amplifier driver

No configuration of power level yet, just the bare driver.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos/telegps: Hook up cc115l driver
Keith Packard [Mon, 25 Mar 2013 06:52:14 +0000 (23:52 -0700)]
altos/telegps: Hook up cc115l driver

Doesn't actually do anything yet, but should initialize the chip at least

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Add cc115l driver (untested)
Keith Packard [Mon, 25 Mar 2013 06:51:11 +0000 (23:51 -0700)]
altos: Add cc115l driver (untested)

Includes support for sending telemetry, RDF and APRS tones

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoao-tools: Make library support µPusb
Keith Packard [Thu, 21 Mar 2013 06:22:37 +0000 (23:22 -0700)]
ao-tools: Make library support µPusb

Set baud rate to 9600, look for FTDI-style names

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoAdd telegps initial version
Keith Packard [Thu, 21 Mar 2013 06:21:37 +0000 (23:21 -0700)]
Add telegps initial version

Just lights up the GPS and USB

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoao-tools: add ao-dump-up
Keith Packard [Tue, 19 Mar 2013 05:12:48 +0000 (22:12 -0700)]
ao-tools: add ao-dump-up

Dumps out a µP log. Useful for µPusb bring-up

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agomicropeak: Improve download docs and UI
Keith Packard [Tue, 12 Mar 2013 01:16:55 +0000 (18:16 -0700)]
micropeak: Improve download docs and UI

Add text explaining that the LED and phototransistor must be
touching to both the doc and the UI.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoMerge remote-tracking branch 'mjb/altosdroid'
Keith Packard [Sun, 10 Mar 2013 18:43:06 +0000 (11:43 -0700)]
Merge remote-tracking branch 'mjb/altosdroid'

11 years agoaltos: re-enable optimization for stm-demo. remove unused bits
Keith Packard [Sun, 10 Mar 2013 18:41:49 +0000 (11:41 -0700)]
altos: re-enable optimization for stm-demo. remove unused bits

This makes stm-demo run on the discovery board again.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosdroid: Add map polyline between pad and rocket
Mike Beattie [Sun, 10 Mar 2013 10:28:26 +0000 (23:28 +1300)]
altosdroid: Add map polyline between pad and rocket

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: Add rocket and pad map markers
Mike Beattie [Sun, 10 Mar 2013 10:27:28 +0000 (23:27 +1300)]
altosdroid: Add rocket and pad map markers

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: programmatically create map fragment
Mike Beattie [Sun, 10 Mar 2013 07:40:13 +0000 (20:40 +1300)]
altosdroid: programmatically create map fragment

* Allows reliable fetching of a GoogleMap handle.
* Set map options, initial location (NCR North for now, temporarily)
* Add some info fields below map, and update them accordingly

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoMerge branch 'master' into altosdroid
Mike Beattie [Sun, 10 Mar 2013 07:24:56 +0000 (20:24 +1300)]
Merge branch 'master' into altosdroid

11 years agoaltosdroid: Add SDK checks to configure.ac
Mike Beattie [Sun, 10 Mar 2013 07:24:15 +0000 (20:24 +1300)]
altosdroid: Add SDK checks to configure.ac

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: adjust clean targets to get rid of automake warning
Mike Beattie [Sun, 10 Mar 2013 07:22:51 +0000 (20:22 +1300)]
altosdroid: adjust clean targets to get rid of automake warning

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoao-tools: Add ao-edit-telem to .gitignore
Mike Beattie [Sun, 10 Mar 2013 07:22:09 +0000 (20:22 +1300)]
ao-tools: Add ao-edit-telem to .gitignore

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoMerge branch 'master' into altosdroid
Mike Beattie [Sun, 10 Mar 2013 06:07:01 +0000 (19:07 +1300)]
Merge branch 'master' into altosdroid

11 years agoao-tools: Add ao-edit-telem
Keith Packard [Sun, 10 Mar 2013 04:40:52 +0000 (20:40 -0800)]
ao-tools: Add ao-edit-telem

This lets you edit a telemetry file. The only current editing
available is to change the pad location, allowing a flight to be
replayed anywhere in the world.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoao-tools/lib: Add cc_telemetry_unparse
Keith Packard [Sun, 10 Mar 2013 04:39:31 +0000 (20:39 -0800)]
ao-tools/lib: Add cc_telemetry_unparse

This takes a telemetry structure and generates a string version

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Add N/S and E/W to info table lat/lon values
Keith Packard [Sun, 10 Mar 2013 04:37:38 +0000 (20:37 -0800)]
altosui: Add N/S and E/W to info table lat/lon values

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosdroid: fix side-to-side scrolling in map tab
Mike Beattie [Fri, 8 Mar 2013 06:41:32 +0000 (19:41 +1300)]
altosdroid: fix side-to-side scrolling in map tab

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoMerge remote-tracking branch 'mjb/altosdroid'
Keith Packard [Thu, 7 Mar 2013 21:00:44 +0000 (13:00 -0800)]
Merge remote-tracking branch 'mjb/altosdroid'

11 years agoaltosdroid: Auto tab changing
Mike Beattie [Thu, 7 Mar 2013 08:37:51 +0000 (21:37 +1300)]
altosdroid: Auto tab changing

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: implement Age field updating
Mike Beattie [Thu, 7 Mar 2013 08:37:22 +0000 (21:37 +1300)]
altosdroid: implement Age field updating

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: implement UI updating on tabs
Mike Beattie [Thu, 7 Mar 2013 08:35:43 +0000 (21:35 +1300)]
altosdroid: implement UI updating on tabs

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: implement tabs interface
Mike Beattie [Thu, 7 Mar 2013 08:33:27 +0000 (21:33 +1300)]
altosdroid: implement tabs interface

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: Import initial versions of XML and Java for Tab content
Mike Beattie [Thu, 7 Mar 2013 08:28:45 +0000 (21:28 +1300)]
altosdroid: Import initial versions of XML and Java for Tab content

* Includes TabsAdapter class borrowed from Support Library sample code
* New "GoNoGoLights" class for dealing with the red/green/gray LEDs
* extra required strings in strings.xml
* Couple of support functions in AltosDroid.java
* rudimentary Maps tab - does nothing at present.

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: whitespace cleanup
Mike Beattie [Thu, 7 Mar 2013 08:20:47 +0000 (21:20 +1300)]
altosdroid: whitespace cleanup

DAMN my OCD.

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: make AltosDroid.pos() static
Mike Beattie [Thu, 7 Mar 2013 08:20:06 +0000 (21:20 +1300)]
altosdroid: make AltosDroid.pos() static

* Will be used from tabs that display lat/lon

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: convert spaces to tabs in strings.xml
Mike Beattie [Thu, 7 Mar 2013 07:53:26 +0000 (20:53 +1300)]
altosdroid: convert spaces to tabs in strings.xml

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: adjust release Makefile target
Mike Beattie [Thu, 7 Mar 2013 07:49:41 +0000 (20:49 +1300)]
altosdroid: adjust release Makefile target

* Rename target
* Add dependency on unsigned release APK
* use $(ZIPALIGN) variable

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: Symlink red/green/gray LEDs via build system
Mike Beattie [Thu, 7 Mar 2013 07:48:16 +0000 (20:48 +1300)]
altosdroid: Symlink red/green/gray LEDs via build system

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: Adjust build system for GMaps & Tabs support
Mike Beattie [Thu, 7 Mar 2013 06:23:39 +0000 (19:23 +1300)]
altosdroid: Adjust build system for GMaps & Tabs support

* Use SupportV4 library for Tab support
* Use Google Services Lib for Google Maps
* revert to a standard Android target, not Google API's
* Add permissions required for Google Maps to manifest, and API key

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: adjust Makefile rules
Mike Beattie [Thu, 7 Mar 2013 06:05:43 +0000 (19:05 +1300)]
altosdroid: adjust Makefile rules

separate altoslib linking and, making of external lib directory.

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: use a glob for source files
Mike Beattie [Thu, 7 Mar 2013 06:02:48 +0000 (19:02 +1300)]
altosdroid: use a glob for source files

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: Only update BuildInfo.java when other source files change
Mike Beattie [Thu, 7 Mar 2013 05:59:30 +0000 (18:59 +1300)]
altosdroid: Only update BuildInfo.java when other source files change

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: Fix up some formatting in manifest
Mike Beattie [Thu, 7 Mar 2013 05:54:45 +0000 (18:54 +1300)]
altosdroid: Fix up some formatting in manifest

(And add flag to allow settings backup by google services)

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoMerge remote-tracking branch 'mjb/master'
Keith Packard [Thu, 7 Mar 2013 05:53:22 +0000 (21:53 -0800)]
Merge remote-tracking branch 'mjb/master'

11 years agoaltosdroid: minor whitespace cleanup
Mike Beattie [Thu, 7 Mar 2013 05:51:27 +0000 (18:51 +1300)]
altosdroid: minor whitespace cleanup

(damn my OCD!)

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosdroid: update copyrights/licensing
Mike Beattie [Thu, 7 Mar 2013 05:46:32 +0000 (18:46 +1300)]
altosdroid: update copyrights/licensing

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltoslib: Invalidate GPS new data bit when updating state
Keith Packard [Tue, 5 Mar 2013 03:44:30 +0000 (19:44 -0800)]
altoslib: Invalidate GPS new data bit when updating state

Somehow this line got lost when the GPS ground altitude fix was made.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoao-tools: Add ao-dumpflash program
Keith Packard [Mon, 4 Mar 2013 00:53:52 +0000 (16:53 -0800)]
ao-tools: Add ao-dumpflash program

This program dumps the entire flash contents of an AltOS device to
allow for external analysis.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agolibaltos: Open FTDI serial devices twice on Windows.
Keith Packard [Sun, 3 Mar 2013 01:46:29 +0000 (17:46 -0800)]
libaltos: Open FTDI serial devices twice on Windows.

Looks like the Windows FTDI driver has 'issues' and opening it only
once doesn't work correctly. Just close and re-open the device and it
seems to be perfectly happy.

Who knows?

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agodoc: Add version 1.2 release notes
Keith Packard [Sat, 2 Mar 2013 04:48:28 +0000 (20:48 -0800)]
doc: Add version 1.2 release notes

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agodoc: Document how to get TeleMini to 'emergency recovery' mode
Keith Packard [Sat, 2 Mar 2013 04:45:43 +0000 (20:45 -0800)]
doc: Document how to get TeleMini to 'emergency recovery' mode

TeleMini needs emergency recovery mode in case you forget the radio
parameters and need to get things back to a known state. Add
documentation to describe what this does and how to get it enabled.

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