]> git.gag.com Git - fw/altos/blobdiff - ao-tools/ao-telem/ao-telem.c
ao-telem: Show all 24 bits of GPS altitude data
[fw/altos] / ao-tools / ao-telem / ao-telem.c
index ea0aa8d9b7d9cc8cd4d94e4e88bf5cec386c88cd..02d53ff32cacf571bb0e25474cb27ed3227cc895 100644 (file)
@@ -31,8 +31,7 @@ static const struct option options[] = {
 
 static void usage(char *program)
 {
-       fprintf(stderr, "usage: %s\n"
-               "\t{flight-log} ...\n", program);
+       fprintf(stderr, "usage: %s [--crc] {flight.telem} ...\n",program);
        exit(1);
 }
 
@@ -116,7 +115,7 @@ main (int argc, char **argv)
                                                (telem.location.flags & (1 << 6)) ? ",date" : "",
                                                (telem.location.flags & (1 << 7)) ? ",course" : "");
                                        printf (" alt %5d lat %12.7f lon %12.7f",
-                                               telem.location.altitude,
+                                               AO_TELEMETRY_LOCATION_ALTITUDE(&telem.location),
                                                telem.location.latitude / 1e7,
                                                telem.location.longitude / 1e7);
                                        if ((telem.location.flags & (1 << 6)) != 0) {