fw/altos
3 years agoBump to 1.0.9.3 1.0.9.3
Keith Packard [Wed, 12 Oct 2011 02:58:04 +0000 (20:58 -0600)]
Bump to 1.0.9.3

TeleScience and TelePyro now work.

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

3 years agoaltos/telescience: Add more header dependencies
Keith Packard [Wed, 12 Oct 2011 00:48:55 +0000 (18:48 -0600)]
altos/telescience: Add more header dependencies

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

3 years agoaltos/avr: telescience doesn't have room for the flash write code
Keith Packard [Wed, 12 Oct 2011 00:48:11 +0000 (18:48 -0600)]
altos/avr: telescience doesn't have room for the flash write code

This is useful for debugging the SPI and flash drivers, but not
necessary in production code.

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

3 years agoaltos/avr: Must leave space for init stack in ram
Keith Packard [Wed, 12 Oct 2011 00:45:51 +0000 (18:45 -0600)]
altos/avr: Must leave space for init stack in ram

The stack used during system initialization lives at the top of RAM,
so leave some space for that.

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

3 years agoaltos/avr: Shrink default stack size to use less ram
Keith Packard [Wed, 12 Oct 2011 00:44:48 +0000 (18:44 -0600)]
altos/avr: Shrink default stack size to use less ram

Not that we have any way of knowing how much stack we're using, but at
least this seems to work.

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

3 years agoaltos: Allow ao_science_slave to not log data
Keith Packard [Wed, 12 Oct 2011 00:13:00 +0000 (18:13 -0600)]
altos: Allow ao_science_slave to not log data

This is mostly for debugging with flash writes disabled.

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

3 years agoaltos: Make HAS_STORAGE_DEBUG define consistent
Keith Packard [Wed, 12 Oct 2011 00:11:56 +0000 (18:11 -0600)]
altos: Make HAS_STORAGE_DEBUG define consistent

This allows products to include the 'w' command for testing flash
writing as needed.

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

3 years agoaltos/avr: Clear SPI receive buffer before clocking new data in
Keith Packard [Wed, 12 Oct 2011 00:10:45 +0000 (18:10 -0600)]
altos/avr: Clear SPI receive buffer before clocking new data in

I don't know why this is necessary, but the receive buffer gets
'extra' data added somehow.

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

3 years agoaltos/avr: Pull-up on the SPI slave select pin
Keith Packard [Tue, 11 Oct 2011 23:44:40 +0000 (17:44 -0600)]
altos/avr: Pull-up on the SPI slave select pin

This makes the board work even when disconnected from TeleMetrum.

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

3 years agoaltos/avr: Register stdio handler when using serial for stdin
Keith Packard [Tue, 11 Oct 2011 23:44:02 +0000 (17:44 -0600)]
altos/avr: Register stdio handler when using serial for stdin

This code was left in a bit of a mess; just clean it up.

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

3 years agoaltos/avr: telescience does not have a serial port
Keith Packard [Tue, 11 Oct 2011 23:42:24 +0000 (17:42 -0600)]
altos/avr: telescience does not have a serial port

The USART is used for SPI to talk to the flash part.

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

3 years agoaltos/avr: Make ao_arch_critical argument be a statement
Keith Packard [Tue, 11 Oct 2011 23:39:35 +0000 (17:39 -0600)]
altos/avr: Make ao_arch_critical argument be a statement

Wrap the argument to ao_arch_critical in do { } while (0); to make
sure it gets correctly checked as a statement.

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

3 years agoaltos/avr: Print newline after dumping ADC values
Keith Packard [Tue, 11 Oct 2011 23:39:06 +0000 (17:39 -0600)]
altos/avr: Print newline after dumping ADC values

Cleans up the formating a bit.

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

3 years agoaltos/avr: SPI mutex is now held by the caller, not the SPI driver
Keith Packard [Tue, 11 Oct 2011 22:03:04 +0000 (16:03 -0600)]
altos/avr: SPI mutex is now held by the caller, not the SPI driver

SPI transactions generally require a read followed by a write, with
the chip select held the whole time. As a result, the SPI bus must be
held across multiple transactions. To make this reliable, the caller
must hold the SPI mutex, instead of the underlying SPI driver.

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

