fw/altos
13 years agoaltos: Switch LED usage for TeleMini around
Keith Packard [Mon, 7 Mar 2011 07:52:11 +0000 (23:52 -0800)]
altos: Switch LED usage for TeleMini around

We're using the LEDs instead of tones, so make red mean 'low tone',
green mean 'middle tone' and both mean 'high tone'.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoao_intflash: Avoid overwriting code
Anthony Towns [Sat, 26 Feb 2011 06:06:48 +0000 (16:06 +1000)]
ao_intflash: Avoid overwriting code

Require firmware to specify the end of its codespace in its Makefile,
and use this to determine where the start of available flash is. Should
give compile time errors if either there's no room left for storage, or
if there's not enough room for code.

13 years agoaltos: Add TeleMini v1.0
Keith Packard [Mon, 7 Mar 2011 05:03:57 +0000 (21:03 -0800)]
altos: Add TeleMini v1.0

This adds initial code for the telemini board, a two channel
flight computer with digital telemetry and a barometric sensor.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltos: Start with packet slave running. Turn off in pad mode.
Keith Packard [Mon, 7 Mar 2011 05:00:52 +0000 (21:00 -0800)]
altos: Start with packet slave running. Turn off in pad mode.

Instead of turning slave mode on in idle mode, start with it running
and disable it in pad mode instead. This means packet mode is
available in startup mode too.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltos/test: Add baro-only flight test program
Keith Packard [Mon, 7 Mar 2011 05:59:08 +0000 (21:59 -0800)]
altos/test: Add baro-only flight test program

This builds the flight code in baro-only mode for testing.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltos/test: Use ao_convert.c instead of hand-coded pres → alt func
Keith Packard [Mon, 7 Mar 2011 05:57:52 +0000 (21:57 -0800)]
altos/test: Use ao_convert.c instead of hand-coded pres → alt func

Fix up ao_convert.c so that it can be used within the flight test code
instead of having a (broken) copy of the code there.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltos: Make serial, usb, beeper and accelerometer optional components
Keith Packard [Mon, 7 Mar 2011 04:56:25 +0000 (20:56 -0800)]
altos: Make serial, usb, beeper and accelerometer optional components

Not all boards will have these, so fix places that use them to deal
with that.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoao_intflash: Use internal flash for storage
Anthony Towns [Sat, 26 Feb 2011 01:48:30 +0000 (11:48 +1000)]
ao_intflash: Use internal flash for storage

Makes any free pages at end of CC1111's internal flash available via
the ao_storage API.

13 years agoaoview: remove -s option.
Keith Packard [Wed, 16 Mar 2011 21:10:06 +0000 (14:10 -0700)]
aoview: remove -s option.

13 years agoBump published version number to 0.9.1
Keith Packard [Wed, 16 Mar 2011 21:08:42 +0000 (14:08 -0700)]
Bump published version number to 0.9.1

13 years agoaltosui: Missed jcommon.jar in the Mac OS install image
Keith Packard [Wed, 16 Mar 2011 21:05:13 +0000 (14:05 -0700)]
altosui: Missed jcommon.jar in the Mac OS install image

This caused graphing to fail on Mac OS X

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltos: Oops. Lost a couple of commands when merging the doc patch
Keith Packard [Mon, 7 Mar 2011 08:26:17 +0000 (00:26 -0800)]
altos: Oops. Lost a couple of commands when merging the doc patch

I didn't merge this carefully enough and managed to lose the 'f'
and 'e' commands, which are kinda useful.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agosrc/ao_cmd: Shave off bytes from doc strings
Anthony Towns [Sun, 27 Feb 2011 01:11:12 +0000 (11:11 +1000)]
src/ao_cmd: Shave off bytes from doc strings

Switch to using { func, "X args\0Desc" } to specify command, saving
a char field by looking at help[0] instead, and reduce help length by
doing alignment with printf instead of hardcoded spaces.

13 years agoRevert "src/ao_gps_skytraq.c: Update logging rate to 10Hz"
Keith Packard [Mon, 7 Mar 2011 08:01:01 +0000 (00:01 -0800)]
Revert "src/ao_gps_skytraq.c: Update logging rate to 10Hz"

