]>
git.gag.com Git - fw/altos/log
Keith Packard [Fri, 18 Mar 2016 18:16:59 +0000 (11:16 -0700)]
altos/stmf0: Construct .bin files for flash loaders
This builds a .bin file which can be used with dfu-util instead of
using openocd to load the initial flash loader.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 18 Mar 2016 18:15:57 +0000 (11:15 -0700)]
ao-tools: Add ao-makebin
This constructs a raw binary or DFU format file for use with dfu-util,
which can be used with a bare STM processor to load code before the
boot loader is available.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 18 Mar 2016 17:52:03 +0000 (10:52 -0700)]
ao-tools/lib: Add ao_hex_image_cat function
This takes two images and constructs a third containing the union of
the contents along with 0xff bytes for any area between them.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 18 Mar 2016 17:51:20 +0000 (10:51 -0700)]
ao-tools/lib: Remove trailing whitespace from ao-elf.c
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 18 Mar 2016 17:50:32 +0000 (10:50 -0700)]
ao-tools/ao-dump-up: Remove spurious flight state strings
MicroPeak doesn't have flight states like this...
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 18 Mar 2016 17:48:49 +0000 (10:48 -0700)]
Change how we detect and install java
Detect by finding 'javaw.exe' in the current path and extracting the
version from the program itself.
Install by simply opening the web browser to java.com and letting the
user install it themselves.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 18 Mar 2016 17:17:24 +0000 (10:17 -0700)]
altos: Expose fast timer API from kernel/
This allows multiple SoCs to provide the same driver interface
Signed-off-by: Keith Packard <keithp@keithp.com>
Bart Massey [Sun, 6 Mar 2016 01:38:19 +0000 (17:38 -0800)]
altos: Fixed timing of panic display LED to be readable
When we don't have a beeper, there's no way to signal a 'warble' for
panic. So, elide that bit.
Second, panic can't use the scheduler and timer because those may not
be running (or may have failed), and so it uses a delay loop. Add a
configurable scale value to the panic loop so that the LED blinks can
be read. For stm32f0 devices, scale that by the sysclk value to
automatically make them of reasonable length.
Keith Packard [Sun, 6 Mar 2016 23:05:51 +0000 (15:05 -0800)]
libaltos: Add unistd.h to get defines for various syscalls
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 6 Mar 2016 23:04:23 +0000 (15:04 -0800)]
libaltos: jni_md.h moved to linux subdir in Java install
Add the linux subdir to CFLAGS to find it.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 5 Mar 2016 22:37:40 +0000 (14:37 -0800)]
altos/stmf0: Fix build without second USB IN endpoint
The code for the second IN endpoint was using the wrong ifdef.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 2 Mar 2016 22:36:31 +0000 (14:36 -0800)]
ao-tools: Add ao-chaosread
This reads from the raw descriptor to help validate the hardware.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 2 Mar 2016 22:01:00 +0000 (14:01 -0800)]
ao-bringup: Switch to v1.0 for chaoskey
Not going to build any more v0.1 boards. Also, chaoskey now uses the
unique ID for a serial, so we don't need to provide a serial number.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 2 Mar 2016 22:00:06 +0000 (14:00 -0800)]
altos: Add ChaosKey v1.0 product
Much like ChaosKey v0.1, just different SoC package and a few wiring changes.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 2 Mar 2016 21:54:58 +0000 (13:54 -0800)]
altos/chaoskey: Add another USB endpoint to read raw data
This replaces having the single output switch based on a pin value and
allows us to box the device and still fetch raw data.
For now, this will use a special libusb2 program, ao-chaosread, to
pull bits as I haven't figure out how to make linux provide two
/dev entries for one USB device.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 15 Feb 2016 23:26:00 +0000 (15:26 -0800)]
altos/chaoskey: Use SoC device ID as serial number
To make manufacturing these devices tractable, we don't want to
require a custom firmware load for each device, but we still want a
unique serial number. Fortunately, the SoC provides a 96-bit ID which
we can use.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 15 Feb 2016 23:24:35 +0000 (15:24 -0800)]
altos/stmf0: Use device ID as usb serial number if requested
This exposes the hardware device ID (which is unique per-chip) as the
USB serial number, avoiding the need to create a custom ROM image for
each device.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 15 Feb 2016 23:23:15 +0000 (15:23 -0800)]
altos/chaoskey: Encode both hardware and software versions in product ID
We have no other way of reporting the software version, so just encode
it in the product ID.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 15 Feb 2016 22:04:04 +0000 (14:04 -0800)]
altos/stmf0: Fix location of device_id register
Copied from stm32l and never fixed.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 9 Feb 2016 03:15:31 +0000 (19:15 -0800)]
altos: Another fix for non CDC-ACM devices
Need to set the bInterfaceNumber for the actual interface to zero when
there isn't an INT interface before it.
Signed-off-by: Keith Packard <keithp@keithp.com>
Bart Massey [Tue, 9 Feb 2016 02:55:28 +0000 (18:55 -0800)]
Clean up stmf0 adc init.
This better matches the documented cal sequence.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 8 Feb 2016 06:30:27 +0000 (22:30 -0800)]
altos/stmf0: Add missing ao_gpio.c
This contains the code for power managing the GPIO pins
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 8 Feb 2016 06:28:34 +0000 (22:28 -0800)]
altos: Add simple stats test to TRNG code
This detects broken hardware by making sure the standard deviation in
the raw values used to compute each buffer is at least 128.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 7 Feb 2016 23:33:42 +0000 (15:33 -0800)]
altos: Delay TRNG ADC long enough for HV supply to stabilize
Looks like it takes about 70ms for the supply to start running right,
so delay after powering it up for that long.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 6 Feb 2016 13:15:47 +0000 (00:15 +1100)]
altos/chaoskey-v0.1: Add power management and change USB classes
Enable power management.
Expose only a single IN endpoint.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 6 Feb 2016 13:14:22 +0000 (00:14 +1100)]
altos: Add power management to TRNG driver
Support suspend/resume of the TRNG power supply, delaying after resume
to wait for it to stabilize.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 6 Feb 2016 13:10:57 +0000 (00:10 +1100)]
altos: Allow USB drivers to skip CDC-ACM -specific descriptors
For devices not providing the standard CDC-ACM interface, let them
skip the various descriptors and interfaces to provide a more limited
set of capabilities.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 6 Feb 2016 11:51:32 +0000 (22:51 +1100)]
altos/stmf0: Add suspend/resume support
Allow USB suspend to suspend USB, GPIOs and master clock.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 6 Feb 2016 11:47:23 +0000 (22:47 +1100)]
altos: Add power management APIs
This provides sequenced suspend/resume functionality, allowing modules
to register for power management at configuration time.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 20 Jan 2016 07:55:52 +0000 (23:55 -0800)]
altos/stmf0: Allow projects to specify non-default stack size
512 may not be suitable for everyone.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 20 Jan 2016 07:55:32 +0000 (23:55 -0800)]
altos: remove blank line in stmf0/ao_timer.c
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 28 Jan 2016 21:58:43 +0000 (13:58 -0800)]
altos/chaoskey: Delay ADC reading for 250ms at startup
This lets the HV supply stabilize before we start sampling values.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 28 Jan 2016 08:14:36 +0000 (00:14 -0800)]
altos/chaoskey: Add support for flipping between raw and cooked bits
Plug the 'force bootloader' thing onto the board while it's running
and it will generate raw bits instead of running them through the CRC
to whiten. Useful for validating the raw hardware.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 20 Jan 2016 02:30:57 +0000 (18:30 -0800)]
src/chaoskey-v0.1: Add HV enable support
Turn on the HV supply when the OS starts.
Signed-off-by: Keith Packard <keithp@keithp.com>
Robert Garbee [Sat, 16 Jan 2016 17:19:47 +0000 (10:19 -0700)]
fix argument to ao-cal-freq so devices other than /dev/ttyACM0 work
Keith Packard [Mon, 11 Jan 2016 05:39:38 +0000 (21:39 -0800)]
Releasing: Copy TeleMega v2.0 bits to Binaries
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Thu, 16 Jul 2015 20:47:10 +0000 (14:47 -0600)]
process updates from 1.6.1 release
Bdale Garbee [Mon, 11 Jan 2016 02:06:19 +0000 (19:06 -0700)]
one more time, with feeling .. this time, I've updated pdclib
Bdale Garbee [Mon, 11 Jan 2016 01:58:31 +0000 (18:58 -0700)]
submodule madness
Bdale Garbee [Mon, 11 Jan 2016 01:29:07 +0000 (18:29 -0700)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Keith Packard [Mon, 11 Jan 2016 01:22:35 +0000 (17:22 -0800)]
doc: Remove extraneous 'first off' from legal paragraph
Not helpful (bdale)
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 11 Jan 2016 01:13:56 +0000 (17:13 -0800)]
doc: Remove telemini v2.0. Add telemega v2.0
Reflect hardware we've actually shipped.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 11 Jan 2016 01:01:57 +0000 (17:01 -0800)]
doc: fix typo in using external active switch circuit section
the -> then (bdale)
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 11 Jan 2016 00:59:37 +0000 (16:59 -0800)]
doc: Update copyright year in altusmetrum doc
And note that this need to be checked for each release in RELNOTES
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Mon, 11 Jan 2016 00:45:45 +0000 (17:45 -0700)]
modify release procedure to reflect Keith setting version in confgure.ac
Bdale Garbee [Mon, 11 Jan 2016 00:44:03 +0000 (17:44 -0700)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Mon, 11 Jan 2016 00:43:34 +0000 (17:43 -0700)]
modify bringup scripts to handle TeleMega v2.0
Keith Packard [Sun, 10 Jan 2016 22:37:05 +0000 (14:37 -0800)]
Bump version to 1.6.2, altosdroid to 10
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Mon, 11 Jan 2016 00:41:38 +0000 (17:41 -0700)]
now building for m4, too
Bdale Garbee [Mon, 11 Jan 2016 00:38:26 +0000 (17:38 -0700)]
new build dependency on asciidoc
Keith Packard [Sun, 10 Jan 2016 23:56:21 +0000 (15:56 -0800)]
altos: Switch PWM constants to end up exposing µsec
This changes the constants so the clock runs at 1MHz, making the step
1µsec each. Then make the period 20000 steps, or 20ms for a 50Hz
frequency as before.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 10 Jan 2016 23:44:08 +0000 (15:44 -0800)]
altos: Set TeleMega v2.0 PWM to support servos
Typical servos use a 50Hz signal with less than 10% duty cycle. Set
the divider to 10 and the range to 64000 to provide a reasonable level
of detail down in the low range.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 10 Jan 2016 19:44:17 +0000 (11:44 -0800)]
Add release notes for 1.6.2
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 10 Jan 2016 20:30:34 +0000 (12:30 -0800)]
Update java library versions
altoslib is API incompatible with 1.6.1 release due to altos.state updates.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 10 Jan 2016 20:30:11 +0000 (12:30 -0800)]
altoslib: Remove debug message from AltosMap
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 10 Jan 2016 20:21:24 +0000 (12:21 -0800)]
Elide flight computer info from APRS section of TeleGPS manual
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 10 Jan 2016 20:15:50 +0000 (12:15 -0800)]
Elide pyro channel information from EasyMini docs
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 10 Jan 2016 05:33:23 +0000 (21:33 -0800)]
altos: Insert inter telemetry-packet delay
The receivers take some time to reset the radio between packets, so
make sure we don't send back-to-back telemetry too quickly by delaying
after sending each telemetry packet.
Keith Packard [Sun, 10 Jan 2016 00:28:53 +0000 (16:28 -0800)]
Switch TeleMega v2.0 to CC1200 radio chip
That's what we're using, after all
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 26 Dec 2015 07:27:45 +0000 (23:27 -0800)]
altos: Set AO_PWM_TIMER_SCALE for telemega-v2.0
This is needed to configure the PWM timer correctly
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 26 Dec 2015 07:20:29 +0000 (23:20 -0800)]
altos: Get stm32l pwm driver working
Fix the CCMR1_OC1PE and CCMR2_OC3PE values.
Disable clock when no PWM outputs are running.
Fix the apb1enr value for the timer.
Set ARR value to PWM_MAX - 1 -- ARR is off by one.
Sets the GPIO pins to 40MHz bandwidth for sharper edges.
Tested on EasyMega, but that code is not included as it breaks the
companion protocol.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 24 Dec 2015 08:28:59 +0000 (00:28 -0800)]
altos: Add TeleMega v2.0, including PWM driver
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 23 Dec 2015 18:18:24 +0000 (10:18 -0800)]
ao-tools/ao-dbg: Stop using sigvec
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 14 Nov 2015 08:01:05 +0000 (00:01 -0800)]
doc: Remove some bogus bits from am.css
Just commented out stuff which had a nested comment and was thus invalid
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 14 Nov 2015 07:36:02 +0000 (23:36 -0800)]
doc: Construct html index for documentation
This gets uploaded to keith's machine as an easy way to see what's available.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 14 Nov 2015 07:17:11 +0000 (23:17 -0800)]
doc: Try a different trick for asciidoc build issues
asciidoc creates temp files in the current directory using basename of
the source filename. Doing html and pdf builds in parallel causes
chaos as a result. Fix this by having the pdf target build both
serially, and then have the html target just depend on the pdf target.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 14 Nov 2015 06:55:35 +0000 (22:55 -0800)]
doc: Split out EasyMini into a separate manual
EasyMini uses a tiny fraction of the overall system software;
splitting the manual out makes it a lot smaller.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 14 Nov 2015 04:59:25 +0000 (20:59 -0800)]
doc: Reformat html versions a bit
Color more text black, including toc. Add a bit of space around the
toc. Make paragraph labels bold.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 14 Nov 2015 04:58:58 +0000 (20:58 -0800)]
doc: Move pad beeps table to usage chapter
This places all of the sound information in one place.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 14 Nov 2015 04:58:08 +0000 (20:58 -0800)]
doc: Provide more actual links instead of just chapter names
Replace 'see chapter "foo"' with 'see <<foo>>' so that a link is
created to directly go to the relevant text.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 14 Nov 2015 04:56:45 +0000 (20:56 -0800)]
doc: Reformat 'Using MicroPeak' section
Use labeled paragraphs to make the steps stand out.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 14 Nov 2015 03:45:02 +0000 (19:45 -0800)]
Break out common pieces from TeleGPS and AltusMetrum
This creates shared files for portions of the TeleGPS and AltusMetrum
manual to avoid duplicating text between the two.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 2 Nov 2015 05:05:20 +0000 (21:05 -0800)]
doc: Add product logos to books
This places the product logo on the title verso in pdf form, and above
the TOC in html form.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 1 Nov 2015 14:20:27 +0000 (06:20 -0800)]
altosui: telemini outline pdf changed name
It's now telemini-outline.pdf, just like the other outline files.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 1 Nov 2015 13:43:59 +0000 (05:43 -0800)]
doc: verbose mode for a2x
Keith Packard [Sun, 1 Nov 2015 13:08:27 +0000 (05:08 -0800)]
doc: Make pdf titles less ridiculously large
Instead of having them grow at 20% per nesting level, use 10% instead.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 1 Nov 2015 12:23:56 +0000 (04:23 -0800)]
doc: Get images and tables all centered and labeled
A bunch of images were using image: instead of image:: and some images
and tables were missing titles.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 1 Nov 2015 12:22:27 +0000 (04:22 -0800)]
doc: Split revhistory to separate file for html docs
This avoids having the revhistory clutter the top of the document.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 1 Nov 2015 12:20:18 +0000 (04:20 -0800)]
doc: Place html book contents on left side of page with separate scrollbar
This lets the user see the toc while browsing the document
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 1 Nov 2015 12:18:34 +0000 (04:18 -0800)]
doc: Switch to free fonts. Publish fonts with docs.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 1 Nov 2015 06:54:26 +0000 (23:54 -0700)]
doc: Minor makefile cleanups
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 1 Nov 2015 06:36:03 +0000 (23:36 -0700)]
doc: Convert telemetry and companion docs to asciidoc
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 1 Nov 2015 05:40:13 +0000 (22:40 -0700)]
doc: Convert AltOS doc to asciidoc
It's still pretty stale, but at least it isn't in docbook?
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 1 Nov 2015 04:34:42 +0000 (21:34 -0700)]
doc: Finish converting docs to asciidoc format
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 31 Oct 2015 21:54:20 +0000 (14:54 -0700)]
doc: Add titles to all figures
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 30 Oct 2015 03:32:58 +0000 (20:32 -0700)]
doc: Add updating firmware and using am products asciidoc bits
This finishes the asciidoc transition
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 30 Oct 2015 01:38:46 +0000 (18:38 -0700)]
doc: Add asciidoc version of Altos Droid manual
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 30 Oct 2015 01:14:38 +0000 (18:14 -0700)]
doc: Add asciidoc version of altosui chapter.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 29 Oct 2015 07:49:00 +0000 (16:49 +0900)]
doc: Lots more conversion from docbook to asciidoc
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 29 Oct 2015 06:50:31 +0000 (15:50 +0900)]
doc: Add asciidoc telemini v1.0
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 29 Oct 2015 03:12:15 +0000 (12:12 +0900)]
doc: Start doc transition to asciidoc
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 13 Oct 2015 20:52:32 +0000 (13:52 -0700)]
doc: Force FOP to read images from doc directory
Looks like something changed and fop is now reading from the directory
containing the source file. xmlto places that source in /tmp, making
all relative URIs fail. Fix this by creating a fop configuration file
directing it to load relative to the doc directory and then pass that
through xmlto.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 10 Oct 2015 21:10:59 +0000 (14:10 -0700)]
telelco: Fix pad reset to one on radio signal loss
The pad number was getting reset back to one when signal was lost,
causing pad one to get fired in this case even when already set to arm mode.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 21 Sep 2015 06:03:30 +0000 (07:03 +0100)]
Create directory on keithp.com when uploading devel version
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 21 Sep 2015 06:01:19 +0000 (07:01 +0100)]
altoslib: Keep downloading when a parse error occurs
Eventually, we'll hit a block with no valid data and give up. Until
then, keep going in case the flight computer glitched and wrote bad data.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 21 Sep 2015 05:32:52 +0000 (06:32 +0100)]
altoslib: Clean up remaining direct AltosState.state users
This value has been hidden to avoid having it written accidentally;
there were a few more bits of code using it though.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 21 Sep 2015 05:27:26 +0000 (06:27 +0100)]
Bump release number to 1.6.1.1
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 21 Sep 2015 05:25:49 +0000 (06:25 +0100)]
altoslib: Make sure .eeprom download file is flushed on exception
Flush and close the eeprom file even if an exception occurs to make
sure that contents of the file aren't lost.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 21 Sep 2015 05:00:36 +0000 (06:00 +0100)]
altosuilib: In display thread, set new state synchronously
When replaying telemetry, received_time gets set by both the
telemetry reader (when the file is initially read) and by the replay
reader (as the telemetry is processed). Because these two events are
separated by the time it takes to play the file, the second time is
the one we want for figuring out how long since the last telemetry
packet. However, if we set the global state when pulling the state out
of the telemetry reader, and then the replay reader pauses for a long
time, then the voice output thread sees the intermediate time value
and thinks that it has been a long time since the last packet was
received and reports that the rocket may have crashed.
Fix this by just holding the read state until it has been passed by
the replay reader and had the received_time set to current time.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 14 Sep 2015 05:27:10 +0000 (22:27 -0700)]
altosdroid: Add minus sign and decimal point to lat/lon input fields
Some android devices always have change-sign and decimal-point keys
visible, but some do not. Make sure they're available for lat/lon input.
Signed-off-by: Keith Packard <keithp@keithp.com>