3 years agoaltosui: Deal with missing state transitions in FlightStats window 1.0.9.2
Keith Packard [Sun, 9 Oct 2011 17:09:25 +0000 (11:09 -0600)]
altosui: Deal with missing state transitions in FlightStats window

Any missing start/end times are pinned to the end of the flight.

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

3 years agoaltosui: Deal with telem data that goes backwards in time
Keith Packard [Sun, 9 Oct 2011 16:55:04 +0000 (10:55 -0600)]
altosui: Deal with telem data that goes backwards in time

The new telemetry stuff can send packets with older timestamps, so
sort telem packets read from disk to create an in-order record of the flight.

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

3 years agoaltos: Respond to telemetry rate changes immediately
Keith Packard [Sun, 9 Oct 2011 16:21:56 +0000 (10:21 -0600)]
altos: Respond to telemetry rate changes immediately

Instead of waiting for the previous telemetry interval to expire,
immediately switch to the new telemetry rate. This will provide
more telemetry data early in the boost.

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

3 years agoaltos: Improve TM v1.0 apogee estimate
Keith Packard [Sun, 9 Oct 2011 04:19:52 +0000 (22:19 -0600)]
altos: Improve TM v1.0 apogee estimate

v1.0 boards have noisy accelerometer data caused by interactions
between RF transmission and the accelerometer measurements; this noise
generates a negative bias in the accelerometer readings. The net
effect is that the estimated speed is lower than the actual speed,
causing early an apogee estimate.

By increasing the sigma value for accelerometer data, the kalman
filter 'trusts' the acceleration data less, putting more weight on the
barometer data. This causes the estimated time of apogee to be closer
to the correct value.

This reduces the response to changes in acceleration.

This new value is applied solely to TeleMetrum v1.0 boards. v1.1
boards correct for this error, and hence can use the correct sigma
value for the accelerometer.

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

3 years agoBump to 1.0.9.2
Keith Packard [Sun, 9 Oct 2011 03:31:34 +0000 (21:31 -0600)]
Bump to 1.0.9.2

(1.1 RC 2). Flown at Oktoberfest 2011 on 10/09/2011 (we hope)

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

3 years agoaltosui: Remove igniter voltages from chart.
Keith Packard [Sat, 8 Oct 2011 22:07:57 +0000 (16:07 -0600)]
altosui: Remove igniter voltages from chart.

These are just annoying; when we add the ability to turn stuff on/off
on the fly, we can add them to the list of available items.

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

3 years agoaltos: Ignore ejection bumps when doing boost re-detect
Keith Packard [Sat, 8 Oct 2011 17:51:05 +0000 (11:51 -0600)]
altos: Ignore ejection bumps when doing boost re-detect

An ejection charge looks an awful lot like an extra (really small)
motor burn. Ignore them by averaging the acceleration during
fast/coast using a /64 exponential decay filter.

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

3 years agoao-telem: Add new program to convert telem data to ascii
Keith Packard [Sat, 8 Oct 2011 17:50:24 +0000 (11:50 -0600)]
ao-telem: Add new program to convert telem data to ascii

This reads telem files and displays them in ascii form. It's not done,
and it's not documented, but it's a start.

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

3 years agoaltosui: Allow for multiple instances of each state in the graph
Keith Packard [Sat, 8 Oct 2011 17:46:38 +0000 (11:46 -0600)]
altosui: Allow for multiple instances of each state in the graph

With the new boost re-detect code, we can get multiple instances of
boost/fast/coast, so make sure each are displayed in the graph.

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

3 years agoaltosui: Max acceleration across boost instead of all ascent
Keith Packard [Sat, 8 Oct 2011 17:43:37 +0000 (11:43 -0600)]
altosui: Max acceleration across boost instead of all ascent

This ignores ejection bumps, making the max acceleration far more useful.

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

3 years agoaltos: Write xdata versions of memory functions 1.0.9.1
Keith Packard [Fri, 7 Oct 2011 15:53:09 +0000 (09:53 -0600)]
altos: Write xdata versions of memory functions

These are significantly smaller than the general pointer versions from
libc on the cc1111.

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

