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);
}
(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) {
}
printf ("\n");
break;
- case AO_TELEMETRY_MEGA_SENSOR:
+ case AO_TELEMETRY_MEGA_SENSOR_MPU:
+ case AO_TELEMETRY_MEGA_SENSOR_BMX160:
printf ("orient %3d accel %5d pres %9d temp %5d accel_x %5d accel_y %5d accel_z %5d gyro_x %5d gyro_y %5d gyro_z %5d mag_x %5d mag_y %5d mag_z %5d\n",
telem.mega_sensor.orient,
telem.mega_sensor.accel,