summaryrefslogtreecommitdiff
path: root/src/core
Commit message (Collapse)AuthorAge
...
| * altos: Use alt_t for all Pascal-based altitude dataKeith Packard2012-10-12
| | | | | | | | | | | | | | This allows alt_t to be overridden for systems using the MS5607/MS5611 sensors Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Allow for other mutex implementationsKeith Packard2012-10-12
| | | | | | | | | | | | Allow projects to replace ao_mutex_get and ao_mutex_put with macros Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Allow projects to specify clock at other than 100HzKeith Packard2012-10-12
| | | | | | | | | | | | Leave the default at 100Hz, but allow it to be overridden Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Split task definitions out to ao_task.hKeith Packard2012-10-12
| | | | | | | | | | | | And only include them if using tasks Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Compute desired frequency when upgrading from pre-1.1Keith Packard2012-10-08
| | | | | | | | | | | | | | Instead of just smashing the frequency to 434.550, compute the frequency from the old radio channel value Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Go back to recording sensor data in globalsmm-ms5611Keith Packard2012-10-08
|/ | | | | | | | Instead of trying to get things into the ring from a variety of functions, go back to the simpler method of storing them in globals and having the ADC code just pluck out the most recent values. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Clean up flight data definitionsKeith Packard2012-09-09
| | | | | | | These just shuffle the various definitions of data macros around to make the include files more sensible looking. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: include ao_arch_funcs.h at the very end of ao.hKeith Packard2012-09-09
| | | | | | Move it below the definition of the ms5607 init function Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Allow products without MS5607Keith Packard2012-09-09
| | | | | | | The define for a missing MS5607 was wrong, so anything using the fancy multi-sensor data code would break without an MS5607 in place. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add custom panic noise for self-test failuresKeith Packard2012-08-31
| | | | | | Make it easier to tell which component is failing self test Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Note changes to configured AES key for SPI radio convenienceKeith Packard2012-08-29
| | | | | | | Keep a sequence number to mark when the AES key is changed so that the radio code can avoid sending the key before every CMAC radio operation. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Move radio_cmac test funcs from ao_lco_cmd.c to new fileKeith Packard2012-08-28
| | | | | | | These are useful in the firing node for testing as well, so move them to be shared. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Fix ao_delay function and move from per-chip code to ao_task.cKeith Packard2012-08-28
| | | | | | | ao_delay hasn't been chip-specific for a long time, and it had a bug in not calling ao_clear_alarm. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Clean up radio APIsKeith Packard2012-08-27
| | | | | | | Move api to ao_radio_cmac.h include file. Expose ao_radio_test as standard API. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Trigger sample complete when all data are readyKeith Packard2012-08-26
| | | | | | | This has each sensor mark a bit in the current data record which is then sent for processing when all of the data are present. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make ao_cur_task_index track ao_cur_task in ao_yieldKeith Packard2012-08-26
| | | | | | | | This keeps the two main task references (index and pointer) in agreement during task switching, avoiding an extra assignment at the end of the task switching loop. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Split out LCO functions from ao_radio_cmac.c to ao_lco.cKeith Packard2012-08-24
| | | | | | | These functions are not used in the telelaunch or telefire nodes, so don't force them to be included. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Have radio_cmac turn on LEDs as appropriateKeith Packard2012-08-24
| | | | | | | Use AO_LED_RX and AO_LED_TX defines if present to control LEDs during radio operations. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add 'ao_led_set_mask' in the PCA9922 driverKeith Packard2012-08-24
| | | | | | This lets a subset of the LEDs be controlled independent of other LED settings. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add button driver and event queueKeith Packard2012-08-06
| | | | | | | With this, a single task can wait for any button or quadrature input device. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add telefire-v0.1Keith Packard2012-07-29
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add software AES implementationKeith Packard2012-07-29
| | | | | | This is untested Signed-off-by: Keith Packard <keithp@keithp.com>
* Add ability to re-play telemetry through TeleDongleKeith Packard2012-07-29
| | | | | | | | This adds a new command to TeleDongle to send arbitrary data, and then creates a new tool, 'ao-send-telem' that replays existing telemetry files through TeleDongle. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Move ao_radio_cmac.c to core (it doesn't depend on hardware)Keith Packard2012-07-22
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Toggling telemetry monitoring would replay the telem queueKeith Packard2012-07-17
| | | | | | | | Using the 'm' command to turn telem off and back on would end up going around the whole telemetry queue replaying everything there as the wait loop would exit when disabling monitoring even if the ring was empty. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Megametrum ADC values are 12 bits, discard low 4 for telemetryKeith Packard2012-07-17
| | | | | | | We've only got space for 8 bits for the ADC values for pyro channels, discard the low 4 bits instead of the low 8 bits. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Place STM config values at fixed addresses for re-useKeith Packard2012-07-17
| | | | | | | | Just like cc1111, stick the serial number and radio calibration values at known fixed addresses so that when re-flashing the board, we can go find the existing values. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Enable pyro channel control in telepyroKeith Packard2012-07-16
| | | | | | This should make the board actually work now. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add manual firing command for extra pyro channelsKeith Packard2012-07-16
| | | | | | | In parallel with the existing igniter commands, this tests the programmable pyro channels Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Use 'HAS_ORIENT' to enable orientation selection in pyro codeKeith Packard2012-07-16
| | | | | | Don't expose orientation options when no orientation data is available Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Pass flight dynamics to companion boardsKeith Packard2012-07-16
| | | | | | Necessary for TelePyro Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make ao_tick_count visibleKeith Packard2012-07-16
| | | | | | | Necessary to fetch it when interrupts are already disabled as we can't call ao_time then. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make storage addresses datatype configurableKeith Packard2012-07-16
| | | | | | No sense using 32 bits for tiny hardware Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: No space for pyro help on TP v0.1Keith Packard2012-07-16
| | | | | | | AVR doesn't have enough ram to hold the help messages, and we can't use them in flash. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Remove unused 'func' from ao_config_setKeith Packard2012-07-16
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* src: Add explicit 'pin' argument to ao_enable_outputKeith Packard2012-07-14
| | | | | | | This lets the cc1111 use the atomic bit operation instead of a mask, which is immune to interrupt issues as well as being a shorter code sequence. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add arbitrary pyro channel supportKeith Packard2012-07-14
| | | | | | | Programmed by specifying a conjunction of flight conditions that trigger the igniter to fire. Signed-off-by: Keith Packard <keithp@keithp.com>
* Report RSSI values in monitor idle UI (trac #44)Keith Packard2012-07-11
| | | | | | | | This adds a new 's' command to TeleDongle to report RSSI value from last received packet, and then has AltosUI request that value when closing the remote link. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Fix gcc compiler warnings in GPS codeKeith Packard2012-07-11
| | | | | | unused variables and mis-matches in printf format codes. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Create macros to convert from/to radio RSSI representationKeith Packard2012-07-11
| | | | | | | | AO_RSSI_FROM_RADIO and AO_RADIO_FROM_RSSI. Removes a bunch of open-coded versions of the same function. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: remove optimization for 'help' that confuses cc1111 compilerKeith Packard2012-07-11
| | | | | | The cc1111 compiler gets this very wrong and prints piles of garbage Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Force 434.550Mhz by connecting debug gnd and clk (trac #41)Keith Packard2012-07-10
| | | | | | | | Check for pin P2_2 low at startup and set the frequency to 434.550MHz. This value won't get written to flash, so rebooting again will restore the configured frequency. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Continuously update ground state while on pad (trac #42)Keith Packard2012-07-10
| | | | | | | | Average data for 5 seconds, wait 5 seconds and if still in pad mode, replace the existing data with the new data. This should avoid averaging in boost data while still keeping things reasonably current. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Set HAS_FLIGHT_DEBUG=1 to include the flight debugging commandsKeith Packard2012-07-10
| | | | | | | This leaves USB enabled, and adds the 'F' command to dump internal flight state. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Signal continuity over radio in pad mode (trac #40)Keith Packard2012-07-10
| | | | | | | This is especially useful for telemini which has no beeper, allowing you to hear the continuity signal while at the pad over the air. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add 'void' parameter to ao_fec_decode callback parameterKeith Packard2012-07-10
| | | | | | This keeps the compiler from whinging about the lack of a prototype. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Save some memory.Keith Packard2012-07-10
| | | | | | | A few minor space savings in ao_cmd.c and ao_config.c. Don't build unused conversion functions ao_altitude_to_pres and ao_temp_to_dC Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Eliminate compiler warnings when building ao_flight_testKeith Packard2012-07-10
| | | | | | We turn on a pile of warnings for that. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Rename *_mm.c back to *.cKeith Packard2012-07-10
| | | | | | Was just a temporary hack to keep cc1111 products building during MM development. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: remove stale ao_flight.c and ao_sample.cKeith Packard2012-07-10
| | | | | | The mega-metrum versions are now the official versions Signed-off-by: Keith Packard <keithp@keithp.com>