Conflicts:

src/Makefile.proto
src/cc1111/ao_adc.c
src/cc1111/ao_packet_master.c
src/core/ao.h

Fix up the new makefiles

3 years agoMerge remote-tracking branch 'origin/simple-quiet' into multiarch
Keith Packard [Fri, 7 Oct 2011 14:41:56 +0000 (08:41 -0600)]
Merge remote-tracking branch 'origin/simple-quiet' into multiarch

Conflicts:
configure.ac

fix version number

3 years agoMerge remote-tracking branch 'uniarch/master' into multiarch
Keith Packard [Fri, 7 Oct 2011 14:40:14 +0000 (08:40 -0600)]
Merge remote-tracking branch 'uniarch/master' into multiarch

Conflicts:
src/core/ao_cmd.c

Use ao_arch_reboot after waiting for a second

3 years agoaltos: TM: Don't turn on packet slave mode until idle/invalid state
Keith Packard [Wed, 28 Sep 2011 04:06:54 +0000 (21:06 -0700)]
altos: TM: Don't turn on packet slave mode until idle/invalid state

Leave the packet link disabled until we've checked the
accelerometer. That way, we cannot accidentally get to idle mode when
the rocket is on the rail.

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

3 years agoaltos: Delay reboot by a second to avoid re-entering idle mode
Keith Packard [Mon, 26 Sep 2011 18:50:28 +0000 (11:50 -0700)]
altos: Delay reboot by a second to avoid re-entering idle mode

TM and Tm go into idle mode if they receive a packet after boot
time. When tebooting the device over the packet link, the packet
master would be (rapidly) polling the device for additional data and
so the device would invariably receive a packet during bootup and go
into idle mode again.

Delay the reboot by a second to give the controller time to disable
the master end of the packet link.

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

3 years agoMerge remote-tracking branch 'origin/master' into multiarch
Keith Packard [Fri, 7 Oct 2011 14:34:59 +0000 (08:34 -0600)]
Merge remote-tracking branch 'origin/master' into multiarch

Conflicts:
configure.ac

Fix version number and location of ao.h header

3 years agoadd run-time dependency on libjfreechart-java
Bdale Garbee [Tue, 27 Sep 2011 06:59:08 +0000 (00:59 -0600)]
add run-time dependency on libjfreechart-java