This reverts commit b080e933a65d268aaaec8cfd5f617a13d5babc43.

10Hz data isn't any better than 1Hz data; it still doesn't like going
upwards rapidly.

13 years agoaltosui: Display eeprom parsing errors to user
Keith Packard [Sat, 19 Feb 2011 09:06:01 +0000 (01:06 -0800)]
altosui: Display eeprom parsing errors to user

When reading the eeprom, any parsing errors (most likely bad
checksums) indicate some kind of problem with either the hardware or
the flight software. Display these to the user and do not erase the
flight.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltosui: Always read whole eeprom block, even at end of flight
Keith Packard [Sat, 19 Feb 2011 09:04:19 +0000 (01:04 -0800)]
altosui: Always read whole eeprom block, even at end of flight

Instead of stopping early, continue reading the whole eeprom block so
that the extra serial data doesn't end up confusing the next user of
the serial line, which may well be reading the next flight.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltosui: Mark empty eeprom records 'invalid', don't generate exception
Keith Packard [Sat, 19 Feb 2011 09:02:00 +0000 (01:02 -0800)]
altosui: Mark empty eeprom records 'invalid', don't generate exception

When reading empty eeprom records, mark them as 'invalid', but don't
generate an exception as it's normal to read these at the end of the
flight log.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoupdate changelogs for Debian build debian/0.9.1
Bdale Garbee [Sat, 19 Feb 2011 06:56:01 +0000 (23:56 -0700)]
update changelogs for Debian build

13 years agotie bringup scripts to Bdale's bench TeleDongle 0.9.1
Bdale Garbee [Sat, 19 Feb 2011 02:54:18 +0000 (19:54 -0700)]
tie bringup scripts to Bdale's bench TeleDongle

13 years agosrc/ao_gps_skytraq.c: Update logging rate to 10Hz
Anthony Towns [Fri, 18 Feb 2011 19:49:15 +0000 (05:49 +1000)]
src/ao_gps_skytraq.c: Update logging rate to 10Hz

Send commands to skytraq to update baud rate to 57,600 bps, and
set NMEA output rate to 10Hz.

13 years agosrc/ao_gps_skytraq: simplify parsing code
Anthony Towns [Fri, 18 Feb 2011 18:17:17 +0000 (04:17 +1000)]
src/ao_gps_skytraq: simplify parsing code

Added macros to make correctly constructing skytraq commands easier.
Simplified code path for NMEA processing marginally.

13 years agoao_radio: generalise setup of packet size
Anthony Towns [Wed, 2 Feb 2011 09:12:57 +0000 (19:12 +1000)]
ao_radio: generalise setup of packet size

13 years agoaltos/test: auto-configure acceleration parameters from the log file
Keith Packard [Fri, 18 Feb 2011 18:02:46 +0000 (10:02 -0800)]
altos/test: auto-configure acceleration parameters from the log file

The flight test code had static accelerometer configuration values,
making it impossible to use data from different boards without
recompiling. As the eeprom and telem log files both contain the
necessary data, parse that instead.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltos/test: Add dependencies in the Makefile for ao_flight_test
Keith Packard [Fri, 18 Feb 2011 17:54:01 +0000 (09:54 -0800)]
altos/test: Add dependencies in the Makefile for ao_flight_test

Yes, it would be nice to automate dependency generation here, but I
can't be bothered.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoao-load: fix usage message to note that '=' is required for options
Keith Packard [Fri, 18 Feb 2011 17:51:37 +0000 (09:51 -0800)]
ao-load: fix usage message to note that '=' is required for options

The usage message was suggesting incorrect command line syntax; long
options use '=' between the option name and value, not whitespace.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoupdate changelogs for Debian build debian/0.9
Bdale Garbee [Wed, 19 Jan 2011 19:47:25 +0000 (12:47 -0700)]
update changelogs for Debian build

