fw/altos
11 years agoParse GPS data locally. Add 'g' command to display recent GPS results.
Keith Packard [Sun, 19 Apr 2009 06:17:45 +0000 (23:17 -0700)]
Parse GPS data locally. Add 'g' command to display recent GPS results.

This parses the GPS GGA message and stores it in a global variable,
protected by a mutex.

11 years agoAdd task names and 'T' command to show task status.
Keith Packard [Sun, 19 Apr 2009 06:16:01 +0000 (23:16 -0700)]
Add task names and 'T' command to show task status.

The T command shows the current wchan and PC for each task in the system.

11 years agoFix GPL version at 2
Keith Packard [Sun, 19 Apr 2009 02:32:18 +0000 (19:32 -0700)]
Fix GPL version at 2

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoAdd gps, debug dongle support and pressure alt tables
Keith Packard [Sat, 18 Apr 2009 06:38:14 +0000 (23:38 -0700)]
Add gps, debug dongle support and pressure alt tables

GPS also pulled in serial support. The altitude tables take raw 11-bit
pressure sample numbers and convert them to standard pressure altitude
values.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoMove a bunch of variables from __data to __xdata
Keith Packard [Wed, 15 Apr 2009 21:25:26 +0000 (14:25 -0700)]
Move a bunch of variables from __data to __xdata

11 years agoSlow down panic code, disable interrupts
Keith Packard [Wed, 15 Apr 2009 04:25:15 +0000 (21:25 -0700)]
Slow down panic code, disable interrupts

11 years agoKeep reporting flight state while it changes
Keith Packard [Wed, 15 Apr 2009 04:24:25 +0000 (21:24 -0700)]
Keep reporting flight state while it changes

11 years agouse red LED to indicate system startup
Keith Packard [Wed, 15 Apr 2009 04:23:55 +0000 (21:23 -0700)]
use red LED to indicate system startup

11 years agoUse ao_ee_flush_internal while holding mutex
Keith Packard [Wed, 15 Apr 2009 04:23:13 +0000 (21:23 -0700)]
Use ao_ee_flush_internal while holding mutex

11 years agoLeave beeping and lights to the flight code
Keith Packard [Wed, 15 Apr 2009 04:22:56 +0000 (21:22 -0700)]
Leave beeping and lights to the flight code

11 years agoMake mutex functions reentrant
Keith Packard [Wed, 15 Apr 2009 04:22:31 +0000 (21:22 -0700)]
Make mutex functions reentrant

11 years agoAdd in existing flight pieces: flight/report/log
Keith Packard [Wed, 15 Apr 2009 02:08:01 +0000 (19:08 -0700)]
Add in existing flight pieces: flight/report/log

These pieces come from the old telemetrum firmware.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoAdd eeprom driver and command loop
Keith Packard [Tue, 14 Apr 2009 21:21:56 +0000 (14:21 -0700)]
Add eeprom driver and command loop

This involved adding dma control and a mutex implementation.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoSwitch from --model-large to --model-small
Keith Packard [Tue, 14 Apr 2009 18:04:09 +0000 (11:04 -0700)]
Switch from --model-large to --model-small

This shrinks the application quite a bit, and should make it faster as well.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoAdd comments, clean up white space, etc.
Keith Packard [Tue, 14 Apr 2009 17:02:19 +0000 (10:02 -0700)]
Add comments, clean up white space, etc.

Various clean ups now that the basic code appears to work.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoSwitch USB to double-buffered
Keith Packard [Tue, 14 Apr 2009 04:58:07 +0000 (21:58 -0700)]
Switch USB to double-buffered

11 years agoFix USB input/output by reloading packet limits.
Keith Packard [Tue, 14 Apr 2009 04:51:59 +0000 (21:51 -0700)]
Fix USB input/output by reloading packet limits.

The USB controller is reset during the connection process, which clears the
packet limits set in the controller at initialization time. Reload those
values when the configuration is set.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoUSB working up through reading strings
Keith Packard [Tue, 14 Apr 2009 03:39:46 +0000 (20:39 -0700)]
USB working up through reading strings

11 years agoAdd USB support.
Keith Packard [Mon, 13 Apr 2009 20:51:08 +0000 (13:51 -0700)]
Add USB support.

This offers a single CDC ACM device over USB.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoAdd beep/led support.
Keith Packard [Mon, 13 Apr 2009 06:53:55 +0000 (23:53 -0700)]
Add beep/led support.

Support our P2_0 connected buzzer, and formalize LED output support.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoAdd A/D sampler
Keith Packard [Mon, 13 Apr 2009 06:17:16 +0000 (23:17 -0700)]
Add A/D sampler

Sample A/D at the timer tick, placing data in a ring
of samples.

Signed-off-by: Keith Packard <keithp@keithp.com>
11 years agoAdd 100Hz timer
Keith Packard [Mon, 13 Apr 2009 05:52:47 +0000 (22:52 -0700)]
Add 100Hz timer

Use Timer 1 to generate a 100Hz timer interrupt

11 years agoUpdate README
Keith Packard [Mon, 13 Apr 2009 04:58:49 +0000 (21:58 -0700)]
Update README

11 years agoGPL Version 2 only
Keith Packard [Mon, 13 Apr 2009 04:52:56 +0000 (21:52 -0700)]
GPL Version 2 only

11 years agoMake test more complicated
Keith Packard [Mon, 13 Apr 2009 04:33:55 +0000 (21:33 -0700)]
Make test more complicated

11 years agoSP points at last pushed byte
Keith Packard [Mon, 13 Apr 2009 04:33:46 +0000 (21:33 -0700)]
SP points at last pushed byte

11 years agoAdd .gitignore
Keith Packard [Mon, 13 Apr 2009 03:27:03 +0000 (20:27 -0700)]
Add .gitignore

11 years agoInitial AltOS import
Keith Packard [Mon, 13 Apr 2009 03:25:39 +0000 (20:25 -0700)]
Initial AltOS import