summaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2
diff options
context:
space:
mode:
authorNick Foster <nick@nerdnetworks.org>2011-01-17 14:51:06 -0800
committerNick Foster <nick@nerdnetworks.org>2011-01-17 14:51:06 -0800
commitcaa911aa270ee4aef7244f3159b9fd402a454069 (patch)
tree57e85e00e9727aade1a4dafaa6da98eb5e2b4b6c /host/lib/usrp/usrp2
parentd521bd1c28acf0ca159f8c84a8189bef11fdf65d (diff)
downloaduhd-caa911aa270ee4aef7244f3159b9fd402a454069.tar.gz
uhd-caa911aa270ee4aef7244f3159b9fd402a454069.tar.bz2
uhd-caa911aa270ee4aef7244f3159b9fd402a454069.zip
next: fngets() fixed for GPS driver. polling/timeout moved to host side. small changes to GPS output text.
Diffstat (limited to 'host/lib/usrp/usrp2')
-rw-r--r--host/lib/usrp/usrp2/gps_ctrl.cpp3
-rw-r--r--host/lib/usrp/usrp2/mboard_impl.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/host/lib/usrp/usrp2/gps_ctrl.cpp b/host/lib/usrp/usrp2/gps_ctrl.cpp
index 2273b2cd9..9f9b27954 100644
--- a/host/lib/usrp/usrp2/gps_ctrl.cpp
+++ b/host/lib/usrp/usrp2/gps_ctrl.cpp
@@ -60,13 +60,14 @@ public:
}
else if(reply.substr(0, 3) == "$GP") i_heard_some_nmea = true; //but keep looking for that "Command Error" response
else if(reply.length() != 0) i_heard_something_weird = true; //probably wrong baud rate
+ boost::this_thread::sleep(boost::posix_time::milliseconds(FIREFLY_STUPID_DELAY_MS));
}
if((i_heard_some_nmea) && (gps_type != GPS_TYPE_JACKSON_LABS)) gps_type = GPS_TYPE_GENERIC_NMEA;
//otherwise, we can try some other common baud rates looking to see if a GPS is connected (todo, later)
if((gps_type == GPS_TYPE_NONE) && i_heard_something_weird) {
- std::cout << "Invalid reply, possible incorrect baud rate" << std::endl;
+ std::cout << "GPS invalid reply \"" << reply << "\", assuming none available" << std::endl;
}
bool found_gprmc = false;
diff --git a/host/lib/usrp/usrp2/mboard_impl.cpp b/host/lib/usrp/usrp2/mboard_impl.cpp
index 6d5652e9e..95a3819b3 100644
--- a/host/lib/usrp/usrp2/mboard_impl.cpp
+++ b/host/lib/usrp/usrp2/mboard_impl.cpp
@@ -65,7 +65,7 @@ usrp2_mboard_impl::usrp2_mboard_impl(
//contruct the interfaces to mboard perifs
_clock_ctrl = usrp2_clock_ctrl::make(_iface);
_codec_ctrl = usrp2_codec_ctrl::make(_iface);
- //_gps_ctrl = usrp2_gps_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;