fw/altos
14 years agoMove beep_init to end of file to be consistent with other files
Keith Packard [Sat, 25 Apr 2009 02:09:09 +0000 (19:09 -0700)]
Move beep_init to end of file to be consistent with other files

14 years agoUpdate flight algorithm based on data collected from SN-1 Flight 1
Keith Packard [Fri, 24 Apr 2009 17:19:31 +0000 (10:19 -0700)]
Update flight algorithm based on data collected from SN-1 Flight 1

This now correctly sequences through the flight data collected from the
first TeleMetrum test flight.

This also completes up the flight algorithm test harness (ao_flight_test),
which runs the flight algorithm on the Linux host from a captured data log.

14 years agoAdd igniters and update flight control algorithm
Keith Packard [Fri, 24 Apr 2009 05:17:44 +0000 (22:17 -0700)]
Add igniters and update flight control algorithm

14 years agoAvoid ram from 0xfda2 through feff, its funky
Keith Packard [Fri, 24 Apr 2009 07:15:09 +0000 (00:15 -0700)]
Avoid ram from 0xfda2 through feff, its funky

14 years agoremove ao_flight_test until its ready
Keith Packard [Fri, 24 Apr 2009 05:18:33 +0000 (22:18 -0700)]
remove ao_flight_test until its ready

14 years agoAdd teledongle module
Keith Packard [Fri, 24 Apr 2009 03:50:07 +0000 (20:50 -0700)]
Add teledongle module

14 years agoSet telemetry rate to 100ms
Keith Packard [Thu, 23 Apr 2009 21:26:01 +0000 (14:26 -0700)]
Set telemetry rate to 100ms

14 years agoWrong license on ao_monitor.c
Keith Packard [Thu, 23 Apr 2009 21:23:26 +0000 (14:23 -0700)]
Wrong license on ao_monitor.c

14 years agoCrank up radio to 10dBm
Keith Packard [Thu, 23 Apr 2009 21:23:00 +0000 (14:23 -0700)]
Crank up radio to 10dBm

14 years agoAdd COPYING file
Keith Packard [Wed, 22 Apr 2009 23:03:28 +0000 (16:03 -0700)]
Add COPYING file

14 years agoClean up TeleTerra files
Keith Packard [Wed, 22 Apr 2009 22:55:01 +0000 (15:55 -0700)]
Clean up TeleTerra files

14 years agosimplify ao_time function
Keith Packard [Wed, 22 Apr 2009 22:53:55 +0000 (15:53 -0700)]
simplify ao_time function

14 years agoOne line radio status
Keith Packard [Wed, 22 Apr 2009 22:53:46 +0000 (15:53 -0700)]
One line radio status

14 years agoAdd new binaries to .gitignore
Keith Packard [Wed, 22 Apr 2009 22:49:16 +0000 (15:49 -0700)]
Add new binaries to .gitignore

14 years agoSpeed up dbg port bit frobbing
Keith Packard [Wed, 22 Apr 2009 22:49:00 +0000 (15:49 -0700)]
Speed up dbg port bit frobbing

14 years agoUse sdcc from path
Keith Packard [Wed, 22 Apr 2009 22:48:28 +0000 (15:48 -0700)]
Use sdcc from path

14 years agoClean up task list formatting
Keith Packard [Wed, 22 Apr 2009 22:48:14 +0000 (15:48 -0700)]
Clean up task list formatting

14 years agoControl radio monitoring with the M command
Keith Packard [Wed, 22 Apr 2009 22:47:57 +0000 (15:47 -0700)]
Control radio monitoring with the M command

14 years agoShrink USB output buffers, work around USB packet errors
Keith Packard [Wed, 22 Apr 2009 21:25:43 +0000 (14:25 -0700)]
Shrink USB output buffers, work around USB packet errors

15 years agoClean up telemetry now that all packets are the same
Keith Packard [Tue, 21 Apr 2009 09:07:24 +0000 (02:07 -0700)]
Clean up telemetry now that all packets are the same

15 years agoAdd longer debug delays to reset/debug_mode entry
Keith Packard [Tue, 21 Apr 2009 09:07:08 +0000 (02:07 -0700)]
Add longer debug delays to reset/debug_mode entry

15 years agoFix up fancy dbg stuff. Add teleterra initial bits.
Keith Packard [Tue, 21 Apr 2009 08:17:03 +0000 (01:17 -0700)]
Fix up fancy dbg stuff. Add teleterra initial bits.

The dbg stuff needed a bit of help to actually walk the tables; it appears
that complex expressions confuse sdcc.

This also adds primitive teleterra bits, but no UI, etc.

Signed-off-by: Keith Packard <keithp@keithp.com>
15 years agoAdd radio support. Build separate executables for TeleMetrum and the TI dongle
Keith Packard [Tue, 21 Apr 2009 06:33:41 +0000 (23:33 -0700)]
Add radio support. Build separate executables for TeleMetrum and the TI dongle

