moved sendcurrentposition to base class

This commit is contained in:
Joe Shochet 2005-03-18 01:54:39 +00:00
parent e4c5327f05
commit 01232c9e6f
2 changed files with 4 additions and 4 deletions

View File

@ -312,10 +312,6 @@ class DistributedSmoothNode(DistributedNode.DistributedNode,
self.forceToTruePosition()
self.sendCurrentPosition()
def sendCurrentPosition(self):
self.cnode.initialize(self, self.dclass, self.doId)
self.cnode.sendEverything()
### Monitor clock sync ###
def d_suggestResync(self, avId, timestampA, timestampB,

View File

@ -84,3 +84,7 @@ class DistributedSmoothNodeBase:
taskName = self.taskName("sendPosHpr")
task.delayTime = self.__broadcastPeriod
return Task.again
def sendCurrentPosition(self):
self.cnode.initialize(self, self.dclass, self.doId)
self.cnode.sendEverything()