fw/altos
11 years agoao-tools/lib: Add loading support for 32-bit ihx files
Keith Packard [Sun, 24 Mar 2013 22:30:24 +0000 (15:30 -0700)]
ao-tools/lib: Add loading support for 32-bit ihx files

These place the upper 16 bits of the address in a special record. That
requires handling records in file order, so don't sort them in address
order anymore, instead find the bounds of the loaded data by scanning
them all.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoao-tools/lib: Deal with binary USB data in debugging output
Keith Packard [Sun, 24 Mar 2013 22:29:32 +0000 (15:29 -0700)]
ao-tools/lib: Deal with binary USB data in debugging output

Dump non-ascii characters in hex format.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos/stm: Add comments to the .ld files explaining how the romconfig stuff works
Keith Packard [Sun, 24 Mar 2013 22:27:42 +0000 (15:27 -0700)]
altos/stm: Add comments to the .ld files explaining how the romconfig stuff works

Would be nice to be able to explicitly define addresses for the
romconfig variables, but I can't figure out how to make that
work. Instead, just explicitly load the files in teh right order to
make things land in the right places.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos/stm: Add .elf to .ihx rule
Keith Packard [Sun, 24 Mar 2013 22:26:26 +0000 (15:26 -0700)]
altos/stm: Add .elf to .ihx rule

Uses objcopy -O ihex to extract the initialized bits from an elf file

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Switch ao_stm_flash to read/write binary blocks
Keith Packard [Sun, 24 Mar 2013 22:24:42 +0000 (15:24 -0700)]
altos: Switch ao_stm_flash to read/write binary blocks

Change from development testing code to something that actually reads
and writes data from the USB link.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Create ihx version of stm-demo
Keith Packard [Sun, 24 Mar 2013 22:21:58 +0000 (15:21 -0700)]
altos: Create ihx version of stm-demo

Both ao-stmload and the eventual java loader will support ihx files.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos/stm: Always declare all romconfig variables
Keith Packard [Sun, 24 Mar 2013 22:20:09 +0000 (15:20 -0700)]
altos/stm: Always declare all romconfig variables

I haven't figured out how to assign addresses for specific initialized
variables, so we'll just have to always declare all of them and make
sure that we add new ones at the end.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Call ao_task_init before initializing any drivers
Keith Packard [Sun, 24 Mar 2013 22:14:12 +0000 (15:14 -0700)]
altos: Call ao_task_init before initializing any drivers

When using task queues, the sleep queues must be initialized before
any invocation of ao_wakeup or the OS will crash. Just make sure
ao_task_init is always invoked early in the task process to get that done.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Expose ao_put_string function
Keith Packard [Sun, 24 Mar 2013 22:08:31 +0000 (15:08 -0700)]
altos: Expose ao_put_string function

This works like puts, except it doesn't add a trailing newline.

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 erase command to stm-flash app. Validate addresses.
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.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Fix STM flash programming
Keith Packard [Sat, 23 Mar 2013 09:21:27 +0000 (02:21 -0700)]
altos: Fix STM flash programming

Wait for flash to go non-busy after writing or erasing a page and
before jumping back out of the RAM code.

Export a separate 'erase' operation for testing.

Re-lock flash after every operation.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Validate boot chain start address
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.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Mark .boot section as (NOLOAD)
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.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Fix up stm-flash output file name. Use discovery LED pins
Keith Packard [Sat, 23 Mar 2013 09:15:35 +0000 (02:15 -0700)]
altos: Fix up stm-flash output file name. Use discovery LED pins

Include the AltOS version in the file name, just like any other AltOS
program.

Switch the LEDs to the discovery board as we're using
that. Eventually, we'll stop using LEDs entirely.

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: Add actual flashing functions to stm-flash app
Keith Packard [Tue, 12 Mar 2013 01:14:28 +0000 (18:14 -0700)]
altos: Add actual flashing functions to stm-flash app

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Clean up boot loader support
Keith Packard [Mon, 11 Mar 2013 20:21:04 +0000 (13:21 -0700)]
altos: Clean up boot loader support

Split out code into separate files.
Add support for getting back to boot loader from application.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Add program flash function
Keith Packard [Mon, 11 Mar 2013 07:01:52 +0000 (00:01 -0700)]
altos: Add program flash function

And get it loaded to RAM so it can execute correctly.

Nothing calls it yet...

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Fix up 'help' command for 8051
Keith Packard [Mon, 11 Mar 2013 04:05:34 +0000 (21:05 -0700)]
altos: Fix up 'help' command for 8051

