diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-02-25 11:52:22 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-02-25 11:52:22 +0100 |
commit | 53c31e288732cfcee9bb04d3768b6015083e05ce (patch) | |
tree | 2907d9ee3eb35213562f0ae978262ae648ff9b03 /src/OutputUHD.cpp | |
parent | 1387a04e605c3c511e2e4fc764eb6434b9837ef8 (diff) | |
download | dabmod-53c31e288732cfcee9bb04d3768b6015083e05ce.tar.gz dabmod-53c31e288732cfcee9bb04d3768b6015083e05ce.tar.bz2 dabmod-53c31e288732cfcee9bb04d3768b6015083e05ce.zip |
Set uhd timestamps log to std::fixed
Diffstat (limited to 'src/OutputUHD.cpp')
-rw-r--r-- | src/OutputUHD.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/OutputUHD.cpp b/src/OutputUHD.cpp index b4344f5..7f880e0 100644 --- a/src/OutputUHD.cpp +++ b/src/OutputUHD.cpp @@ -430,6 +430,7 @@ void OutputUHD::set_usrp_time() else { myUsrp->set_time_now(uhd::time_spec_t(now.tv_sec)); etiLog.level(info) << "OutputUHD: Setting USRP time to " << + std::fixed << uhd::time_spec_t(now.tv_sec).get_real_secs(); } } @@ -462,6 +463,7 @@ void OutputUHD::set_usrp_time() usleep(200000); // 200ms, we want the PPS to be later myUsrp->set_time_unknown_pps(uhd::time_spec_t(seconds + 2)); etiLog.level(info) << "OutputUHD: Setting USRP time next pps to " << + std::fixed << uhd::time_spec_t(seconds + 2).get_real_secs(); } @@ -733,6 +735,7 @@ void UHDWorker::handle_frame(const struct UHDWorkerFrameData *frame) if (md.time_spec.get_real_secs() > usrp_time + TIMESTAMP_ABORT_FUTURE) { etiLog.level(error) << "OutputUHD: Timestamp way too far in the future! offset: " << + std::fixed << md.time_spec.get_real_secs() - usrp_time; throw std::runtime_error("Timestamp error. Aborted."); } |