summaryrefslogtreecommitdiffstats
path: root/src/OutputUHD.cpp
diff options
context:
space:
mode:
authorBram (morningbird) <bram@morningbird>2012-08-01 15:06:22 +0200
committerBram (morningbird) <bram@morningbird>2012-08-01 15:06:22 +0200
commit06268c30c784051dfa5d651cb9195298094113b1 (patch)
tree97460917e388bb4592605f29005af4666474ed53 /src/OutputUHD.cpp
parentb593e1cab3a31dff928eafd22f25f16e9daab61d (diff)
downloaddabmod-06268c30c784051dfa5d651cb9195298094113b1.tar.gz
dabmod-06268c30c784051dfa5d651cb9195298094113b1.tar.bz2
dabmod-06268c30c784051dfa5d651cb9195298094113b1.zip
dabmod: offset calculation includes pipeline delay due to FIRFilter
Diffstat (limited to 'src/OutputUHD.cpp')
-rw-r--r--src/OutputUHD.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/OutputUHD.cpp b/src/OutputUHD.cpp
index 6fd3956..c8f4ea9 100644
--- a/src/OutputUHD.cpp
+++ b/src/OutputUHD.cpp
@@ -339,8 +339,8 @@ void UHDWorker::process(struct UHDWorkerData *uwd)
}
#endif
- if (frame->fct % 50 < 4) {
- fprintf(stderr, "UHDOut (%f): frame %d tx_second %zu; pps %.9f\n",
+ if (last_pps > pps_offset) {
+ fprintf(stderr, "UHDOut (usrp time: %f): frame %d; tx_second %zu; pps %.9f\n",
usrp_time,
frame->fct, tx_second, pps_offset);
}
@@ -461,6 +461,11 @@ void UHDWorker::process(struct UHDWorkerData *uwd)
}
+#else // ENABLE_UHD
+ fprintf(stderr, "UHDOut UHD DISABLED: Sample %d : valid timestamp %zu + %f\n",
+ frame->fct,
+ tx_second,
+ pps_offset);
#endif
last_pps = pps_offset;