Ok, way too big a patch, but things were in rough shape.
This patch adds support for the radio, both transmit and receive.
Then, because I could no longer run the TeleMetrum code on the TI
dongle, I ended up building a separate image for the TI board, which
involved creating a mechanism for having multiple command sets and splitting
code for different functions into different files.

15 years agoStart using pdata area for less-frequently used data sn1-flight1
Keith Packard [Sun, 19 Apr 2009 06:19:24 +0000 (23:19 -0700)]
Start using pdata area for less-frequently used data

15 years agoSlow down panic presentation
Keith Packard [Sun, 19 Apr 2009 06:19:05 +0000 (23:19 -0700)]
Slow down panic presentation

15 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.

15 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.

15 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>
15 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>
15 years agoEnable FEC in radio packets
Keith Packard [Fri, 17 Apr 2009 17:32:45 +0000 (10:32 -0700)]
Enable FEC in radio packets

15 years agoAdd CRC to radio packets
Keith Packard [Fri, 17 Apr 2009 17:29:42 +0000 (10:29 -0700)]
Add CRC to radio packets

15 years agoAdd data whitening
Keith Packard [Fri, 17 Apr 2009 17:23:10 +0000 (10:23 -0700)]
Add data whitening

15 years agoAdd packet status byte defines
Keith Packard [Fri, 17 Apr 2009 17:19:25 +0000 (10:19 -0700)]
Add packet status byte defines

15 years agoAdd separate xmit/recv programs to radio demo
Keith Packard [Fri, 17 Apr 2009 17:11:31 +0000 (10:11 -0700)]
Add separate xmit/recv programs to radio demo

15 years agoGet env var for debug method selection
Keith Packard [Fri, 17 Apr 2009 17:11:11 +0000 (10:11 -0700)]
Get env var for debug method selection

15 years agoRun-time selection between cp2103 and cc1111
Keith Packard [Fri, 17 Apr 2009 17:10:47 +0000 (10:10 -0700)]
Run-time selection between cp2103 and cc1111

15 years agoSend data
Keith Packard [Fri, 17 Apr 2009 03:38:14 +0000 (20:38 -0700)]
Send data

15 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

15 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

15 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

15 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

15 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

15 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

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

15 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>
15 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>
15 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>
15 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>
15 years agoSwitch USB to double-buffered
Keith Packard [Tue, 14 Apr 2009 04:58:07 +0000 (21:58 -0700)]
Switch USB to double-buffered

15 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>
15 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

15 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>
15 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>
15 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>
15 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

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

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

15 years agoAdd load command to s51
Keith Packard [Mon, 13 Apr 2009 04:47:32 +0000 (21:47 -0700)]
Add load command to s51

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

15 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

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

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

15 years agoAdd ccdump
Keith Packard [Sun, 12 Apr 2009 19:38:58 +0000 (12:38 -0700)]
Add ccdump

15 years agoBump buffer pointer as data is written to cc-usb
Keith Packard [Tue, 7 Apr 2009 00:09:23 +0000 (17:09 -0700)]
Bump buffer pointer as data is written to cc-usb

15 years agoAdd support for a serial-connected custom debug dongle
Keith Packard [Mon, 6 Apr 2009 18:31:49 +0000 (11:31 -0700)]
Add support for a serial-connected custom debug dongle

This uses the cc1111 board as a custom debug dongle with faster
methods for communicating with the debug target.

15 years agoReset cc1111 on s51 exit
Keith Packard [Thu, 2 Apr 2009 00:50:47 +0000 (17:50 -0700)]
Reset cc1111 on s51 exit

15 years agoAdd timer-based beep test
Keith Packard [Wed, 1 Apr 2009 07:06:45 +0000 (00:06 -0700)]
Add timer-based beep test

15 years agoAdd readline support to s51
Keith Packard [Fri, 27 Mar 2009 05:41:47 +0000 (22:41 -0700)]
Add readline support to s51

15 years agoDeal with MSB-outputing DMA engine
Keith Packard [Wed, 25 Mar 2009 18:37:48 +0000 (11:37 -0700)]
Deal with MSB-outputing DMA engine

15 years agoFlip ADC bytes around
Keith Packard [Wed, 25 Mar 2009 18:14:03 +0000 (11:14 -0700)]
Flip ADC bytes around

15 years agoAdd spacing for serial adc data
Keith Packard [Wed, 25 Mar 2009 18:01:30 +0000 (11:01 -0700)]
Add spacing for serial adc data

15 years agoInc only one on dest addr
Keith Packard [Wed, 25 Mar 2009 17:58:57 +0000 (10:58 -0700)]
Inc only one on dest addr

