summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* altos: Switch ao_ignite and ao_gps_sirf __xdata to __pdataKeith Packard2011-07-06
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Switch ao_gps_skytraq and ao_gps_sirf __xdata to __pdataKeith Packard2011-07-06
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Shrink ao_add_task by rolling up a memset loopKeith Packard2011-07-06
| | | | | | | This has a dramatic effect. By pulling the 'stack' variable into registers it reduces the size of this function from 550 to 231 bytes. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Shrink ao_config_callsign_setKeith Packard2011-07-06
| | | | | | | Replacing a hand-coded memset with a function call, using static space instead of stack space for an array. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Shrink ao_cmd_put16, ao_cmd_hex and ao_cmdKeith Packard2011-07-06
| | | | | | No functional changes, just reduces code size. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Adapt to changes in telemetry Configuration packetKeith Packard2011-07-05
| | | | | | Apogee delay added. flight_log_max changed to two bytes (in kB now). Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Complete new telemetry switchoverKeith Packard2011-07-04
| | | | | | | | | | | | | | This involved rewriting the GPS code to use the telemetry structures directly so that a memcpy could be used to transfer the data to the telemetry packets, saving a bunch of code space, along with fixing up the gps testing programs to deal with the structure changes. In addition, the teledongle code needed to have the monitoring code split into separate radio receiver and USB writer threads as the packets are now back-to-back, and hence come too fast to wait for the USB data to be sent to the host after each one. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add split telemetry codeKeith Packard2011-07-04
| | | | | | | This sends every packet every time, which isn't correct, but should be useful for testing. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Shrink help textKeith Packard2011-07-04
| | | | | | Reduce const space taken by command help text. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add sat info to GPS report commandKeith Packard2011-07-04
| | | | | | Plan to use this to report current flight computer state in idle mode. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Shrink const space in ao_configKeith Packard2011-07-04
| | | | | | | | Eliminate separate 'cmd' and 'help' struct entries. Use \0 trick in cmd strings to eliminate whitespace. Edit help text. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: teledongle does not need ao_packet_slave.cKeith Packard2011-07-04
| | | | | | | TeleDongle doesn't provide slave interfaces, so remove ao_packet_slave from the TD build Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: ao_radio_recv needs byte count *including* rssi and statusKeith Packard2011-06-28
| | | | | | That's two more than the actual packet length. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Start adding new telemetry frame definitionsKeith Packard2011-06-27
| | | | | | | These use the initial 24 bytes per frame plan, which will probably get changed to 32 bytes per frame. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add checksum to TELEM output linesKeith Packard2011-06-27
| | | | | | Verify the received telemetry lines to protect against OS data loss Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add arbitrary telemetry packet monitoringKeith Packard2011-06-27
| | | | | | | This adds the ability to monitor arbitrary telemetry packets (up to 128 bytes), moving the telemetry data parsing up to the host. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Rename telemetry to telemetry_origKeith Packard2011-06-27
| | | | | | | This makes room to create a new multi-packet telemetry format without changing anything yet. Signed-off-by: Keith Packard <keithp@keithp.com>
* Revert "altos: Debugging TBT issues -- check pin configuration after boot"Keith Packard2011-05-06
| | | | | | This reverts commit 514348055630edec12224c4b0964240b929759a3. Looks like this was never a problem.
* altos: clear CPU port 1 interrupt flag when handledKeith Packard2011-05-06
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Hook up the P1 ISR for TeleBT v0.1 bt_link lineKeith Packard2011-05-06
| | | | | | Otherwise, we're heading off into the weeds... Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Initialize beeper for telebtKeith Packard2011-05-06
| | | | | | Needed to get sounds to come out Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Debugging TBT issues -- check pin configuration after bootKeith Packard2011-05-06
| | | | | | | Make sure the serial pins are configured as peripherals Make sure the ser_reset and bt_link pins are going the right direction. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add beeper to TBT v0.1Keith Packard2011-05-06
| | | | | | It's available, let's use it. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: pull TBT v0.1 ser_reset line lowKeith Packard2011-05-06
| | | | | | This line resets the BT module if held low for three seconds. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Fix BT link status pin for real TBT hardwareKeith Packard2011-05-06
| | | | | | | The prototype used P2_1, while the real hardware uses P1_7. Lots of defines to make this work... Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Use USART configuration 1 with flow control for TBTKeith Packard2011-05-06
| | | | | | It's just wired that way. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add telebt-v0.1 to MakefileKeith Packard2011-05-06
| | | | | | Doesn't get built without it. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add preliminary telebt v0.1 definesKeith Packard2011-05-06
| | | | | | This should make the telebt v0.1 binary that works on the real hardware. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: add telebt-v0.0 MakefileKeith Packard2011-04-23
| | | | | | Git doesn't like to add these. Signed-off-by: Keith Packard <keithp@keithp.com>
* Merge branch 'telemini' into telebtKeith Packard2011-04-19
|\
| * altos: Write a few pre-launch samples for Tm/Tn devicesKeith Packard2011-04-14
| | | | | | | | | | | | | | | | Record pre-launch samples in a small ring and flush that to flash when launch is detected. This provides a complete record of the flight, rather than simply starting after launch detect. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos/altosui: Log averaged baro sensor data in Tm/TnKeith Packard2011-04-09
| | | | | | | | | | | | | | | | Instead of logging the best height guess from the kalman filter, log barometer data. The logged data consists of the average value betwen log points to reduce noise. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altosui: Eliminate ao_cmd_filter hookKeith Packard2011-04-19
| | | | | | | | | | | | | | Disabling status messages means we don't need to filter them out of the input stream. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: remove BT logging codeKeith Packard2011-04-19
| | | | | | | | | | | | This was used to debug the serial line startup. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Remove bt debug commandKeith Packard2011-04-19
| | | | | | | | | | | | This will permit some additional cleanups. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Simplify BT communicationsKeith Packard2011-04-19
| | | | | | | | | | | | Eliminate stdio I/O wrappers Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Solidify BT connectionsKeith Packard2011-04-19
| | | | | | | | | | | | | | | | | | Use delays while sending commands to BT module. Don't use BT for stdio until the module is initialized. Add \r to name setting command Don't require 'connected' signal for command input. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Add delays to bt startup sequenceKeith Packard2011-04-19
| | | | | | | | | | | | | | The BT device takes a few seconds after power-up before it is ready to receive commands. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Use PIO(6) on BTM to monitor BT connection. Fix BTM init.Keith Packard2011-04-07
| | | | | | | | | | | | | | | | PIo(6) appears to be an active-low indication of the Bluetooth connection status. Hook this up using an interrupt to track the link state instead of using in-band status messages. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Clean up BT serial communcationsKeith Packard2011-04-01
| | | | | | | | | | | | | | | | | | Disable echo on both ends in command mode to eliminate looping error values. Switch to 57600 baud to improve performance. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Make cmd echo per-connection instead of globalKeith Packard2011-04-01
| | | | | | | | | | | | | | Allow different connections to use different echo values, permitting the packet link to turn off echo while the USB link still has it on. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Clean up serial initializationKeith Packard2011-04-01
| | | | | | | | | | | | | | Flush serial input buffers when switching speeds. Ensure pin configuration is correct. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Clean up usage of serial port for stdioKeith Packard2011-04-01
| | | | | | | | | | | | | | Code wanting to use this must invoke ao_add_stdio; that way the link can be configured before command processing starts. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Make ao_serial_drain publicKeith Packard2011-04-01
| | | | | | | | | | | | Allow external code to discard serial input Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Remove serial monitor commandKeith Packard2011-04-01
| | | | | | | | | | | | This takes up space and isn't that useful these days Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Allow any stdio to be used with packet forwardingKeith Packard2011-04-01
| | | | | | | | | | | | | | There's no reason to restrict packet forwarding to work only from USB. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Provide for a pre-filter on commandsKeith Packard2011-04-01
| | | | | | | | | | | | | | This allows for external code to see each command line before it is processed and potentially skip it. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: expose set of available stdio valuesKeith Packard2011-04-01
| | | | | | | | | | | | | | This lets external code manipulate which connection to communicate over. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Add P2SEL_*_MASK defines to cc1111.hKeith Packard2011-04-01
| | | | | | | | | | | | | | These are used to avoid having the code "know" which selections are 1 and which are 0 bits. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Add initial TeleBT codeKeith Packard2011-03-31
|/ | | | | | | Prototyping with a TeleMetrum v0.1 board and a serial link to a bluetooth module. Signed-off-by: Keith Packard <keithp@keithp.com>