projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ao-tools: Parse TeleGPS state value from gps location packet
[fw/altos]
/
ao-tools
/
ao-telem
/
ao-telem.c
diff --git
a/ao-tools/ao-telem/ao-telem.c
b/ao-tools/ao-telem/ao-telem.c
index da873838a7f79ad4b06e45be9815510234e8ea1f..75f94ec14aa0a8c37a764e9e3a9eccef4e7ca5c3 100644
(file)
--- a/
ao-tools/ao-telem/ao-telem.c
+++ b/
ao-tools/ao-telem/ao-telem.c
@@
-145,6
+145,8
@@
main (int argc, char **argv)
telem.location.ground_speed / 100.0,
telem.location.climb_rate / 100.0,
telem.location.course * 2);
telem.location.ground_speed / 100.0,
telem.location.climb_rate / 100.0,
telem.location.course * 2);
+ if ((telem.location.state & AO_GPS_STATE_VALID))
+ printf (" state %1d", telem.location.state & ~(AO_GPS_STATE_VALID));
printf ("\n");
break;
case AO_TELEMETRY_SATELLITE:
printf ("\n");
break;
case AO_TELEMETRY_SATELLITE: