diff options
author | Ban Siesta <bansiesta@gmail.com> | 2015-01-04 10:43:28 +0000 |
---|---|---|
committer | Ban Siesta <bansiesta@gmail.com> | 2015-01-04 10:43:28 +0000 |
commit | 25fc9d791a1faf5d37a6b9a13bd16fafd6a5cf5b (patch) | |
tree | 34f01351e24634e58391ecd82ce8727ec085fa40 /src/modules/sdlog2/sdlog2.c | |
parent | 4cc7f599d1f29607fae625e26a586d0758f67283 (diff) | |
download | px4-firmware-25fc9d791a1faf5d37a6b9a13bd16fafd6a5cf5b.tar.gz px4-firmware-25fc9d791a1faf5d37a6b9a13bd16fafd6a5cf5b.tar.bz2 px4-firmware-25fc9d791a1faf5d37a6b9a13bd16fafd6a5cf5b.zip |
renaming of gps time to UTC time
Diffstat (limited to 'src/modules/sdlog2/sdlog2.c')
-rw-r--r-- | src/modules/sdlog2/sdlog2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/sdlog2/sdlog2.c b/src/modules/sdlog2/sdlog2.c index 2daf73bf9..2ce3d0097 100644 --- a/src/modules/sdlog2/sdlog2.c +++ b/src/modules/sdlog2/sdlog2.c @@ -1128,7 +1128,7 @@ int sdlog2_thread_main(int argc, char *argv[]) /* check GPS topic to get GPS time */ if (log_name_timestamp) { if (!orb_copy(ORB_ID(vehicle_gps_position), subs.gps_pos_sub, &buf_gps_pos)) { - gps_time = buf_gps_pos.time_gps_usec; + gps_time = buf_gps_pos.time_utc_usec; } } @@ -1156,7 +1156,7 @@ int sdlog2_thread_main(int argc, char *argv[]) bool gps_pos_updated = copy_if_updated(ORB_ID(vehicle_gps_position), subs.gps_pos_sub, &buf_gps_pos); if (gps_pos_updated && log_name_timestamp) { - gps_time = buf_gps_pos.time_gps_usec; + gps_time = buf_gps_pos.time_utc_usec; } if (!logging_enabled) { @@ -1186,7 +1186,7 @@ int sdlog2_thread_main(int argc, char *argv[]) if (gps_pos_updated) { log_msg.msg_type = LOG_GPS_MSG; - log_msg.body.log_GPS.gps_time = buf_gps_pos.time_gps_usec; + log_msg.body.log_GPS.gps_time = buf_gps_pos.time_utc_usec; log_msg.body.log_GPS.fix_type = buf_gps_pos.fix_type; log_msg.body.log_GPS.eph = buf_gps_pos.eph; log_msg.body.log_GPS.epv = buf_gps_pos.epv; |