3 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Sat, 24 Sep 2011 21:34:59 +0000 (15:34 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

3 years agoinclude 1.0.1 release notes in docs, closes: #642705
Bdale Garbee [Tue, 30 Aug 2011 22:59:53 +0000 (16:59 -0600)]
include 1.0.1 release notes in docs, closes: #642705

3 years agoaltos: Debug code for telepyro doesn't fit in telescience
Keith Packard [Fri, 23 Sep 2011 17:24:33 +0000 (10:24 -0700)]
altos: Debug code for telepyro doesn't fit in telescience

Just too many strings.

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

3 years agoDump test conversion of ADC0
Keith Packard [Thu, 22 Sep 2011 06:21:04 +0000 (23:21 -0700)]
Dump test conversion of ADC0

3 years agoDump ADC registers
Keith Packard [Thu, 22 Sep 2011 05:54:56 +0000 (22:54 -0700)]
Dump ADC registers

3 years agoaltos: Fix make-kalman to run under dash
Keith Packard [Thu, 22 Sep 2011 01:13:55 +0000 (18:13 -0700)]
altos: Fix make-kalman to run under dash

Dash can't deal with >&, so use the old-school > file 2>&1

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

3 years agofix bashism that prevents building with /bin/sh->/bin/dash
Bdale Garbee [Wed, 21 Sep 2011 22:42:52 +0000 (16:42 -0600)]
fix bashism that prevents building with /bin/sh->/bin/dash

3 years agoadd missing sense_h entry in TelePyro table
Bdale Garbee [Wed, 21 Sep 2011 22:42:22 +0000 (16:42 -0600)]
add missing sense_h entry in TelePyro table

3 years agoaltos: missing ao_log_single.c
Keith Packard [Wed, 21 Sep 2011 21:24:30 +0000 (14:24 -0700)]
altos: missing ao_log_single.c

Neglected to add this file.

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

3 years agoaltos: Add TelePyro v0.1 support
Keith Packard [Wed, 21 Sep 2011 18:30:43 +0000 (11:30 -0700)]
altos: Add TelePyro v0.1 support

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

3 years agoaltos: Support staging by going back to boost as needed
Keith Packard [Wed, 21 Sep 2011 18:40:56 +0000 (11:40 -0700)]
altos: Support staging by going back to boost as needed

Detect additional motor burns by looking for high positive
acceleration in coast or fast modes.

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

3 years agoaltos: Pre-compute RDF packet len at compile time
Keith Packard [Wed, 21 Sep 2011 18:39:24 +0000 (11:39 -0700)]
altos: Pre-compute RDF packet len at compile time

Instead of computing the RDF packet len at run time, which takes a
pile of code space.

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

3 years agoaltos: SPI slave code is now per-product
Keith Packard [Wed, 21 Sep 2011 18:36:11 +0000 (11:36 -0700)]
altos: SPI slave code is now per-product

We can't write general purpose SPI slave code as we must eliminate
any latency because the SPI ports have no buffering.

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

3 years agoUpdate to version 1.0.2 simple-quiet
Keith Packard [Sat, 17 Sep 2011 01:27:56 +0000 (18:27 -0700)]
Update to version 1.0.2

Bdale is planning to fly this version on 9/17.

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

3 years agoaltos: Silence radio while firing igniters
Keith Packard [Sun, 4 Sep 2011 15:49:16 +0000 (08:49 -0700)]
altos: Silence radio while firing igniters

Hold the radio mutex while firing igniters to reduce potential
interactions between the two.

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

3 years agoaltos: Delay restart of RDF at apogee
Keith Packard [Sun, 4 Sep 2011 15:48:05 +0000 (08:48 -0700)]
altos: Delay restart of RDF at apogee

Instead of immediately trying to send RDF at apogee, start it after
the usual RDF interval to avoid doing RDF while firing the apogee igniter.

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

3 years agoinclude 1.0.1 release notes in docs
Bdale Garbee [Tue, 30 Aug 2011 22:59:53 +0000 (16:59 -0600)]
include 1.0.1 release notes in docs

3 years agoaltos: Split avr clock initialization to ao_clock.c
Keith Packard [Mon, 29 Aug 2011 21:22:19 +0000 (14:22 -0700)]
altos: Split avr clock initialization to ao_clock.c

This will be shared with the attiny code for TeleTerra v0.1

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

3 years agoaltos: don't beep igniter continuity for telenano
Keith Packard [Mon, 29 Aug 2011 00:03:26 +0000 (17:03 -0700)]
altos: don't beep igniter continuity for telenano

Without any igniters, it's not nice to annoy people.

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

3 years agoaltos: Report continuity in telebt
Keith Packard [Sun, 28 Aug 2011 23:55:55 +0000 (16:55 -0700)]
altos: Report continuity in telebt

Report continuity values from remote altimeter

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

3 years agoaltos: add 'report' to telebt
Keith Packard [Sun, 28 Aug 2011 23:39:41 +0000 (16:39 -0700)]
altos: add 'report' to telebt

This beeps out flight state changes and max altitude at landing, just
like the altimeter.

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

3 years agoaltosui: Report error message back from libaltos
Keith Packard [Sun, 28 Aug 2011 22:50:30 +0000 (15:50 -0700)]
altosui: Report error message back from libaltos

This includes changing all of the error dialogs to show the error
message rather than just the file name.

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

3 years agoaltosui: Add bluetooth bits back in
Keith Packard [Sun, 28 Aug 2011 22:50:01 +0000 (15:50 -0700)]
altosui: Add bluetooth bits back in

Stub out functions on mac/windows for now.

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

3 years agoaltos: Add the BT serial debug code back in, disabled
Keith Packard [Sun, 28 Aug 2011 22:45:05 +0000 (15:45 -0700)]
altos: Add the BT serial debug code back in, disabled

This code is useful whenever the BT stuff is acting up, so just leave
the source in place, turned off by default.

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

3 years agoaltos: Add pragma to eliminate unreachable code warning on SDCC
Keith Packard [Sun, 28 Aug 2011 22:43:32 +0000 (15:43 -0700)]
altos: Add pragma to eliminate unreachable code warning on SDCC

This pragma was removed as GCC doesn't support it; make it conditional
on SDCC so that we eliminate a warning message.

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

3 years agoaltos: Blink on telem packet receive instead of toggle
Keith Packard [Sun, 28 Aug 2011 22:42:25 +0000 (15:42 -0700)]
altos: Blink on telem packet receive instead of toggle

Toggling the LED was too confusing; just blink for 100ms each time a
packet comes in.

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

3 years agoaltos: Remove RSSI reporting from telebt
Keith Packard [Sun, 28 Aug 2011 22:40:40 +0000 (15:40 -0700)]
altos: Remove RSSI reporting from telebt

Telebt uses one LED for bluetooth connection and the other for telem
packet reception leaving none for RSSI.

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

3 years agoaltos: Add RSSI blinking to new-style telemetry code
Keith Packard [Sun, 28 Aug 2011 22:38:12 +0000 (15:38 -0700)]
altos: Add RSSI blinking to new-style telemetry code

Pull the RSSI data out locally and set the RSSI led blinking when
using the variable-length TELEM output mechanism.

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

3 years agoBump version to 1.0.9.0
Keith Packard [Sun, 28 Aug 2011 22:20:41 +0000 (15:20 -0700)]
Bump version to 1.0.9.0

Make it distinct from any production version

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

3 years agoaltos: Start logging telemetry data right at boot time
Keith Packard [Sun, 28 Aug 2011 22:18:29 +0000 (15:18 -0700)]
altos: Start logging telemetry data right at boot time

Anything logging telemetry data should just start logging packets as
soon as they boot.

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

3 years agoupdate changelogs for Debian build
Bdale Garbee [Sun, 28 Aug 2011 19:39:37 +0000 (13:39 -0600)]
update changelogs for Debian build

3 years agoaltos: Share log code between telescience and telebt. Add telebt log
Keith Packard [Sat, 27 Aug 2011 22:19:43 +0000 (15:19 -0700)]
altos: Share log code between telescience and telebt. Add telebt log

Telescience and telebt both log data in 32-byte chunks, so share some
code which manages that between the two products. Add simple telemetry
logging to telebt.

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

3 years agoaltosui: launch controller button needs to move over
Keith Packard [Sat, 27 Aug 2011 20:30:34 +0000 (13:30 -0700)]
altosui: launch controller button needs to move over

monitor idle was inserted into position 2,2

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

3 years agoaltos: Fix up telelaunch Makefile
Keith Packard [Sat, 27 Aug 2011 20:28:01 +0000 (13:28 -0700)]
altos: Fix up telelaunch Makefile

Adding all of the mising sources

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

3 years agoaltos: Add HAS_LOG for products that log to eeprom
Keith Packard [Sat, 27 Aug 2011 20:27:28 +0000 (13:27 -0700)]
altos: Add HAS_LOG for products that log to eeprom

Some products have eeprom for config, but none for logging (like telelaunch)

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

3 years agoaltos: ao_launch belongs in cc1111
Keith Packard [Sat, 27 Aug 2011 20:27:00 +0000 (13:27 -0700)]
altos: ao_launch belongs in cc1111

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

3 years agoaltos: add ao_aes/radio_cmac to tidongle, teledongle and telebt
Keith Packard [Sat, 27 Aug 2011 20:25:23 +0000 (13:25 -0700)]
altos: add ao_aes/radio_cmac to tidongle, teledongle and telebt

All of these can do the telelco stuff at this point.

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

3 years agoaltos: move igniter defines back to ao_pins.h
Keith Packard [Sat, 27 Aug 2011 20:24:41 +0000 (13:24 -0700)]
altos: move igniter defines back to ao_pins.h

so that ao_launch gets them too

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

3 years agoaltos: Add makefile for telelaunch
Keith Packard [Sat, 27 Aug 2011 19:42:10 +0000 (12:42 -0700)]
altos: Add makefile for telelaunch

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

3 years agoaltosui: Hook up the launch controller UI from the main button box
Keith Packard [Tue, 2 Aug 2011 05:45:43 +0000 (22:45 -0700)]
altosui: Hook up the launch controller UI from the main button box

Provide a button to start the launch controller UI.

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

3 years agoaltosui: Add primitive UI for TeleLaunch
Keith Packard [Tue, 2 Aug 2011 00:08:24 +0000 (17:08 -0700)]
altosui: Add primitive UI for TeleLaunch

Display status along with arm and fire buttons.

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

3 years agoaltos: Keep relay closed while firing launcher
Keith Packard [Tue, 2 Aug 2011 00:06:49 +0000 (17:06 -0700)]
altos: Keep relay closed while firing launcher

Instead of opening the relay while checking the desired state, keep it
closed until the state goes off.

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

3 years agoaltos: Finish up primitive telelaunch protocol
Keith Packard [Fri, 22 Jul 2011 05:25:45 +0000 (22:25 -0700)]
altos: Finish up primitive telelaunch protocol

This adds two commands to teledongle, one to query and one to actually
fire the igniter. These will (eventually) want to be replaced with
something nicer.

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

3 years agoaltos: Implement remote launch protocol
Keith Packard [Fri, 22 Jul 2011 03:04:05 +0000 (20:04 -0700)]
altos: Implement remote launch protocol

Uses the radio_cmac module to provide secure communication.
Keeps igniter closed for 500ms.
Provides remote status for arming and ignition.

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

3 years agoaltos: Get AES CBC-MAC packet transfers running
Keith Packard [Thu, 21 Jul 2011 06:46:04 +0000 (23:46 -0700)]
altos: Get AES CBC-MAC packet transfers running

This just has simple command-line based packet transfers for testing.

This also adds special ao_telelaunch bits where the launch control
code will live.

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

3 years agoaltos: More work on AES bits
Keith Packard [Sat, 16 Jul 2011 21:25:01 +0000 (14:25 -0700)]
altos: More work on AES bits

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

3 years agoaltos: Start work on AES and raw radio interfaces.
Keith Packard [Sat, 16 Jul 2011 01:51:33 +0000 (18:51 -0700)]
altos: Start work on AES and raw radio interfaces.

We probably don't want this raw radio interface, but it's a start.

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

3 years agoaltos: Start telelaunch product
Keith Packard [Thu, 14 Jul 2011 03:01:47 +0000 (20:01 -0700)]
altos: Start telelaunch product

Looks a lot like TM, but without the flight code.

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

3 years agoaltosui: Add USB IDs for telelaunch and telelco to java bits
Keith Packard [Thu, 14 Jul 2011 02:59:58 +0000 (19:59 -0700)]
altosui: Add USB IDs for telelaunch and telelco to java bits

telelaunch is 0x000f
telelco is 0x0010

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

3 years agoaltos: Add 'send all baro' compile-time option
Keith Packard [Tue, 2 Aug 2011 05:44:13 +0000 (22:44 -0700)]
altos: Add 'send all baro' compile-time option

This option creates a new packet type that delivers full sensor-rate
barometer telemetry data to allow for off-line analysis of flight
algorithms using all of the data, rather than the slower rate provided
either over telemetry or stored in the eeprom file.

Define AO_SEND_ALL_BARO and this will get built in. Perhaps this could
be a run-time option...

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

3 years agoaltos: re-order ao_task to match single-arch code identical-build
Keith Packard [Sat, 27 Aug 2011 03:46:47 +0000 (20:46 -0700)]
altos: re-order ao_task to match single-arch code

This is just for testing to make the new build match the old build
exactly.

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

3 years agoaltos: Integrate telescience support
Keith Packard [Fri, 26 Aug 2011 22:02:43 +0000 (15:02 -0700)]
altos: Integrate telescience support

Adds a few drivers including an LCD driver

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

3 years agomore release process doc updates
Bdale Garbee [Fri, 26 Aug 2011 16:52:55 +0000 (10:52 -0600)]
more release process doc updates

3 years agoupdate release process docs
Bdale Garbee [Fri, 26 Aug 2011 16:51:18 +0000 (10:51 -0600)]
update release process docs

3 years agoupdate changelogs for Debian build debian/1.0.1
Bdale Garbee [Fri, 26 Aug 2011 16:39:45 +0000 (10:39 -0600)]
update changelogs for Debian build

3 years agoroll back packaging changelog for rebuild 1.0.1
Bdale Garbee [Fri, 26 Aug 2011 16:38:44 +0000 (10:38 -0600)]
roll back packaging changelog for rebuild

3 years agoroll release notes version from 1.0 to 1.0.1
Bdale Garbee [Fri, 26 Aug 2011 16:29:58 +0000 (10:29 -0600)]
roll release notes version from 1.0 to 1.0.1

3 years agoignore generated log file
Bdale Garbee [Fri, 26 Aug 2011 16:24:35 +0000 (10:24 -0600)]
ignore generated log file

3 years agofix telemini firmware path name
Bdale Garbee [Fri, 26 Aug 2011 16:07:15 +0000 (10:07 -0600)]
fix telemini firmware path name

3 years agoupdate changelogs for Debian build
Bdale Garbee [Fri, 26 Aug 2011 15:43:06 +0000 (09:43 -0600)]
update changelogs for Debian build

3 years agoget ready for a 1.0.1 release
Bdale Garbee [Fri, 26 Aug 2011 15:41:46 +0000 (09:41 -0600)]
get ready for a 1.0.1 release

3 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Fri, 26 Aug 2011 15:37:01 +0000 (09:37 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

3 years agomoving git-buildpackage config into .git/ since it is fairly specific to
Bdale Garbee [Fri, 26 Aug 2011 15:35:54 +0000 (09:35 -0600)]
moving git-buildpackage config into .git/ since it is fairly specific to
Bdale's build environment, and doesn't need to be in the source package

3 years agoaltos: get avr-demo to build. Pull in AVR drivers and LCD driver
Keith Packard [Fri, 26 Aug 2011 05:55:33 +0000 (22:55 -0700)]
altos: get avr-demo to build. Pull in AVR drivers and LCD driver

This completes the basic task of making an AVR version of altos by
getting the Teensy 'avr-demo' program to build.

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

3 years agoaltos: add GCC/SDCC compat macros, init_stack, save_context and GCC stdio hooks
Keith Packard [Fri, 26 Aug 2011 05:04:36 +0000 (22:04 -0700)]
altos: add GCC/SDCC compat macros, init_stack, save_context and GCC stdio hooks

More arch-indepdency bits.

GCC stdio is different from SDCC, so create suitable code in
avr/ao_avr_stdio.c

Create macros to initialize the task stack frame and save the task
context.

Add GCC/SDCC type definition compatibility macros

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

3 years agoaltos: AVR changes - create ao_arch.h files, define ao_arch_reboot
Keith Packard [Fri, 26 Aug 2011 04:10:56 +0000 (21:10 -0700)]
altos: AVR changes - create ao_arch.h files, define ao_arch_reboot

Start pulling changes needed for avr port; architecture-specific code
will live in <architcture>/ao_arch.h. This first change defines
the ao_arch_reboot macro to reboot the microcontroller.

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

3 years agoaltos: Restructure altos build to prepare for multi-arch support
Keith Packard [Fri, 26 Aug 2011 03:43:44 +0000 (20:43 -0700)]
altos: Restructure altos build to prepare for multi-arch support

Split out sources into separate directories:

core: architecture and product independent bits
cc1111: cc1111-specific code
drivers: architecture independent drivers
product: product-specific sources and Makefile fragments
util: scripts for building stuff

This should have no effect on the built products, but testing is encouraged

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

3 years agoaltos: Clear callsign on initial config load
Keith Packard [Fri, 26 Aug 2011 01:02:45 +0000 (18:02 -0700)]
altos: Clear callsign on initial config load

Before being written the first time, ao_config will get set to 0xff
when the config storage is read. This leaves the tail of the callsign
filled with invalid bytes. Zero the whole thing before loading the
default callsign to make sure any extra bytes are set correctly.

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

3 years agoupdate TeleMini turnon script now that we've made a stable firmware release
Bdale Garbee [Thu, 25 Aug 2011 21:46:30 +0000 (15:46 -0600)]
update TeleMini turnon script now that we've made a stable firmware release