mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-26 21:22:27 -06:00
13 lines
468 B
Python
Executable file
13 lines
468 B
Python
Executable file
from OrthoWalk import *
|
|
|
|
class TwoDWalk(OrthoWalk):
|
|
notify = DirectNotifyGlobal.directNotify.newCategory('TwoDWalk')
|
|
BROADCAST_POS_TASK = 'TwoDWalkBroadcastPos'
|
|
|
|
def doBroadcast(self, task):
|
|
dt = globalClock.getDt()
|
|
self.timeSinceLastPosBroadcast += dt
|
|
if self.timeSinceLastPosBroadcast >= self.broadcastPeriod:
|
|
self.timeSinceLastPosBroadcast = 0
|
|
self.lt.cnode.broadcastPosHprFull()
|
|
return Task.cont
|