13 years agoelide changelog entries or re-release of 0.9 0.9
Bdale Garbee [Wed, 19 Jan 2011 19:46:02 +0000 (12:46 -0700)]
elide changelog entries or re-release of 0.9

13 years agoupdate turnon script to prefer TeleDongle as programmer
Bdale Garbee [Wed, 19 Jan 2011 19:42:40 +0000 (12:42 -0700)]
update turnon script to prefer TeleDongle as programmer

13 years agoupdate changelogs for Debian build debian/0.9+2+g97f4f2e
Bdale Garbee [Wed, 19 Jan 2011 19:26:53 +0000 (12:26 -0700)]
update changelogs for Debian build

13 years agoaltos: Program default flight log max value for new boards
Keith Packard [Wed, 19 Jan 2011 19:21:52 +0000 (11:21 -0800)]
altos: Program default flight log max value for new boards

New boards have no config space values at all, and so they need each
value to be set. Yes, this should be fixed so that there aren't two
copies of these assignments.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoupdate changelogs for Debian build
Bdale Garbee [Wed, 19 Jan 2011 07:05:25 +0000 (00:05 -0700)]
update changelogs for Debian build

13 years agoprepare to release
Bdale Garbee [Wed, 19 Jan 2011 07:04:45 +0000 (00:04 -0700)]
prepare to release

13 years agoupdate changelogs for Debian build debian/0.8.1+81+g4ae724f
Bdale Garbee [Wed, 19 Jan 2011 06:55:42 +0000 (23:55 -0700)]
update changelogs for Debian build

13 years agowe need an install target to prevent parent dir make from failing
Bdale Garbee [Wed, 19 Jan 2011 06:54:36 +0000 (23:54 -0700)]
we need an install target to prevent parent dir make from failing

13 years agoupdate changelogs for Debian build debian/0.8.1+79+g9a5666f
Bdale Garbee [Wed, 19 Jan 2011 06:48:08 +0000 (23:48 -0700)]
update changelogs for Debian build

13 years agodoc: Build with 'make all' from top level. Build with 'make fat'
Keith Packard [Wed, 19 Jan 2011 06:46:25 +0000 (22:46 -0800)]
doc: Build with 'make all' from top level. Build with 'make fat'

This will make sure the docs are up-to-date for both regular and
fat builds.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agofat: Add docs to Linux package
Keith Packard [Wed, 19 Jan 2011 06:39:07 +0000 (22:39 -0800)]
fat: Add docs to Linux package

Oops. Missed this one.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agofat: Add firmware for v1.1 and docs to mac/windows/linux installers
Keith Packard [Wed, 19 Jan 2011 06:34:15 +0000 (22:34 -0800)]
fat: Add firmware for v1.1 and docs to mac/windows/linux installers

We'll need to be sure to update this each time we add a product.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agofreshen copyright year
Bdale Garbee [Wed, 19 Jan 2011 06:29:03 +0000 (23:29 -0700)]
freshen copyright year

13 years agoadd 0.9 revision entry, with caveat about telemetry format change
Bdale Garbee [Wed, 19 Jan 2011 06:18:42 +0000 (23:18 -0700)]
add 0.9 revision entry, with caveat about telemetry format change

13 years agodoc: Add v0.9 features from altosui to documentation.
Keith Packard [Wed, 19 Jan 2011 04:39:58 +0000 (20:39 -0800)]
doc: Add v0.9 features from altosui to documentation.

New flight download UI and new config items.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agodoc: Don't delete telemetrum-outline.pdf
Keith Packard [Wed, 19 Jan 2011 04:39:30 +0000 (20:39 -0800)]
doc: Don't delete telemetrum-outline.pdf

This has a drilling template for the board.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoupdate changelogs for Debian build debian/0.8.1+71+gda42f40
Bdale Garbee [Wed, 19 Jan 2011 00:27:11 +0000 (17:27 -0700)]
update changelogs for Debian build

13 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Mon, 17 Jan 2011 16:50:17 +0000 (09:50 -0700)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

13 years agoupdate documentation to reflect reality that modifying a board or separate
Bdale Garbee [Mon, 17 Jan 2011 16:49:45 +0000 (09:49 -0700)]
update documentation to reflect reality that modifying a board or separate
pyro battery is not as simple as one trace cut on v1.0 and v1.1 boards

