aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2/gps_ctrl.cpp
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/gps_ctrl.cpp
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/gps_ctrl.cpp')
-rw-r--r--host/lib/usrp/usrp2/gps_ctrl.cpp3
1 files changed, 2 insertions, 1 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;