The help command was rewritten to avoid using printf, but the
rewrite used 'const' instead of the required '__code' to point at
constant strings.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Make stm-flash capable of switching to application
Keith Packard [Mon, 11 Mar 2013 04:02:59 +0000 (21:02 -0700)]
altos: Make stm-flash capable of switching to application

This shrinks the base OS load down a bit as well so that stm-flash
fits comfortably in the first 8kB of memory.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoAdd STM self-flashing loader
Keith Packard [Sun, 24 Feb 2013 08:18:14 +0000 (00:18 -0800)]
Add STM self-flashing loader

This allows the real application to get loaded at 0x2000 and jumps to
that at startup time if the boot pin is set appropriately

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>
11 years agoaltosuilib: Disable graph element notifies for each add()
Keith Packard [Fri, 1 Mar 2013 20:34:04 +0000 (12:34 -0800)]
altosuilib: Disable graph element notifies for each add()

This reduces the number of notify calls made and dramatically speeds
up graph creation.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosuilib: Add setNotify/fireSeriesChanged methods to AltosUIGrapher
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.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: telescience-v0.2 is an ARM product
Keith Packard [Sun, 24 Feb 2013 09:20:41 +0000 (01:20 -0800)]
altos: telescience-v0.2 is an ARM product

Move it from SDCC to ARM targets as Jenkins doesn't have an ARM compiler.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos/driver: Make HMC5883 driver build again
Keith Packard [Sun, 24 Feb 2013 09:20:16 +0000 (01:20 -0800)]
altos/driver: Make HMC5883 driver build again

Adapt to changes in OS interfaces

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoMerge branch 'telescience-v0.2'
Keith Packard [Sun, 24 Feb 2013 08:20:54 +0000 (00:20 -0800)]
Merge branch 'telescience-v0.2'

11 years agoUpdate build version to 1.2
Keith Packard [Sun, 24 Feb 2013 08:20:36 +0000 (00:20 -0800)]
Update build version to 1.2

Prepare for 1.2 release

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos/stm: Add more bits to NVIC register definitions
Keith Packard [Sun, 24 Feb 2013 08:19:49 +0000 (00:19 -0800)]
altos/stm: Add more bits to NVIC register definitions

This cleans up a few values, adds more comments and a few more NVIC fields.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosdroid: excise old code/xml
Mike Beattie [Fri, 15 Feb 2013 09:09:16 +0000 (22:09 +1300)]
altosdroid: excise old code/xml

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoall: clean up .gitignore files and Makefile clean targets
Mike Beattie [Fri, 15 Feb 2013 08:59:08 +0000 (21:59 +1300)]
all: clean up .gitignore files and Makefile clean targets

Signed-off-by: Mike Beattie <mike@ethernal.org>
11 years agoaltosui: Fix AltosLanded call to AltosGraphUI
Keith Packard [Mon, 11 Feb 2013 19:40:38 +0000 (11:40 -0800)]
altosui: Fix AltosLanded call to AltosGraphUI

Changed the argument from String to File but forgot this one.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Remove graph series which aren't available
Keith Packard [Mon, 11 Feb 2013 18:34:47 +0000 (10:34 -0800)]
altosui: Remove graph series which aren't available

Make sure all graph series have actual data underlying them by
checking the available data before creating the series objects.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Stick file basename in graph window title
Keith Packard [Mon, 11 Feb 2013 18:31:24 +0000 (10:31 -0800)]
altosui: Stick file basename in graph window title

The title was empty before, this seems more useful than that.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosuilib: rescale axis when enabling data series
Keith Packard [Mon, 11 Feb 2013 18:24:34 +0000 (10:24 -0800)]
altosuilib: rescale axis when enabling data series

This makes sure new series are visible when you enable them.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agomicropeak: Remove Info.plist
Keith Packard [Mon, 11 Feb 2013 03:33:50 +0000 (19:33 -0800)]
micropeak: Remove Info.plist

It's built from Info.plist.in

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoBuild Windows .nsi files in configure script
Keith Packard [Mon, 11 Feb 2013 03:01:41 +0000 (19:01 -0800)]
Build Windows .nsi files in configure script

These need the library version numbers embedded in them.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Add map and GPS data to graph window. Trac #50
Keith Packard [Sun, 10 Feb 2013 23:34:56 +0000 (15:34 -0800)]
altosui: Add map and GPS data to graph window. Trac #50

See where the rocket landed without having to replay the whole flight.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Display count of erased flights along with their numbers
Keith Packard [Sun, 10 Feb 2013 22:56:10 +0000 (14:56 -0800)]
altosui: Display count of erased flights along with their numbers

