fix sdlog2: use LOG_DGPS_MSG for second gps (#5235)

This commit is contained in:
Beat Küng
2016-08-04 17:18:02 +02:00
committed by Lorenz Meier
parent aaeeb1684d
commit 8aa3b245a5
+1 -1
View File
@@ -1759,7 +1759,7 @@ int sdlog2_thread_main(int argc, char *argv[])
/* --- GPS POSITION - UNIT #2 --- */
if (copy_if_updated_multi(ORB_ID(vehicle_gps_position), 1, &subs.gps_pos_sub[1], &buf.dual_gps_pos)) {
log_msg.msg_type = LOG_GPS_MSG;
log_msg.msg_type = LOG_DGPS_MSG;
log_msg.body.log_GPS.gps_time = buf.dual_gps_pos.time_utc_usec;
log_msg.body.log_GPS.fix_type = buf.dual_gps_pos.fix_type;
log_msg.body.log_GPS.eph = buf.dual_gps_pos.eph;