diff options
Diffstat (limited to 'logic')
| -rw-r--r-- | logic/pipeline.cpp | 4 | ||||
| -rw-r--r-- | logic/pipeline.hpp | 5 | 
2 files changed, 4 insertions, 5 deletions
diff --git a/logic/pipeline.cpp b/logic/pipeline.cpp index bc8026ed..255f63bc 100644 --- a/logic/pipeline.cpp +++ b/logic/pipeline.cpp @@ -285,7 +285,7 @@ void pipeline::maybe_set_center_pose(const Pose& value, bool own_center_logic)              libs.pFilter->center();          if (own_center_logic) -            center = {}; +            center = Pose();          else              center = value;      } @@ -521,6 +521,8 @@ void pipeline::run()      {          logic(); +        using namespace time_units; +          constexpr ns const_sleep_ms(ms{4});          const ns elapsed_nsecs = t.elapsed<ns>();          t.start(); diff --git a/logic/pipeline.hpp b/logic/pipeline.hpp index 545a7836..fa32ec1e 100644 --- a/logic/pipeline.hpp +++ b/logic/pipeline.hpp @@ -26,7 +26,6 @@  namespace pipeline_impl {  using namespace euler; -using namespace time_units;  using vec6_bool = Mat<bool, 6, 1>;  using vec3_bool = Mat<bool, 6, 1>; @@ -55,8 +54,6 @@ public:                          const vec6_bool& disable, bool neck_enable, int neck_z);  }; -using namespace time_units; -  enum bit_flags : unsigned {      f_none           = 0,      f_center         = 1 << 0, @@ -102,7 +99,7 @@ class OTR_LOGIC_EXPORT pipeline : private QThread      Pose center; -    ns backlog_time {}; +    time_units::ns backlog_time {};      bool tracking_started = false;  | 
