summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Bump to 1.0.9.31.0.9.3Keith Packard2011-10-11
| | | | | | TeleScience and TelePyro now work. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telescience: Add more header dependenciesKeith Packard2011-10-11
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/avr: telescience doesn't have room for the flash write codeKeith Packard2011-10-11
| | | | | | | This is useful for debugging the SPI and flash drivers, but not necessary in production code. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/avr: Must leave space for init stack in ramKeith Packard2011-10-11
| | | | | | | The stack used during system initialization lives at the top of RAM, so leave some space for that. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/avr: Shrink default stack size to use less ramKeith Packard2011-10-11
| | | | | | | Not that we have any way of knowing how much stack we're using, but at least this seems to work. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Allow ao_science_slave to not log dataKeith Packard2011-10-11
| | | | | | This is mostly for debugging with flash writes disabled. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make HAS_STORAGE_DEBUG define consistentKeith Packard2011-10-11
| | | | | | | This allows products to include the 'w' command for testing flash writing as needed. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/avr: Clear SPI receive buffer before clocking new data inKeith Packard2011-10-11
| | | | | | | I don't know why this is necessary, but the receive buffer gets 'extra' data added somehow. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/avr: Pull-up on the SPI slave select pinKeith Packard2011-10-11
| | | | | | This makes the board work even when disconnected from TeleMetrum. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/avr: Register stdio handler when using serial for stdinKeith Packard2011-10-11
| | | | | | This code was left in a bit of a mess; just clean it up. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/avr: telescience does not have a serial portKeith Packard2011-10-11
| | | | | | The USART is used for SPI to talk to the flash part. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/avr: Make ao_arch_critical argument be a statementKeith Packard2011-10-11
| | | | | | | Wrap the argument to ao_arch_critical in do { } while (0); to make sure it gets correctly checked as a statement. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/avr: Print newline after dumping ADC valuesKeith Packard2011-10-11
| | | | | | Cleans up the formating a bit. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/avr: SPI mutex is now held by the caller, not the SPI driverKeith Packard2011-10-11
| | | | | | | | | SPI transactions generally require a read followed by a write, with the chip select held the whole time. As a result, the SPI bus must be held across multiple transactions. To make this reliable, the caller must hold the SPI mutex, instead of the underlying SPI driver. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Respond to telemetry rate changes immediatelyKeith Packard2011-10-09
| | | | | | | | Instead of waiting for the previous telemetry interval to expire, immediately switch to the new telemetry rate. This will provide more telemetry data early in the boost. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Improve TM v1.0 apogee estimateKeith Packard2011-10-08
| | | | | | | | | | | | | | | | | | | | | v1.0 boards have noisy accelerometer data caused by interactions between RF transmission and the accelerometer measurements; this noise generates a negative bias in the accelerometer readings. The net effect is that the estimated speed is lower than the actual speed, causing early an apogee estimate. By increasing the sigma value for accelerometer data, the kalman filter 'trusts' the acceleration data less, putting more weight on the barometer data. This causes the estimated time of apogee to be closer to the correct value. This reduces the response to changes in acceleration. This new value is applied solely to TeleMetrum v1.0 boards. v1.1 boards correct for this error, and hence can use the correct sigma value for the accelerometer. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Ignore ejection bumps when doing boost re-detectKeith Packard2011-10-08
| | | | | | | | An ejection charge looks an awful lot like an extra (really small) motor burn. Ignore them by averaging the acceleration during fast/coast using a /64 exponential decay filter. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Write xdata versions of memory functions1.0.9.1Keith Packard2011-10-07
| | | | | | | | | | | | | | | | These are significantly smaller than the general pointer versions from libc on the cc1111. Signed-off-by: Keith Packard <keithp@keithp.com> Conflicts: src/Makefile.proto src/cc1111/ao_adc.c src/cc1111/ao_packet_master.c src/core/ao.h Fix up the new makefiles
* Merge remote-tracking branch 'origin/simple-quiet' into multiarchKeith Packard2011-10-07
|\ | | | | | | | | | | | | Conflicts: configure.ac fix version number
| * altos: Silence radio while firing ignitersKeith Packard2011-09-04
| | | | | | | | | | | | | | Hold the radio mutex while firing igniters to reduce potential interactions between the two. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Delay restart of RDF at apogeeKeith Packard2011-09-04
| | | | | | | | | | | | | | Instead of immediately trying to send RDF at apogee, start it after the usual RDF interval to avoid doing RDF while firing the apogee igniter. Signed-off-by: Keith Packard <keithp@keithp.com>
* | Merge remote-tracking branch 'uniarch/master' into multiarchKeith Packard2011-10-07
|\ \ | | | | | | | | | | | | | | | | | | Conflicts: src/core/ao_cmd.c Use ao_arch_reboot after waiting for a second
| * | altos: TM: Don't turn on packet slave mode until idle/invalid stateKeith Packard2011-10-07
| | | | | | | | | | | | | | | | | | | | | | | | Leave the packet link disabled until we've checked the accelerometer. That way, we cannot accidentally get to idle mode when the rocket is on the rail. Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altos: Delay reboot by a second to avoid re-entering idle modeKeith Packard2011-10-07
| |/ | | | | | | | | | | | | | | | | | | | | | | | | TM and Tm go into idle mode if they receive a packet after boot time. When tebooting the device over the packet link, the packet master would be (rapidly) polling the device for additional data and so the device would invariably receive a packet during bootup and go into idle mode again. Delay the reboot by a second to give the controller time to disable the master end of the packet link. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Debug code for telepyro doesn't fit in telescienceKeith Packard2011-09-23
| | | | | | | | | | | | Just too many strings. Signed-off-by: Keith Packard <keithp@keithp.com>
* | Dump test conversion of ADC0Keith Packard2011-09-21
| |
* | Dump ADC registersKeith Packard2011-09-21
| |
* | altos: Fix make-kalman to run under dashKeith Packard2011-09-21
| | | | | | | | | | | | Dash can't deal with >&, so use the old-school > file 2>&1 Signed-off-by: Keith Packard <keithp@keithp.com>
* | fix bashism that prevents building with /bin/sh->/bin/dashBdale Garbee2011-09-21
| |
* | add missing sense_h entry in TelePyro tableBdale Garbee2011-09-21
| |
* | altos: missing ao_log_single.cKeith Packard2011-09-21
| | | | | | | | | | | | Neglected to add this file. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Add TelePyro v0.1 supportKeith Packard2011-09-21
| | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Support staging by going back to boost as neededKeith Packard2011-09-21
| | | | | | | | | | | | | | Detect additional motor burns by looking for high positive acceleration in coast or fast modes. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Pre-compute RDF packet len at compile timeKeith Packard2011-09-21
| | | | | | | | | | | | | | Instead of computing the RDF packet len at run time, which takes a pile of code space. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: SPI slave code is now per-productKeith Packard2011-09-21
| | | | | | | | | | | | | | We can't write general purpose SPI slave code as we must eliminate any latency because the SPI ports have no buffering. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Split avr clock initialization to ao_clock.cKeith Packard2011-08-29
| | | | | | | | | | | | This will be shared with the attiny code for TeleTerra v0.1 Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: don't beep igniter continuity for telenanoKeith Packard2011-08-28
| | | | | | | | | | | | Without any igniters, it's not nice to annoy people. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Report continuity in telebtKeith Packard2011-08-28
| | | | | | | | | | | | Report continuity values from remote altimeter Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: add 'report' to telebtKeith Packard2011-08-28
| | | | | | | | | | | | | | This beeps out flight state changes and max altitude at landing, just like the altimeter. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Add the BT serial debug code back in, disabledKeith Packard2011-08-28
| | | | | | | | | | | | | | This code is useful whenever the BT stuff is acting up, so just leave the source in place, turned off by default. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Add pragma to eliminate unreachable code warning on SDCCKeith Packard2011-08-28
| | | | | | | | | | | | | | This pragma was removed as GCC doesn't support it; make it conditional on SDCC so that we eliminate a warning message. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Blink on telem packet receive instead of toggleKeith Packard2011-08-28
| | | | | | | | | | | | | | Toggling the LED was too confusing; just blink for 100ms each time a packet comes in. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Remove RSSI reporting from telebtKeith Packard2011-08-28
| | | | | | | | | | | | | | Telebt uses one LED for bluetooth connection and the other for telem packet reception leaving none for RSSI. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Add RSSI blinking to new-style telemetry codeKeith Packard2011-08-28
| | | | | | | | | | | | | | Pull the RSSI data out locally and set the RSSI led blinking when using the variable-length TELEM output mechanism. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Start logging telemetry data right at boot timeKeith Packard2011-08-28
| | | | | | | | | | | | | | Anything logging telemetry data should just start logging packets as soon as they boot. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Share log code between telescience and telebt. Add telebt logKeith Packard2011-08-27
| | | | | | | | | | | | | | | | Telescience and telebt both log data in 32-byte chunks, so share some code which manages that between the two products. Add simple telemetry logging to telebt. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Fix up telelaunch MakefileKeith Packard2011-08-27
| | | | | | | | | | | | Adding all of the mising sources Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Add HAS_LOG for products that log to eepromKeith Packard2011-08-27
| | | | | | | | | | | | Some products have eeprom for config, but none for logging (like telelaunch) Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: ao_launch belongs in cc1111Keith Packard2011-08-27
| | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: add ao_aes/radio_cmac to tidongle, teledongle and telebtKeith Packard2011-08-27
| | | | | | | | | | | | All of these can do the telelco stuff at this point. Signed-off-by: Keith Packard <keithp@keithp.com>