summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* 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>
* Move ao_match_word from ao_ignite.c to ao_cmd.cKeith Packard2009-11-05
| | | | | | This is a generally useful command line utility. Signed-off-by: Keith Packard <keithp@keithp.com>
* Explicitly use USB I/O routines in packet codeKeith Packard2009-11-04
| | | | | | | | | Using the implicit stdio functions (putchar/getchar/flush) would result in essentially random redirection of each, depending on whether the packet code had characters available when getchar was called. This would cause lockups in putchar. Signed-off-by: Keith Packard <keithp@keithp.com>
* In USB pollchar, wait for packet before re-checking USB out lenKeith Packard2009-11-04
| | | | | | | | | This probably wouldn't actually cause a problem, but it seems more reliable to wait for a packet interrupt before re-reading the packet OUT len register. This could avoid spinning while waiting for a USB packet, which seems like a good thing. Signed-off-by: Keith Packard <keithp@keithp.com>
* In packet master, move USB flush from packet thread to echo threadKeith Packard2009-11-04
| | | | | | | | This keeps the packet thread from blocking on USB and also makes the flush happen after every packet (slightly more USB traffic, but packets are slow anyway). Signed-off-by: Keith Packard <keithp@keithp.com>
* Pass accel calibration over telemetry stream. Telemetry data format change.Keith Packard2009-11-03
| | | | | | | | | | | This allows the ground station to convert the accelerometer sensor values into acceleration and speed data. This requires a new telemetry data structure, and so TeleMetrum and TeleDongle units must be updated synchronously. ao-view will parse either telemetry stream, and the serial format from TeleDongle now has a version number to allow for future changes. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao_flight_test was using accel value for pressure tooKeith Packard2009-11-02
|
* Reformat ADC values to show all 16 bitsKeith Packard2009-11-02
|
* Remove "f" commandKeith Packard2009-11-02
|
* Remove "d" commandKeith Packard2009-11-02
|
* Remove "l" command as ao-dumplong no longer uses itKeith Packard2009-11-02
|
* Add two-point accelerometer calibration.Keith Packard2009-11-02
| | | | | | | Calibration now uses two values, one upside right and the other upside down instead of a single horizontal value. This allows the use of other accelerometers and compensates for variations in the divider circuit to provide more accurate data.
* Add ao_usb_pollchar to ao.hKeith Packard2009-11-02
|
* Disable interrupts while removing tasks from task listKeith Packard2009-11-02
|
* Enable packet-based communcation to command processorKeith Packard2009-11-01
| | | | | | | This splits the packet code into master/slave halves and hooks the slave side up to the getchar/putchar/flush logic in ao_stdio.c Signed-off-by: Keith Packard <keithp@keithp.com>
* No need to wakeup &ao_tick_count nowKeith Packard2009-10-31
|
* Poke master to speed up packet rate when things are busyKeith Packard2009-10-31
|
* Use ao_alarm for ao_delay so it can be easily interruptedKeith Packard2009-10-31
|
* Do more flushing in packet test codeKeith Packard2009-10-30
|
* Add RFIM registerKeith Packard2009-10-30
|
* Send SYN packet to set sequence numbersKeith Packard2009-10-30
|
* Use ao_radio_done to wait for TX to completely finish with packetKeith Packard2009-10-30
|
* Switch packet code from timer thread to ao_alarmKeith Packard2009-10-30
|
* Remove reason from ao_dma_abortKeith Packard2009-10-30
|
* Add ao_alarmKeith Packard2009-10-30
|
* Wait for TX to finish sending dataKeith Packard2009-10-30
|
* Add radio carrier commandKeith Packard2009-10-30
|
* Initial packet bits. Just testing transmissionKeith Packard2009-10-30
|
* Add ao_wake_task and ao_exitKeith Packard2009-10-16
| | | | | | | ao_wake_task signals a specific task to wake up. ao_exit terminates the current task. Signed-off-by: Keith Packard <keithp@keithp.com>
* Save some DSEG space by marking cmd functions __reentrantKeith Packard2009-10-16
| | | | | | | __reentrant causes the compiler to place args and locals on the stack instead of in the data segment. Signed-off-by: Keith Packard <keithp@keithp.com>
* Merge branch 'master' into skytraqKeith Packard2009-10-10
|\
| * Add apogee igniter delay.Keith Packard2009-10-10
| | | | | | | | | | | | | | Provide for a delay after apogee before the drogue charge is fired. This allows TM to be used as a back-up altimeter. Signed-off-by: Keith Packard <keithp@keithp.com>
* | Merge branch 'master' into skytraqKeith Packard2009-10-10
|\|
| * Report igniter continuity in pad/idle mode via beeperKeith Packard2009-10-10
| | | | | | | | | | | | | | | | | | | | | | | | one short beep = drogue two short beeps = main three short beeps = both one long warble = neither In idle mode, it does this just once. In pad mode, it keeps testing and reporting. Signed-off-by: Keith Packard <keithp@keithp.com>
* | Merge branch 'master' into skytraqKeith Packard2009-10-10
|\|
| * Send 0-length IN packet to flush USB after full packetKeith Packard2009-10-10
| | | | | | | | | | | | | | | | | | USB bulk transfers are a sequence of maximum-sized packets followed by a short packet, which signals the end of the transfer. When the last packet of the transfer would be a full-sized packet, an additional packet of zero length is sent to signal the transfer end. Signed-off-by: Keith Packard <keithp@keithp.com>
* | Build two versions of TM, one for SiRF, one for SkyTraqKeith Packard2009-10-09
| | | | | | | | | | | | | | This creates two separate images, depending on which GPS unit is connected. Signed-off-by: Keith Packard <keithp@keithp.com>
* | Add support for the SkyTraq GPS unitKeith Packard2009-10-09
|/ | | | | | This is a build-time option selected by hacking the Makefile at present. Signed-off-by: Keith Packard <keithp@keithp.com>
* Set all of the values to reset the radio for telemetryKeith Packard2009-09-04
| | | | | | | | | | Was sizeof(rdf_setup) instead of sizeof(telemetry_setup) when resetting the radio back to telemetry data mode from rdf mode. With the length value removed from the rdf config, these two arrays are no longer the same length, and so the last config value was not set leaving the radio sending garbage. Signed-off-by: Keith Packard <keithp@keithp.com>
* Make RDF beacon only run on pad and after landing.Keith Packard2009-09-04
| | | | | | | | | | | | It's pretty much impossible to RDF the rocket during flight, and it interferes with the telemetry data stream. Leave it enabled on the pad so that radios can be tested, and then re-enable it once the rocket has landed. This patch also turns the rdf 'on' time into a parameter so it can be changed, and then sets that parameter to 500ms, once every 5 seconds. Signed-off-by: Keith Packard <keithp@keithp.com>