altos: Add TeleGPS logging format
authorKeith Packard <keithp@keithp.com>
Sat, 7 Jun 2014 18:34:29 +0000 (11:34 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 7 Jun 2014 18:34:29 +0000 (11:34 -0700)
commit302842ccda46a0a3d58b60d5c7fc82e05f614b0b
treee960a75881f9528668ee52777a4a1d952fd8aab4
parent62aa51f0b785bea146d1e9331e6253de2d547c94
altos: Add TeleGPS logging format

This is mostly like the mega format, but places the flight state in a
spare byte of the GPS data and writes the gps starting location to the
flight packet.

Log data is written by the main tracker thread; there's no reason for
a separate thread given the GPS update rate and the lack of flight
controls. This means ao_log_gps has an API to be called from there,
rather than a thread to run.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/kernel/ao_log.h
src/kernel/ao_log_gps.c [new file with mode: 0644]
src/kernel/ao_log_gps.h [new file with mode: 0644]