diff options
author | Josh Blum <josh@joshknows.com> | 2010-07-02 18:29:19 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-07-05 13:45:17 -0700 |
commit | 37bc860d52c937fb35925af3590d9bca1ecad559 (patch) | |
tree | b377612c19f1ef5723d7a09bd94799db56d32e64 /host | |
parent | 09ad8e1337c76ae9ca8bbf18791519fa786a286a (diff) | |
download | uhd-37bc860d52c937fb35925af3590d9bca1ecad559.tar.gz uhd-37bc860d52c937fb35925af3590d9bca1ecad559.tar.bz2 uhd-37bc860d52c937fb35925af3590d9bca1ecad559.zip |
mimo: added call to set time to zero at next pps on init
Diffstat (limited to 'host')
-rw-r--r-- | host/include/uhd/usrp/mimo_usrp.hpp | 1 | ||||
-rw-r--r-- | host/lib/usrp/mimo_usrp.cpp | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/host/include/uhd/usrp/mimo_usrp.hpp b/host/include/uhd/usrp/mimo_usrp.hpp index 483feca29..a3cbde483 100644 --- a/host/include/uhd/usrp/mimo_usrp.hpp +++ b/host/include/uhd/usrp/mimo_usrp.hpp @@ -75,6 +75,7 @@ public: * The values will not be latched in until the pulse occurs. * It is recommended that the user sleep(1) after calling to ensure * that the time registers will be in a known state prior to use. + * This call works across all mboards in the mimo configuration. * * Note: Because this call sets the time on the "next" pps, * the seconds in the time spec should be current seconds + 1. diff --git a/host/lib/usrp/mimo_usrp.cpp b/host/lib/usrp/mimo_usrp.cpp index 3c9788388..bd7753d09 100644 --- a/host/lib/usrp/mimo_usrp.cpp +++ b/host/lib/usrp/mimo_usrp.cpp @@ -64,6 +64,10 @@ public: mboard[MBOARD_PROP_CLOCK_CONFIG] = clock_config; } + //set the times to zero at the next pps and sleep + this->set_time_next_pps(time_spec_t(0, 0)); + sleep(1); + } ~mimo_usrp_impl(void){ |