13 years agodoc: Remove mention of ao_wake_task
Keith Packard [Mon, 17 Jan 2011 07:23:45 +0000 (23:23 -0800)]
doc: Remove mention of ao_wake_task

This has been removed from the altos sources, so remove it from the
docs too.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltos: Use 5V reference data to correct accelerometer measurements.
Keith Packard [Sat, 15 Jan 2011 20:26:53 +0000 (12:26 -0800)]
altos: Use 5V reference data to correct accelerometer measurements.

When the 3.3V and 5V values shift relative to each other (usually due
to changes in power consumption), the measured acceleration will
appear to shift. This patch converts the 3.3V referenced acceleration
value into a 5V referenced acceleration, eliminating this error.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltos: Optimize fetching of ADC data in flight code
Keith Packard [Sat, 15 Jan 2011 20:25:57 +0000 (12:25 -0800)]
altos: Optimize fetching of ADC data in flight code

This stores the address of the desired sample in a local variable and
then fetches through that. Saves quite a few instructions.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltos: Sample the accelerometer reference voltage on v1.1 boards
Keith Packard [Sat, 15 Jan 2011 20:18:32 +0000 (12:18 -0800)]
altos: Sample the accelerometer reference voltage on v1.1 boards

This places the 5v reference samples in an array parallel to the basic
ADC values. It doesn't do anything with the values, just stores them.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltos: Ensure flight code gets first crack at new ADC data
Keith Packard [Sat, 15 Jan 2011 20:12:02 +0000 (12:12 -0800)]
altos: Ensure flight code gets first crack at new ADC data

Instead of having everyone wait on the raw ADC ring, have the flight
code wait on that and have everyone else wait for the flight code to
finish looking at the data and move its pointer forwards.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltos: Auto-calibrate linux-based flight testing code
Keith Packard [Sun, 16 Jan 2011 23:57:15 +0000 (15:57 -0800)]
altos: Auto-calibrate linux-based flight testing code

Use the provided ground acceleration average to set the two
accelerometer calibration values so that the flight code will
detect pad/idle mode correctly.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoRework invalid accel cal detection code
Mike Beattie [Mon, 17 Jan 2011 02:03:40 +0000 (15:03 +1300)]
Rework invalid accel cal detection code

Slightly reduces code space.

Uncalibrated accelerometer now enters invalid state as well.

Signed-off-by: Mike Beattie <mike@ethernal.org>
13 years agoaltosui: Remove spurious colons from eeprom selection headers
Keith Packard [Sun, 16 Jan 2011 22:40:31 +0000 (14:40 -0800)]
altosui: Remove spurious colons from eeprom selection headers

This colons make the presentation a bit confusing.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltos: Add DATA_TO_XDATA to linux test harness
Keith Packard [Sat, 15 Jan 2011 08:56:22 +0000 (00:56 -0800)]
altos: Add DATA_TO_XDATA to linux test harness

The flight test harness needs to expose every function used by the
flight code in some form, and this macro is about to become used.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltos: Added check for out of bounds accel
Mike Beattie [Sat, 15 Jan 2011 11:10:30 +0000 (00:10 +1300)]
altos: Added check for out of bounds accel

Chose invalid flight mode instead of idle to give user feedback.

Signed-off-by: Mike Beattie <mike@ethernal.org>
13 years agoaltos: Added check for an accel value above 1.5g
Mike Beattie [Sat, 15 Jan 2011 10:21:26 +0000 (23:21 +1300)]
altos: Added check for an accel value above 1.5g

When detecting flight or idle mode, this should indicate
that accel cal values are out of whack.

Signed-off-by: Mike Beattie <mike@ethernal.org>
13 years agoaltos: average 512 accel/baro samples at startup instead of 1000
Keith Packard [Sat, 15 Jan 2011 19:26:31 +0000 (11:26 -0800)]
altos: average 512 accel/baro samples at startup instead of 1000

