Browse Source

more efficient dolater on broadcast pos hpr

Joe Shochet 21 years ago
parent
commit
c96de589dc
1 changed files with 2 additions and 3 deletions
  1. 2 3
      direct/src/distributed/DistributedSmoothNodeBase.py

+ 2 - 3
direct/src/distributed/DistributedSmoothNodeBase.py

@@ -82,6 +82,5 @@ class DistributedSmoothNodeBase:
         # this task accurately aligned with its period and starting time.
         self.d_broadcastPosHpr()
         taskName = self.taskName("sendPosHpr")
-        taskMgr.doMethodLater(self.__broadcastPeriod,
-                              self.__posHprBroadcast, taskName)
-        return Task.done
+        task.delayTime = self.__broadcastPeriod
+        return Task.again