summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* When changing RESET line, delay 20msKeith Packard2010-04-08
| | | | | | | | | | | The GPS data sheet suggests a 1uF cap on the reset line to ensure it is held low long enough for the power supply to come up to voltage. TM v1.0 loads a 0.001uF cap there, but in case that isn't large enough, it could be replaced with the larger one. This change makes sure that even with that larger value, the debugging link will be able to reset the target. Signed-off-by: Keith Packard <keithp@keithp.com>
* Tasks may move in task structure as a result of ao_exitKeith Packard2010-04-06
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Switch TeleMetrum from v0.2 to v1.0Keith Packard2010-04-04
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Don't abort the radio when enabling telemetry monitoringKeith Packard2010-04-04
| | | | | | | If telemetry monitoring is already on, then there isn't any point, and if it's not on, then presumably there isn't any radio work to abort. Signed-off-by: Keith Packard <keithp@keithp.com>
* Make ao_radio_idle keep trying to get the radio to idle.Keith Packard2010-04-04
| | | | | | | Attempting to abort a radio operation could lead to a hang if the user of the radio jumped in and started using it again before the task attempting to abort woke up. This change just keeps smacking the radio until the radio goes idle long enough to detect it.
* Fix up LED colors for each product.Keith Packard2010-02-27
| | | | | | | | Different products assign different color LEDs to the two available LED drivers (P1_0, P1_1). Make the LED color pin assignments per-product (in ao_pins.h), then deal with not always having a green LED. Signed-off-by: Keith Packard <keithp@keithp.com>
* Eliminate deadlock when writing config from radio linkKeith Packard2010-02-27
| | | | | | | | | | | | Writing the 'Saved\r\n' string would fill the packet buffer and cause a flush to occur, which would need to wait for the radio link to receive and transmit a packet. The radio link always re-fetches the radio channel number when lighting up the radio, so it need to look in the config space. If the config mutex was held by the config writing process while the radio was trying to get the channel number, then we'd get a deadlock. Signed-off-by: Keith Packard <keithp@keithp.com>
* Leave .ihx files in the build directory too - easier to debug that wayKeith Packard2010-02-27
| | | | | | | sdcdb wants the .ihx and .cdb files in the same directory, so humor it by copying the .ihx files to the src directory instead of moving them. Signed-off-by: Keith Packard <keithp@keithp.com>
* Must install .map files for ao-load to workKeith Packard2010-02-20
| | | | | | | ao-load uses the .map files to rewrite the serial number and other config parameters into the program flash. Signed-off-by: Keith Packard <keithp@keithp.com>
* Add back stack size checking to altos linking phaseKeith Packard2010-02-20
| | | | | | | This verifies that the stack start specified during the compile will work with the resulting program Signed-off-by: Keith Packard <keithp@keithp.com>
* Quiet make output.Keith Packard2010-02-20
| | | | | | | This borrows ideas from the notmuch project to reduce the command line clutter seen when compiling or linking stuff. Signed-off-by: Keith Packard <keithp@keithp.com>
* Update .gitignore filesKeith Packard2010-02-20
|
* Change altos build process to support per-product compile-time changesKeith Packard2010-02-20
| | | | | | | | This creates per-product subdirectories and recompiles everything for each product, allowing per-product compile-time changes for things like peripheral pin assignments and attached serial devices. Signed-off-by: Keith Packard <keithp@keithp.com>
* Change barometer conversion code to shrink conversion tableKeith Packard2010-02-20
|
* Log GPS data on pad after boost detect.Keith Packard2010-02-13
| | | | | | | | | This wakes up the two GPS reporting tasks and gets them to report out any existing GPS data to the log file. To make sure the timestamps in that GPS data are accurate, this also records GPS time on receipt of the GPS data instead of when that is logged. Signed-off-by: Keith Packard <keithp@keithp.com>
* Missing ao_mutex_put in gps_dumpKeith Packard2010-02-11
|
* Switch to using internal cc1111 temperature sensorKeith Packard2010-01-10
| | | | | | | | v0.2 has no temperature sensor, and several of the v0.1 boards didn't get a temperature sensor loaded. Use the internal temperature sensor on the cc1111 in all cases instead. Signed-off-by: Keith Packard <keithp@keithp.com>
* Force idle mode by shorting the SPI clock to ground at boot time.Keith Packard2010-01-09
| | | | | | | | This allows you to override the flight mode detection code in case the accelerometer calibration is broken somehow. Hold the SPI clock shoted to ground until the LED comes on, then remove it. Signed-off-by: Keith Packard <keithp@keithp.com>
* Add simple gps dump command 'g'Keith Packard2010-01-09
| | | | | | | This just dumps out the data in a very simple format to verify the GPS receiver. Signed-off-by: Keith Packard <keithp@keithp.com>
* Remove flash debugging printfsKeith Packard2010-01-09
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Don't set ao_flash_setup_done until we're actually done.Keith Packard2010-01-09
| | | | | | | Because we're accessing this variable outside of the mutex, we need to make sure it isn't set until the data it covers has been initialized. Signed-off-by: Keith Packard <keithp@keithp.com>
* Dump config block from read/write config and flash_status commandsKeith Packard2010-01-09
|
* Dump more flash parameters for the flash_status commandKeith Packard2010-01-09
|
* Add 'f' command to display flash status register contentsKeith Packard2010-01-09
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Add at45db161d.h header file for new flash part.Keith Packard2010-01-09
| | | | | | Forgot to add this when I added the driver. Signed-off-by: Keith Packard <keithp@keithp.com>
* Remove green LED and temp sensor from v0.2 codeKeith Packard2010-01-09
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Add AT45DBxx1D driverKeith Packard2010-01-09
| | | | | | | This driver supports the AT45DB011D through AT45DB321D DataFlash parts as found in TeleMetrum v0.2 Signed-off-by: Keith Packard <keithp@keithp.com>
* Remove dbg driver code from telemetrum/teledongleKeith Packard2009-12-19
| | | | | | | | The only board with debug outputs is the TI dongle at this point, so the debug modules were disabled in TM and TD some time ago. Unfortunately, the code was not removed then. Signed-off-by: Keith Packard <keithp@keithp.com>
* Ensure that ao_alarm waits at least the specified timeKeith Packard2009-12-19
| | | | | | | Because the timer tick may happen soon, it's important to delay by another tick to ensure that we don't wake up early. Signed-off-by: Keith Packard <keithp@keithp.com>
* Disable monitor mode before attempting radio test.Keith Packard2009-12-19
| | | | | | | If monitor mode is left active, then the radio lock will not be able to be acquired for the radio test. Signed-off-by: Keith Packard <keithp@keithp.com>
* Use ao_radio_get/ao_radio_put in packet code.Keith Packard2009-12-19
| | | | | | | | The ao_radio_get function both acquires the mutex *and* configures the radio channel and frequency. Failing to use this in the packet code would leave the radio frequency unconfigured. Signed-off-by: Keith Packard <keithp@keithp.com>
* Add --cal to man pageKeith Packard2009-12-15
|
* Allow radio calibration to be set from ao-loadKeith Packard2009-12-05
| | | | | | | | This moves the initial radio calibration value into const memory where it will be used if no eeprom configuration value is available, either on an unprogrammed board with eeprom or a device without an eeprom. Signed-off-by: Keith Packard <keithp@keithp.com>
* Re-order config values. Change frequency to calKeith Packard2009-12-05
| | | | | | | Place more often used values at top, and consistently call the radio value 'calibration' instead of 'frequency'. Signed-off-by: Keith Packard <keithp@keithp.com>
* Add radio calibration configuration.Keith Packard2009-12-04
| | | | | | | | | The crystal we use is only good for 20ppm, which generates a fairly significant error bounds at our RF frequency. This commit adds a configuration variable that sets the RF frequency control variable so that the output frequency can be adjusted. Signed-off-by: Keith Packard <keithp@keithp.com>
* Make ao_cmd_decimal produce both 32 and 16 bit values.Keith Packard2009-12-04
| | | | | | | ao_cmd_lex_u32 is produced in addition to ao_cmd_lex_i so that functions can easily read 32-bit values from the command line. Signed-off-by: Keith Packard <keithp@keithp.com>
* Remove send_serial and serial_baud commands.Keith Packard2009-12-04
| | | | | | No longer useful, and they take up space. Signed-off-by: Keith Packard <keithp@keithp.com>
* Change default callsign to "N0CALL"Keith Packard2009-12-04
|
* Make TD print 0000-00-00 for invalid dates.Keith Packard2009-11-21
| | | | | | This 'shouldn't' happen, but in case it does, I want to know about it. Signed-off-by: Keith Packard <keithp@keithp.com>
* Decode HDOP data from skytraq GPSKeith Packard2009-11-21
| | | | | | | | The hdop data was getting dropped on the floor, but is rather useful when deciding if the GPS position is crazy or not. This reports HDOP * 5 (giving a useful range of .2-50). Signed-off-by: Keith Packard <keithp@keithp.com>
* Reduce igniter firing time from 500ms to 50ms.Keith Packard2009-11-20
| | | | | | | Given that the system will brown-out with the longer pulse, it doesn't make sense to even try; failure at 50ms probably indicates a short. Signed-off-by: Keith Packard <keithp@keithp.com>
* fix typo in commentBdale Garbee2009-11-20
|
* Stop using SiRF state info.Keith Packard2009-11-15
| | | | | | | | With the switch to the skytraq GPS unit, we don't have the same level of detail in the GPS stream, so stop reporting that in the telemetry stream, in the UI and writing it to eeprom. Signed-off-by: Keith Packard <keithp@keithp.com>
* Add date to GPS data, captured from GPRMC packet.Keith Packard2009-11-15
| | | | | | | Pull the date out of the GPS stream and send it over the telemetry link and write it to the eeprom. Signed-off-by: Keith Packard <keithp@keithp.com>
* Add flight number to telemetry stream.Keith Packard2009-11-15
| | | | | | | | This makes it easier to tie the telemetry and eeprom files together as they're now both labeled with serial and flight numbers, which should be unique. Signed-off-by: Keith Packard <keithp@keithp.com>
* Provide a dummy 'uninstall' target in the src directory.Keith Packard2009-11-14
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Loosen tolerances for main->landed transitionKeith Packard2009-11-14
| | | | | | | | | | | | | | | Detecting that the rocket has landed is required for the system to flush the eeprom log and re-enable the RDF beacon. This patch changes the landed state entry requirements for the accelerometer to require only that the accelerometer stay within a quarter of a g (down from 1/10g) and changes the testing interval from 20 seconds to 5 seconds. The requirement that the barometric altitude be within 1000m of the launch altitude and that the barometer change by no more than 0.05kPa are unchanged. Signed-off-by: Keith Packard <keithp@keithp.com>
* Return radio to telemetry settings when packet system closed.Keith Packard2009-11-05
| | | | | | | To receive telemetry after disabling the packet system, the radio must be reconfigured for telemetry mode. Signed-off-by: Keith Packard <keithp@keithp.com>
* Add reboot command.Keith Packard2009-11-05
| | | | | | This resets the processor using the watchdog timer. Signed-off-by: Keith Packard <keithp@keithp.com>
* Add Watchdog Timer Control register definitionsKeith Packard2009-11-05
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>