This lets us use a simple shift instead of a divide, saving a huge
amount of code space.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltos: Restructure skytraq NMEA parsing code to save some space
Anthony Towns [Sun, 16 Jan 2011 00:54:45 +0000 (10:54 +1000)]
altos: Restructure skytraq NMEA parsing code to save some space

Splitting this into several smaller functions appears to make SDCC
generate better code.

13 years agoaltos: Flush log when full
Keith Packard [Sun, 16 Jan 2011 06:42:38 +0000 (22:42 -0800)]
altos: Flush log when full

When the log storage is full, make sure any pending writes are flushed
out so that the last bit isn't lost.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltos: TELEMETRY PROTOCOL CHANGE. Switch to 16-bit serial numbers.
Keith Packard [Sun, 16 Jan 2011 00:25:10 +0000 (16:25 -0800)]
altos: TELEMETRY PROTOCOL CHANGE. Switch to 16-bit serial numbers.

What a terrible mistake! The flight computer serial numbers were
recorded in only 8 bits, so serial numbers > 255 would get truncated.

There's really no fix other than bumping the field to 16 bits and
reflashing every TM and TD on the planet. Very unfortunate.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agodoc: inkscape tracks the filename inside the document
Keith Packard [Sat, 15 Jan 2011 20:05:50 +0000 (12:05 -0800)]
doc: inkscape tracks the filename inside the document

telemetrum-outline.svg was renamed from telemetrum.svg and inkscape
appears to care.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltosui: Require 4 sats to light up the 'GPS locked' light.
Keith Packard [Sat, 15 Jan 2011 20:02:43 +0000 (12:02 -0800)]
altosui: Require 4 sats to light up the 'GPS locked' light.

This tracks the same GPS signal requirement needed for 'GPS ready' and
ensures that we have a 3d fix.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltosui: Ensure serial device is closed after eeprom download finishes
Keith Packard [Sun, 16 Jan 2011 22:30:38 +0000 (14:30 -0800)]
altosui: Ensure serial device is closed after eeprom download finishes

As this code is all event-driven, track which events will trigger
further work and block closing the device in those specific cases,
ensuring that all other code paths end up closing the device.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltosui: Remove debug message when eeprom downloads are complete.
Keith Packard [Sun, 16 Jan 2011 22:29:57 +0000 (14:29 -0800)]
altosui: Remove debug message when eeprom downloads are complete.

This message isn't useful now that this code appears to work.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltosui: Use long input flush timeout when remote.
Keith Packard [Sun, 16 Jan 2011 22:28:35 +0000 (14:28 -0800)]
altosui: Use long input flush timeout when remote.

100ms isn't long enough to capture pending remote serial input, so use
300 ms in that mode.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltosui: Make serial debug more complete and accurate
Keith Packard [Sun, 16 Jan 2011 22:26:18 +0000 (14:26 -0800)]
altosui: Make serial debug more complete and accurate

Display all serial input, including telemetry.
Wait to display serial output until flush time, to debug missing flushing.
Show when devices are opened and closed.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltosui: Reset eeprom download instance variables before reading flight
Keith Packard [Sun, 16 Jan 2011 06:43:37 +0000 (22:43 -0800)]
altosui: Reset eeprom download instance variables before reading flight

To deal with downloading multiple flights in a single invocation, make
sure all relevant instance variables are set back to start of flight
download values each time a log is read.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoClose serial port if Download/Delete dialog is cancelled.
Mike Beattie [Sun, 16 Jan 2011 18:56:53 +0000 (07:56 +1300)]
Close serial port if Download/Delete dialog is cancelled.

Signed-off-by: Mike Beattie <mike@ethernal.org>
13 years agoConvert EepromSelect dialog to use a GridBag
Mike Beattie [Sun, 16 Jan 2011 11:40:07 +0000 (00:40 +1300)]
Convert EepromSelect dialog to use a GridBag

Signed-off-by: Mike Beattie <mike@ethernal.org>
13 years agoRe-order and re-arrange eeprom download dialog
Mike Beattie [Sun, 16 Jan 2011 07:25:19 +0000 (20:25 +1300)]
Re-order and re-arrange eeprom download dialog

