summaryrefslogtreecommitdiff
path: root/src/core
Commit message (Collapse)AuthorAge
* altos: Remove debug printf from accel auto-calKeith Packard2012-05-28
| | | | | | Otherwise, this goes way too slow Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Shrink telemetry generation codeKeith Packard2012-05-28
| | | | | | otherwise TM doesn't build anymore Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make telescience-v0.1 build with new ao_data structKeith Packard2012-05-27
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make telenano build with new ao_data structureKeith Packard2012-05-27
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make telemini-v1.0 compile with new ao_data structureKeith Packard2012-05-27
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make telemetrum-v1.0 build with new ao_data structureKeith Packard2012-05-27
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make telemetrum-v1.1 compile with new ao_data structureKeith Packard2012-05-27
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Split out mm-specific versions of sampling codeKeith Packard2012-05-27
| | | | | | Avoid breaking telemetrum (too much) by splitting this stuff apart. Signed-off-by: Keith Packard <keithp@keithp.com>
* Get megametrum ready to at least log flight dataKeith Packard2012-05-25
| | | | | | Doesn't track flight state changes correctly. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Finish ms5607 supportKeith Packard2012-05-18
| | | | | | | | | | This has the MS5607 polling once each tick for pressure and temperature and then saving that in a global variable. The command UI provides for dumping the prom data so that an eeprom file can have raw sensor data along with the conversion factors necessary to compute useful values. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add conversion between Pa and metersKeith Packard2012-05-18
| | | | | | To be used with the MS5607 which generates data in calibrated units. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Report latest telemetry data, rather than using the oldestKeith Packard2012-05-01
| | | | | | | ao_sample_adc points to the *next* ADC entry, rather than the most recent one. Step back one entry to get the latest valid data. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Respect apogee lockout time in flight algorithmKeith Packard2012-04-14
| | | | | | | | | | | This prevents any apogee detection from occurring until the specified number of seconds after boost. This also prevents the switch from accel+baro to baro only mode in the Kalman filter. The test frame work is also changed to look for Apogee lockout: in the eeprom input file. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Check all USE_SERIAL_*_STDIO when computing AO_NUM_STDIOSKeith Packard2012-04-14
| | | | | | | | AO_NUM_STDIOS is allocated based on the total number of possible stdio values. Now that multiple serial stdio are possible, make sure to check all of them. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Set USB Interrupt endpoint interval to maximum allowedKeith Packard2012-04-14
| | | | | | | We don't ever send anything over this channel, so there's no sense asking the host to poll it very often. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Pull more interfaces out of ao.h and move to separate filesKeith Packard2012-04-14
| | | | | | This moves the aes, btm, companion, lcd and packet interfaces out of ao.h Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Massive product config cleanupKeith Packard2012-04-14
| | | | | | | | Support multiple serial ports more cleanly Split out parts of ao.h into separate feature header files Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Start adding apogee lockout supportKeith Packard2012-04-14
| | | | | | Remove radio channel support too. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make ao_config_set_radio publicKeith Packard2012-04-07
| | | | | | Allows other bits of code to reset the radio parameters. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Force radio channel to zero when setting frequencyKeith Packard2012-04-07
| | | | | | | Otherwise, the actual radio frequency will include the channel offset, which is not useful. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make ao_freq_to_set reentrantKeith Packard2012-04-07
| | | | | | Save a bunch of data space this way. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Shorten help stringsKeith Packard2012-04-07
| | | | | | Save a bit of code space Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Save memory in ao_config.cKeith Packard2012-04-07
| | | | | | | Shorten help messages. Stop setting aes_key on products not using aes key. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Save memory in ao_cmd.cKeith Packard2012-04-07
| | | | | | | Shrink a couple of help strings move a variable in ao_cmd from data to pdata. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add DMA, SPI and MS5607 driversKeith Packard2012-04-06
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Move SPI functions to architecture-specific locationKeith Packard2012-04-02
| | | | | | | | Some architecture specific stuff needs to use core altos code, so create new ao_arch_funcs.h files per architecture that get pulled in at the end of ao.h Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Move cc1111 DMA engine interface to cc1111/ao_arch.h from ao.hKeith Packard2012-03-31
| | | | | | It's hardware specific Signed-off-by: Keith Packard <keithp@keithp.com>
* Allow for more than 8 LEDsKeith Packard2012-03-28
| | | | | | Provide hook for architecture-specific LED mask (AO_LED_TYPE) Signed-off-by: Keith Packard <keithp@keithp.com>
* Allow for more than one serial port in core AltOSKeith Packard2012-03-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Add AO_PANIC_STACKKeith Packard2012-03-28
| | | | | | Provide a panic code for stack overflow. Signed-off-by: Keith Packard <keithp@keithp.com>
* When debugging, send ao_panic message to ao_debug_outKeith Packard2012-03-28
| | | | | | | Use the low-level debug hooks to get the panic state sent to the serial port. Signed-off-by: Keith Packard <keithp@keithp.com>
* When debugging, send pre-init output to ao_debug_outKeith Packard2012-03-28
| | | | | | | Before tasking is running, send output to ao_debug_out to help debug system initialization. Signed-off-by: Keith Packard <keithp@keithp.com>
* Incorrect type in ao_task_info for wchanKeith Packard2012-03-28
| | | | | | Would truncate 32-bit pointers on arm. Signed-off-by: Keith Packard <keithp@keithp.com>
* 'stdin' is a special name in some compiler environments, don't use it.Keith Packard2012-03-28
| | | | | | Switch to 'in' in the prototype for altos_serial_set_stdin. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make sure config values are loaded in 'c s' commandKeith Packard2012-03-28
| | | | | | | | ao_config_get may not have been called when ao_config_show is invoked by the user, so make sure the config values are loaded before showing uninitialized data. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Reset config version if it's too large as wellKeith Packard2012-03-27
| | | | | | | | Any future config values will get trashed if we down grade the firmware, so we must reset the firmware version whenever it gets written. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Optimize ao_freq_to_set a bitKeith Packard2012-03-27
| | | | | | Reduces size from 327 bytes to 287 bytes Signed-off-by: Keith Packard <keithp@keithp.com>
* Do radio settings solely by frequencyKeith Packard2012-03-26
| | | | | | | Compute the radio setting needed based on the calibration value provided and the requested frequency. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: flush stdout when fifo from arduino serial port is emptyKeith Packard2012-01-03
| | | | | | This avoids leaving bytes pending inside altos Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add support for UART0 in async modeKeith Packard2012-01-03
| | | | | | And copy bytes from it to stdout. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Clean up for SDCC 3.1 - more keywordsKeith Packard2011-12-30
| | | | | | | | _asm -> __asm sbit -> __sbit remove variables named 'data' Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Create TeleMetrum v1.2 directoryKeith Packard2011-12-17
| | | | | | | The hardware is software-compatible with v1.1, but it's nice to have the right version number in all of the files. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Fix pad orientation for pre-1.1 boardsKeith Packard2011-11-13
| | | | | | | They use a different code path for accel as they don't have the VCC compensation code in place. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Allow TT/TBT reports to escape landed stateKeith Packard2011-11-12
| | | | | | | The TM altitude reporting code kept beeping out state and altitude forever, which isn't very useful on TBT or TT. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add ao_lcd_cursor_on/offKeith Packard2011-11-12
| | | | | | This shows or hides a blinking cursor on the LCD. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add configurable set of channels for TTKeith Packard2011-11-12
| | | | | | | This adds the channel list for TT, which will be configured by AltosUI. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Export 'ao_cmd_is_white' for use by other codeKeith Packard2011-11-12
| | | | | | This function tests the current input character. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Set default flight log max to 127k on TM v0.1Keith Packard2011-11-12
| | | | | | The flash part on v0.1 boards is only 128kB. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Handle internal and external telem monitoring requestsKeith Packard2011-11-12
| | | | | | | | | | | | Record separate internal vs external monitoring state, allowing both to happen at the same time, and when either is turned off, the other keeps working. This also adds disable/enable so that other radio users can temporarily take over the radio; monitoring will resume when the other radio user is finished. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make ao_xmem funcs require __xdata void * instead of castingKeith Packard2011-11-11
| | | | | | | | | | | | Having an explicit cast in the ao_xmem wrapper macros caused the compiler to generate garbage values for pdata addresses, making the upper byte 0x00 instead of the required 0xf0. Removing the casts from the ao_xmem macros exposed this problem, so a new PDATA_TO_XDATA macros was added, along with a CODE_TO_XDATA macro which serve to cast pointers, with suitable address modifications, so that things work again. Signed-off-by: Keith Packard <keithp@keithp.com>