An attempt to clarify what's going on by providing both a count and
the flight numbers.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Display block number while downloading flights. Track #51
Keith Packard [Sun, 10 Feb 2013 22:51:46 +0000 (14:51 -0800)]
altosui: Display block number while downloading flights. Track #51

We don't know how long the flight log is, but we can at least provide
a block number in the pacifier to let the user know it's not wedged.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltoslib: Fix available flight log storage computation
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

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Display callsign in connecting message window
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.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Interrupt MonitorIdle when changing frequency/callsign
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.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui: Add callsign to Monitor Idle window (Trac #62)
Keith Packard [Sun, 10 Feb 2013 19:58:36 +0000 (11:58 -0800)]
altosui: Add callsign to Monitor Idle window (Trac #62)

This makes it a lot more obvious that the callsign is relevant to the
Monitor Idle process.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoMerge remote-tracking branch 'mjb/master'
Keith Packard [Sun, 10 Feb 2013 09:21:52 +0000 (01:21 -0800)]
Merge remote-tracking branch 'mjb/master'

11 years agoaltosui: Adjust graph voltage tool-tip value format
Keith Packard [Sun, 10 Feb 2013 08:40:59 +0000 (00:40 -0800)]
altosui: Adjust graph voltage tool-tip value format

Voltages are always small, so use more of the space for the
fractional value.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltoslib: Fix a couple of unit functions to make them public
Keith Packard [Sun, 10 Feb 2013 08:32:26 +0000 (00:32 -0800)]
altoslib: Fix a couple of unit functions to make them public

Nice to be able to use these outside of altoslib

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosui/altoslib/altosuilib: Switch altosui to shared graph code
Keith Packard [Sun, 10 Feb 2013 08:29:29 +0000 (00:29 -0800)]
altosui/altoslib/altosuilib: Switch altosui to shared graph code

This adds a configuration tab to the graph window to enable/disable
various plotted values.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosuilib/micropeak: Add state markers to micropeak graph
Keith Packard [Sun, 10 Feb 2013 04:24:33 +0000 (20:24 -0800)]
altosuilib/micropeak: Add state markers to micropeak graph

I think this makes the micropeak graph as functional as the altosui graph

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltoslib: Fix altoslib install
Keith Packard [Sun, 10 Feb 2013 03:24:18 +0000 (19:24 -0800)]
altoslib: Fix altoslib install

Was using AltosLibdir in several places still

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosuilib: Initialize graph axes units
Keith Packard [Sun, 10 Feb 2013 03:23:27 +0000 (19:23 -0800)]
altosuilib: Initialize graph axes units

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltoslib: Add AltosUnits.graph_format
Keith Packard [Sat, 9 Feb 2013 10:00:13 +0000 (02:00 -0800)]
altoslib: Add AltosUnits.graph_format

This describes the format of numbers used on a graph axis for use with jfreechart

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agomicropeak: Use altosuilib graphing functions
Keith Packard [Sat, 9 Feb 2013 09:59:18 +0000 (01:59 -0800)]
micropeak: Use altosuilib graphing functions

Move these out of micropeak and into shared code

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosuilib: Add graphing routines from MicroPeak
Keith Packard [Sat, 9 Feb 2013 09:58:23 +0000 (01:58 -0800)]
altosuilib: Add graphing routines from MicroPeak

Make these available for AltosUI too

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltosuilib: Remove duplicate AltosUnitsListener.java
Keith Packard [Sat, 9 Feb 2013 09:55:51 +0000 (01:55 -0800)]
altosuilib: Remove duplicate AltosUnitsListener.java

This lives in altoslib

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agovarious updates to the text .. more SMA to BNC adapter references, etc
Bdale Garbee [Sat, 9 Feb 2013 16:09:36 +0000 (09:09 -0700)]
various updates to the text .. more SMA to BNC adapter references, etc

11 years agoupdate copyright year to 2013
Bdale Garbee [Sat, 9 Feb 2013 15:47:10 +0000 (08:47 -0700)]
update copyright year to 2013

11 years agoadd pcb overall dimensions and screw sizes the holes are intended for
Bdale Garbee [Sat, 9 Feb 2013 15:44:11 +0000 (08:44 -0700)]
add pcb overall dimensions and screw sizes the holes are intended for

11 years agodoc: Add TeleMetrum and TeleMini drill templates
Keith Packard [Sat, 9 Feb 2013 07:37:49 +0000 (23:37 -0800)]
doc: Add TeleMetrum and TeleMini drill templates

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoaltos: Add atmosphere.5c
Keith Packard [Mon, 4 Feb 2013 18:51:49 +0000 (10:51 -0800)]
altos: Add atmosphere.5c

Shared code for building pressure tables

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