summaryrefslogtreecommitdiff
path: root/src/ao_gps_skytraq.c
Commit message (Collapse)AuthorAge
* altos: re-write a bit of GPS parsing code to reduce sizeKeith Packard2011-08-13
| | | | | | | | | Use a local variable while computing hdop. Place the next incoming character in data instead of pdata. Saved a surprising amount of memory. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Switch ao_gps_skytraq and ao_gps_sirf __xdata to __pdataKeith Packard2011-07-06
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Complete new telemetry switchoverKeith Packard2011-07-04
| | | | | | | | | | | | | | This involved rewriting the GPS code to use the telemetry structures directly so that a memcpy could be used to transfer the data to the telemetry packets, saving a bunch of code space, along with fixing up the gps testing programs to deal with the structure changes. In addition, the teledongle code needed to have the monitoring code split into separate radio receiver and USB writer threads as the packets are now back-to-back, and hence come too fast to wait for the USB data to be sent to the host after each one. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add sat info to GPS report commandKeith Packard2011-07-04
| | | | | | Plan to use this to report current flight computer state in idle mode. Signed-off-by: Keith Packard <keithp@keithp.com>
* src/ao_cmd: Shave off bytes from doc stringsAnthony Towns2011-03-07
| | | | | | Switch to using { func, "X args\0Desc" } to specify command, saving a char field by looking at help[0] instead, and reduce help length by doing alignment with printf instead of hardcoded spaces.
* Revert "src/ao_gps_skytraq.c: Update logging rate to 10Hz"Keith Packard2011-03-07
| | | | | | | This reverts commit b080e933a65d268aaaec8cfd5f617a13d5babc43. 10Hz data isn't any better than 1Hz data; it still doesn't like going upwards rapidly.
* src/ao_gps_skytraq.c: Update logging rate to 10HzAnthony Towns2011-02-18
| | | | | Send commands to skytraq to update baud rate to 57,600 bps, and set NMEA output rate to 10Hz.
* src/ao_gps_skytraq: simplify parsing codeAnthony Towns2011-02-18
| | | | | Added macros to make correctly constructing skytraq commands easier. Simplified code path for NMEA processing marginally.
* altos: Restructure skytraq NMEA parsing code to save some spaceAnthony Towns2011-01-16
| | | | | Splitting this into several smaller functions appears to make SDCC generate better code.
* altos: Bounds check Skytraq GPS tracking data arrayKeith Packard2010-09-01
| | | | | | | | | | | | | Missing GPS serial data could cause the tracking array reset to get skipped, causing the array to be overrun, smashing critical data beyond the array. This was detected using the 'altosui' flash command to program a device from TM. Hitting the USB that hard caused TM to crash with a mutex error (3 beeps) after the ao_gps_task structure was overwritten with zeros. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: print GPS state flags in GPS 'g' commandKeith Packard2010-08-26
| | | | | | Having the GPS state information can help with GPS debugging. Signed-off-by: Keith Packard <keithp@keithp.com>
* 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
|
* 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>
* Add --cal to man pageKeith Packard2009-12-15
|
* 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>
* 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>
* Initial packet bits. Just testing transmissionKeith Packard2009-10-30
|
* 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>