aboutsummaryrefslogtreecommitdiffstats
path: root/host/utils/query_gpsdo_sensors.cpp
Commit message (Collapse)AuthorAgeFilesLines
* utils: Improve NMEA string outputmichael-west2020-10-121-47/+42
| | | | | | | | | | Separated output of GPGGA and GPRMC strings into separate try/catch so each one would display independently. Resolves issue of GPGGA string not displaying on devices that don't support the GPRMC string. Also removed unnecessary uses of boost::format. Signed-off-by: michael-west <michael.west@ettus.com>
* utils: remove thread priority elevationCiro Nishiguchi2019-11-261-2/+0
| | | | | | | | Remove UHD call to elevate thread priority to realtime from utils, and add warning in documentation of set_thread_priority function. Setting all threads to the same realtime priority can cause the threads to not share access to the network interface fairly, which adversely affects operation of the worker threads in UHD.
* utils: query_gpsdo_sensors: Fix ref_lock wait loopMartin Braun2019-11-211-1/+4
| | | | | | The old loop didn't have any output, and had an inaccurate timeout. We now use a timer for a 30 second timeout, and print a . every time we poll the sensor.
* uhd: mpm: apply clang-format to all filesBrent Stapleton2019-01-161-215/+244
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Applying formatting changes to all .cpp and .hpp files in the following directories: ``` find host/examples/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/tests/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/lib/usrp/dboard/neon/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/lib/usrp/dboard/magnesium/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/lib/usrp/device3/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/lib/usrp/mpmd/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/lib/usrp/x300/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/utils/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find mpm/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file ``` Also formatted host/include/, except Cpp03 was used as a the language standard instead of Cpp11. ``` sed -i 's/ Cpp11/ Cpp03/g' .clang-format find host/include/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file ``` Formatting style was designated by the .clang-format file.
* examples: utils: skip formatting program optionsBrent Stapleton2019-01-161-0/+2
| | | | | | Turning off clang formatting around the program option declarations. clang-format makes them looks bad an unreadable because it thinks the options are function calls or something.
* utils: Improve query_gpsdo_sensorsmichael-west2018-12-201-31/+28
| | | | | | | | | - Sets time source before checking ref_locked (E310 uses time source for PLL) - Checks for existence of "gpsdo" time and clock sources before setting - Only attempts to set them if they exist - Does not fall back on external sources - Returns with error if neither can be set to "gpsdo"
* lib: Purge all references to boost::this_thread::sleep()Martin Braun2018-04-301-3/+3
| | | | Replace with std::this_thread::sleep_for().
* utils: fix 30s timeout in query_gpsdo_sensorsTrung N Tran2018-04-301-7/+12
|
* examples: Fix some minor compiler warningsMartin Braun2018-02-191-1/+1
| | | | All warnings reported by MSVC. Mostly related to narrowing conversions.
* uhd: Update license headersMartin Braun2018-02-191-1/+2
| | | | | | | All copyright is now attributed to "Ettus Research, a National Instruments company". SPDX headers were also updated to latest version 3.0.
* utils: Fix query_gpsdo_sensors so it works for TCXO on B200michael-west2018-02-011-0/+3
|
* Move all license headers to SPDX format.Martin Braun2017-12-221-12/+1
|
* utils: add set_thread_name API call, move thread_priority to threadAndrej Rode2017-06-291-1/+1
|
* GPS: Improvements to query_gpsdo_sensormichael-west2017-01-301-42/+57
| | | | | | | - Reordered operations to make sure setting clock and time sources is first - Reduced delay waiting for ref lock - Added wait for GPSDO warm up - Made warning messages in gps_ctrl function into log messages to prevent unnecessary output
* utils: Added missing newline to query_gpsdo_sensor outputMartin Braun2016-08-181-6/+6
|
* query_gpsdo_sensors: added OctoClock-G supportNicholas Corgan2016-06-161-0/+39
|
* Fixed minor warningsNicholas Corgan2016-06-161-3/+3
| | | | | | * Mismatched printf format strings * Number truncation * Unreferenced variables
* query_gpsdo_sensors: fixed sleep timeNicholas Corgan2016-03-251-2/+2
|
* utils: Updated query_gpsdo_sensorsMarcus Müller2016-03-241-31/+90
| | | | | | | | | | * Beautified the tool: * better help messages, argument description * removed device-specific warning about external clock source being unavailable * if instant LO lock cannot be achieved, wait a few seconds * try/catches don't swallow unrelated errors * copyright year * Since time is no longer auto-set on GPSDO, fix that
* uhd: utils: query_gpsdo: Explicitly set time_source to 'gpsdo'.Moritz Fischer2015-05-011-0/+4
| | | | Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
* uhd: Fixed multiple compiler warnings (unused variables, missing literal f)Martin Braun2015-03-111-1/+1
|
* Initial commit E300 support.Martin Braun2014-10-071-8/+13
|
* Updated documentationNicholas Corgan2014-07-311-4/+5
| | | | | * Updated UHD documentation-related URL's after manual overhaul * Updated NI-USRP URL to link to NI-USRP 1.3
* gps: flush uart buffer before waiting for timeJosh Blum2013-04-091-1/+2
| | | | | | This addresses a bug only on the master branch. Also turn off the servo sensor, its too long a delay. We will need to conditionally enable this in a later commit.
* Merge branch 'maint'Josh Blum2013-04-091-1/+1
|\
| * gps: use to_ticks in query app to avoid rounding issuesJosh Blum2013-04-091-1/+1
| | | | | | | | | | | | The to_ticks(1.0) is a preferable way to get whole seconds because it avoids possible rounding issues since just getting full seconds does not account for the frac seconds.
* | gps: added print for pc clock time to query_gpsdoJosh Blum2013-04-091-0/+2
|/
* Modify query_gpsdo_sensors to wait long enough to latch a PPS in before ↵Nick Foster2013-01-091-1/+2
| | | | checking it.
* gpsdo: dont round, do get_full_secsJosh Blum2012-10-181-1/+1
|
* query_gpsdo_sensors: Cleaned up a bit and fixed bugs.Moritz Fischer2012-10-181-123/+121
|
* utils: query_gpsdo_sensors bugfixesNicholas Corgan2012-10-161-120/+123
| | | | | * Fixed method of determining lock from sensor string output * Fixed method of rounding for Windows compatibility
* utils: Query GPSDO SensorsNicholas Corgan2012-10-021-0/+120
* Outputs readings of GPSDO sensors and compares UHD device time with GPS time * Correction of URL for GPSDO installation information