parameters: (self, currentTime=time.time())
docstring: Determine where in frame mesh network currently is to ensure time sync.
docstring_summary: Determine where in frame mesh network currently is to ensure time sync.
docstring_tokens: Determine where in frame mesh network currently is to ensure time sync .
function: def syncTDMAFrame(self, currentTime=time.time()):
          """Determine where in frame mesh network currently is to ensure time sync."""
          self.frameTime = (currentTime - self.commStartTime)%self.frameLength
          self.frameStartTime = currentTime - self.frameTime
          self.frameCount = math.floor(currentTime - self.commStartTime) / self.frameLength
          #print("Node " + str(self.nodeParams.config.nodeId) + " " + str(self.frameStartTime),"- Frame start") 
          
          # Update periodic mesh messages
          if (TDMACmds['MeshStatus'] in self.tdmaCmds):
              self.tdmaCmds[TDMACmds['MeshStatus']].cmdData['status'] = self.tdmaStatus
              self.tdmaCmds[TDMACmds['MeshStatus']].cmdData['configHash'] = self.nodeParams.config.calculateHash()
          if (TDMACmds['LinkStatus'] in self.tdmaCmds):
              self.tdmaCmds[TDMACmds['LinkStatus']].cmdData['linkStatus'] = self.nodeParams.linkStatus
                  
          # Reset buffer read position
          self.rxBufferReadPos = 0
  
          # Check for tdma failsafe
          self.checkTimeOffset()
function_tokens: def syncTDMAFrame ( self , currentTime = time . time ( ) ) : self . frameTime = ( currentTime - self . commStartTime ) % self . frameLength self . frameStartTime = currentTime - self . frameTime self . frameCount = math . floor ( currentTime - self . commStartTime ) / self . frameLength #print("Node " + str(self.nodeParams.config.nodeId) + " " + str(self.frameStartTime),"- Frame start")  # Update periodic mesh messages if ( TDMACmds [ 'MeshStatus' ] in self . tdmaCmds ) : self . tdmaCmds [ TDMACmds [ 'MeshStatus' ] ] . cmdData [ 'status' ] = self . tdmaStatus self . tdmaCmds [ TDMACmds [ 'MeshStatus' ] ] . cmdData [ 'configHash' ] = self . nodeParams . config . calculateHash ( ) if ( TDMACmds [ 'LinkStatus' ] in self . tdmaCmds ) : self . tdmaCmds [ TDMACmds [ 'LinkStatus' ] ] . cmdData [ 'linkStatus' ] = self . nodeParams . linkStatus # Reset buffer read position self . rxBufferReadPos = 0 # Check for tdma failsafe self . checkTimeOffset ( )