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.
Keith Packard [Sat, 23 Mar 2013 09:23:03 +0000 (02:23 -0700)]
altos: Add erase command to stm-flash app. Validate addresses.
This also leaves the code writing fixed values and printing read data
in ascii instead of binary. Useful for debugging, will want changing
for the product.
Keith Packard [Sat, 23 Mar 2013 09:18:55 +0000 (02:18 -0700)]
altos: Validate boot chain start address
If the first block of boot memory has been smashed, and the start
address is bogus, don't bother trying to jump to the
application. This makes the system more resiliant to flash failures,
presuming the loader erases the first block, programs the other blocks
and then finally comes back to program the first block.
Keith Packard [Sat, 23 Mar 2013 09:17:04 +0000 (02:17 -0700)]
altos: Mark .boot section as (NOLOAD)
For some reason, the silly linker marks things in section .boot as
data rather than bss, so they'd end up initialized by default. Force
them to be NOLOAD so they preserve values across reboot so that boot
chaining works properly.
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.
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
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.
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.
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
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.
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.
Keith Packard [Fri, 1 Mar 2013 20:28:34 +0000 (12:28 -0800)]
altosuilib: Add setNotify/fireSeriesChanged methods to AltosUIGrapher
This will let the data adding functions disable notifications while
adding all of the graph data, and then send a single notification when
the data sets are complete, which speeds up creating of the graph
elements quite a bit.
Keith Packard [Sun, 10 Feb 2013 22:40:48 +0000 (14:40 -0800)]
altoslib: Fix available flight log storage computation
number of flights was off by one as it was initialized to -1
storage erase unit wasn't getting fetched correctly
flight_log_max is in kB, not B; need to multiply by 1024
Keith Packard [Sun, 10 Feb 2013 22:18:16 +0000 (14:18 -0800)]
altosui: Display callsign in connecting message window
When waiting for the remote end to respond, display the callsign along
with the frequency so that the user remembers that it's important to
set that too.
Keith Packard [Sun, 10 Feb 2013 22:17:04 +0000 (14:17 -0800)]
altosui: Interrupt MonitorIdle when changing frequency/callsign
When switching radio parameters, the local device needs to have the
parameters switched, so interrupt the current operation and start
over, the frequency and callsign will be set the next time through.
Keith Packard [Mon, 4 Feb 2013 17:51:30 +0000 (09:51 -0800)]
altos: Document which MPU6000 revs have broken accel values
From Tridge -- MPU6000 rev C4 and C5 are broken, having accelerometer
values in the wrong range. This commit just adds comments which note
this; experimentation will be required to actually sort out what's
going on.
Mike Beattie [Mon, 28 Jan 2013 12:34:48 +0000 (01:34 +1300)]
altosdroid: initial release to Play Store
* Add release keystore (encrypted)
* Turn off debugging in UI
* add 'sign' target to Makefile.am
* Update version string in AndroidManifest.xml to match released version of altosui.