aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2/mboard_impl.cpp
diff options
context:
space:
mode:
authorNick Foster <nick@nerdnetworks.org>2010-08-13 16:16:22 -0700
committerNick Foster <nick@nerdnetworks.org>2010-08-13 16:16:22 -0700
commit727d8711f94bf7fe634fc33659b77bc4b4884d9c (patch)
tree7c0761dbcd0f47d1fd350190ecde1ced5d30f947 /host/lib/usrp/usrp2/mboard_impl.cpp
parent5ab3f053529bb8d85a7f1ba9e1dd113c1f6eb813 (diff)
downloaduhd-727d8711f94bf7fe634fc33659b77bc4b4884d9c.tar.gz
uhd-727d8711f94bf7fe634fc33659b77bc4b4884d9c.tar.bz2
uhd-727d8711f94bf7fe634fc33659b77bc4b4884d9c.zip
Support for NMEA reads. Uses NMEA parsing instead of Jackson Labs parsing.
No multibaud support yet. read/write_uart() now do multiple-packet writes in multiples of 20 bytes (hardcoded).
Diffstat (limited to 'host/lib/usrp/usrp2/mboard_impl.cpp')
-rw-r--r--host/lib/usrp/usrp2/mboard_impl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp2/mboard_impl.cpp b/host/lib/usrp/usrp2/mboard_impl.cpp
index ed6398405..6c4234641 100644
--- a/host/lib/usrp/usrp2/mboard_impl.cpp
+++ b/host/lib/usrp/usrp2/mboard_impl.cpp
@@ -26,9 +26,11 @@
#include <boost/bind.hpp>
#include <boost/asio/ip/address_v4.hpp>
#include <iostream>
+#include <boost/date_time/posix_time/posix_time.hpp>
using namespace uhd;
using namespace uhd::usrp;
+using namespace boost::posix_time;
/***********************************************************************
* Structors
@@ -57,6 +59,8 @@ usrp2_mboard_impl::usrp2_mboard_impl(
_serdes_ctrl = usrp2_serdes_ctrl::make(_iface);
_gps_ctrl = usrp2_gps_ctrl::make(_iface);
+ if(_gps_ctrl->gps_detected()) std::cout << "GPS time: " << _gps_ctrl->get_time() << std::endl;
+
//TODO move to dsp impl...
//load the allowed decim/interp rates
//_USRP2_RATES = range(4, 128+1, 1) + range(130, 256+1, 2) + range(260, 512+1, 4)