Signed-off-by: Mike Beattie <mike@ethernal.org>
13 years agodoc: Add telemetrum mounting template in svg and pdf forms
Keith Packard [Sat, 15 Jan 2011 05:44:59 +0000 (21:44 -0800)]
doc: Add telemetrum mounting template in svg and pdf forms

telemetrum-outline.svg and telemetrum-outline.pdf

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoupdate changelogs for Debian build debian/0.8.1+42+g646e192
Bdale Garbee [Sat, 15 Jan 2011 01:01:16 +0000 (18:01 -0700)]
update changelogs for Debian build

13 years agoupdate changelogs for Debian build debian/0.8.1+41+gd908c2e
Bdale Garbee [Sat, 15 Jan 2011 01:01:00 +0000 (18:01 -0700)]
update changelogs for Debian build

13 years agoaltosui: Add preference for serial debugging.
Keith Packard [Sat, 15 Jan 2011 00:47:36 +0000 (16:47 -0800)]
altosui: Add preference for serial debugging.

This dumps serial input/output to stdout.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltosui: Ensure serial line is flushed after disabling remote link
Keith Packard [Sat, 15 Jan 2011 00:47:19 +0000 (16:47 -0800)]
altosui: Ensure serial line is flushed after disabling remote link

Flush the '~' character.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltosui: Show dialog after successful delete or when no flights
Keith Packard [Sat, 15 Jan 2011 00:44:50 +0000 (16:44 -0800)]
altosui: Show dialog after successful delete or when no flights

Make sure the user always sees confirmation for flight log management.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoupdate changelogs for Debian build debian/0.8.1+37+g97b1ca9
Bdale Garbee [Fri, 14 Jan 2011 21:31:19 +0000 (14:31 -0700)]
update changelogs for Debian build

13 years agoupdate changelogs for Debian build debian/0.8.1+36+gd794ef9
Bdale Garbee [Fri, 14 Jan 2011 21:30:49 +0000 (14:30 -0700)]
update changelogs for Debian build

13 years agoaltos: check for valid flight number in ao_log_delete
Keith Packard [Wed, 12 Jan 2011 20:41:26 +0000 (12:41 -0800)]
altos: check for valid flight number in ao_log_delete

Zero is not a valid flight number, and ao_log_flight uses that to
indicate 'no flight in this slot'. Check the user-provided input for
zero before looking through the slots.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltosui: Add eeprom 'manage' ui to download and delete multiple flights
Keith Packard [Wed, 12 Jan 2011 20:40:45 +0000 (12:40 -0800)]
altosui: Add eeprom 'manage' ui to download and delete multiple flights

This shows the list of available flights and provides options to
download and/or delete each one.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltosui: Add support for parsing list of flights from the 'l' command
Keith Packard [Wed, 12 Jan 2011 05:28:07 +0000 (21:28 -0800)]
altosui: Add support for parsing list of flights from the 'l' command

This adds parsing support to enumerate the available flights, but does
not yet provide any UI to use it.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltos: oops -- 'e' command was only showing 7 of the 8 bytes per line
Keith Packard [Wed, 12 Jan 2011 05:26:41 +0000 (21:26 -0800)]
altos: oops -- 'e' command was only showing 7 of the 8 bytes per line

Just a silly off-by-one error when printing out the data received from flash.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltosui: Split eeprom download code apart
Keith Packard [Tue, 11 Jan 2011 23:39:24 +0000 (15:39 -0800)]
altosui: Split eeprom download code apart

Create separate 'download config data', 'read single record' and 'read
block' functions. This code will be shared with future multi-log
reading code for new firmware.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltos: Remove redundant initialization of ao_interval variables
Anthony Towns [Sat, 8 Jan 2011 05:00:10 +0000 (21:00 -0800)]
altos: Remove redundant initialization of ao_interval variables