15 years agoDump remaining inputs
Keith Packard [Wed, 25 Mar 2009 17:55:17 +0000 (10:55 -0700)]
Dump remaining inputs

15 years agoRemove poll for ti demo button
Keith Packard [Wed, 25 Mar 2009 17:50:36 +0000 (10:50 -0700)]
Remove poll for ti demo button

15 years agoAdd adc to serial conversion
Keith Packard [Wed, 25 Mar 2009 17:50:14 +0000 (10:50 -0700)]
Add adc to serial conversion

15 years agoAdd ADC via DMA example
Keith Packard [Wed, 25 Mar 2009 17:04:50 +0000 (10:04 -0700)]
Add ADC via DMA example

15 years agoAdd DMA example
Keith Packard [Wed, 25 Mar 2009 16:45:14 +0000 (09:45 -0700)]
Add DMA example

15 years agoBack to 0dBm
Keith Packard [Wed, 25 Mar 2009 08:05:36 +0000 (01:05 -0700)]
Back to 0dBm

15 years agoMake radio test compile again
Keith Packard [Wed, 25 Mar 2009 08:03:08 +0000 (01:03 -0700)]
Make radio test compile again

15 years agoWait for xtal to stabilize
Keith Packard [Wed, 25 Mar 2009 08:02:07 +0000 (01:02 -0700)]
Wait for xtal to stabilize

15 years agoCheck serial input
Keith Packard [Wed, 25 Mar 2009 07:55:11 +0000 (00:55 -0700)]
Check serial input

15 years agoEliminate array walking
Keith Packard [Wed, 25 Mar 2009 07:50:02 +0000 (00:50 -0700)]
Eliminate array walking

15 years agoAdd a per-char delay
Keith Packard [Wed, 25 Mar 2009 07:41:49 +0000 (00:41 -0700)]
Add a per-char delay

15 years agoUse UTX1IF to wait for serial TX complete
Keith Packard [Wed, 25 Mar 2009 07:36:35 +0000 (00:36 -0700)]
Use UTX1IF to wait for serial TX complete

15 years agoSend more interesting text
Keith Packard [Wed, 25 Mar 2009 07:29:29 +0000 (00:29 -0700)]
Send more interesting text

15 years agoMore random serial bit frobbing
Keith Packard [Wed, 25 Mar 2009 07:24:56 +0000 (00:24 -0700)]
More random serial bit frobbing

15 years agoFlip serial TX code around a bit
Keith Packard [Wed, 25 Mar 2009 07:13:15 +0000 (00:13 -0700)]
Flip serial TX code around a bit

15 years agoTry serial polarity high/high
Keith Packard [Wed, 25 Mar 2009 07:09:47 +0000 (00:09 -0700)]
Try serial polarity high/high

15 years agoMake serial test simpler
Keith Packard [Wed, 25 Mar 2009 07:06:32 +0000 (00:06 -0700)]
Make serial test simpler

15 years agoFlip start/stop bits around
Keith Packard [Wed, 25 Mar 2009 07:03:45 +0000 (00:03 -0700)]
Flip start/stop bits around

15 years agoStop high
Keith Packard [Wed, 25 Mar 2009 06:57:12 +0000 (23:57 -0700)]
Stop high

15 years agoChange radio to -30dBm
Keith Packard [Wed, 25 Mar 2009 06:24:01 +0000 (23:24 -0700)]
Change radio to -30dBm

15 years agoAdd serial test program
Keith Packard [Wed, 25 Mar 2009 06:11:48 +0000 (23:11 -0700)]
Add serial test program

15 years agoWait for xtal to stabilize after changing to 24MHz
Keith Packard [Wed, 25 Mar 2009 05:37:38 +0000 (22:37 -0700)]
Wait for xtal to stabilize after changing to 24MHz

15 years agoActually return byte read from SPI
Keith Packard [Wed, 25 Mar 2009 05:21:31 +0000 (22:21 -0700)]
Actually return byte read from SPI

15 years agoClear UxCSR_TX_BYTE after transmitting a byte
Keith Packard [Wed, 25 Mar 2009 05:12:51 +0000 (22:12 -0700)]
Clear UxCSR_TX_BYTE after transmitting a byte

15 years agoLed the LED turn on
Keith Packard [Wed, 25 Mar 2009 03:04:58 +0000 (20:04 -0700)]
Led the LED turn on

15 years agoactually write and compare SPI test bits
Keith Packard [Wed, 25 Mar 2009 02:55:04 +0000 (19:55 -0700)]
actually write and compare SPI test bits

15 years agoAdd USART-based SPI test code
Keith Packard [Wed, 25 Mar 2009 02:54:02 +0000 (19:54 -0700)]
Add USART-based SPI test code

15 years agoChange spi test string
Keith Packard [Wed, 25 Mar 2009 00:22:36 +0000 (17:22 -0700)]
Change spi test string