uORB combine VTOL FW and MC virtual topics (#7008)

This commit is contained in:
Daniel Agar
2017-04-09 13:17:20 -04:00
committed by GitHub
parent 19f0b0be3a
commit c5e0bf1c2f
17 changed files with 74 additions and 263 deletions
-9
View File
@@ -57,18 +57,10 @@
#else
#include <sys/statfs.h>
#endif
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <systemlib/err.h>
#include <unistd.h>
#include <drivers/drv_hrt.h>
#include <math.h>
#include <time.h>
#include <uORB/uORB.h>
#include <uORB/topics/vehicle_status.h>
@@ -1965,7 +1957,6 @@ int sdlog2_thread_main(int argc, char *argv[])
if (buf.triplet.current.valid) {
log_msg.msg_type = LOG_GPSP_MSG;
log_msg.body.log_GPSP.nav_state = buf.triplet.nav_state;
log_msg.body.log_GPSP.lat = (int32_t)(buf.triplet.current.lat * (double)1e7);
log_msg.body.log_GPSP.lon = (int32_t)(buf.triplet.current.lon * (double)1e7);
log_msg.body.log_GPSP.alt = buf.triplet.current.alt;