These are all initialized in the ao_flight_drogue state transition.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltos: Remove unused accel_vel_mach and accel_vel_boost variables
Anthony Towns [Sat, 8 Jan 2011 04:52:33 +0000 (20:52 -0800)]
altos: Remove unused accel_vel_mach and accel_vel_boost variables

Presumably left-over debugging code.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltosui: Add configuration of flight log size
Keith Packard [Sat, 8 Jan 2011 04:46:29 +0000 (20:46 -0800)]
altosui: Add configuration of flight log size

This adds to the TeleMetrum configuration UI the ability to set the
maximum flight log size.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltos: Check for full log and complain
Keith Packard [Sat, 8 Jan 2011 04:26:39 +0000 (20:26 -0800)]
altos: Check for full log and complain

Reports special tone along with the continuity checks.
Reports flight 0 in telemetry.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltos: Check requested log max size against available space
Keith Packard [Sat, 8 Jan 2011 04:25:09 +0000 (20:25 -0800)]
altos: Check requested log max size against available space

Make sure the amount of memory requested for a single log isn't more
than is available on the device.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltos: Optimize Morse code generation
Anthony Towns [Sat, 8 Jan 2011 04:18:25 +0000 (20:18 -0800)]
altos: Optimize Morse code generation

This reduces the size of data and code needed to report the
flight states

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltos: ensure erase mark is written when erasing flights
Keith Packard [Sat, 8 Jan 2011 04:13:28 +0000 (20:13 -0800)]
altos: ensure erase mark is written when erasing flights

It was getting called only when *failing* to erase a flight (oops),
secondly, it wasn't getting written because ao_storage_flush wasn't
getting called.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltos: report flight log offsets in hex block numbers instead of bytes
Keith Packard [Sat, 8 Jan 2011 01:56:06 +0000 (17:56 -0800)]
altos: report flight log offsets in hex block numbers instead of bytes

makes them compatible with the 'e' command.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltos: white space fix
Keith Packard [Sat, 8 Jan 2011 01:55:54 +0000 (17:55 -0800)]
altos: white space fix

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltos: Speed up at45 and 25lc erase speeds
Keith Packard [Sat, 8 Jan 2011 01:54:54 +0000 (17:54 -0800)]
altos: Speed up at45 and 25lc erase speeds

No need to read the block to be erased before erasing it.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltos: support storage of multiple flights.
Keith Packard [Fri, 7 Jan 2011 22:58:39 +0000 (14:58 -0800)]
altos: support storage of multiple flights.

This adds the logging support for dealing with multiple flights

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltos: Add configuration parameter for maximum flight log size
Keith Packard [Fri, 7 Jan 2011 18:05:11 +0000 (10:05 -0800)]
altos: Add configuration parameter for maximum flight log size

This parameter will permit available storage to be split into multiple
separate flight logs.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoupdate changelogs for Debian build debian/0.8.1+18+g408a3e0
Bdale Garbee [Fri, 7 Jan 2011 07:52:50 +0000 (00:52 -0700)]
update changelogs for Debian build

13 years agoaltos: Mark end of available flight list with 'done' to make the UI
Keith Packard [Fri, 7 Jan 2011 07:38:13 +0000 (23:38 -0800)]
altos: Mark end of available flight list with 'done' to make the UI
code easier to write

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltos: Rip out 'optimization' in ao_log_scan
Keith Packard [Fri, 7 Jan 2011 07:35:31 +0000 (23:35 -0800)]
altos: Rip out 'optimization' in ao_log_scan

Remove premature optimization to avoid re-scanning the flight logs for
the best empty entry.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltos: Move common storage code to ao_storage.c. Add M25P80 driver
Keith Packard [Fri, 7 Jan 2011 06:37:38 +0000 (22:37 -0800)]
altos: Move common storage code to ao_storage.c. Add M25P80 driver

This reworks the storage API so that you erase blocks and then store
data to them so that the M25P80 driver will work.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 years agoaltos: Require manual flight erasing.
Keith Packard [Fri, 7 Jan 2011 01:34:58 +0000 (17:34 -0800)]
altos: Require manual flight erasing.

This supports flash chips that require larger erase blocks.

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