Made some changes to the simulator to debug controller implementation.
Merge request reports
Activity
Added 1 commit:
- 7df8c063 - A few uncommitted lines for finding acks with wrong index.
Added 1 commit:
- 3309bc3e - Print when sending as well.
186 188 self.frag_num = other.frag_num 187 189 self.data += other.data 188 190 return self 189 191 190 192 def __repr__(self): 191 return "Packet(%s %s %d index=%x flags=%x kind=%x data='%s'" % ( 192 ":".join(map(lambda b: "%02.2x" % ord(b), self.destination)), 193 ":".join(map(lambda b: "%02.2x" % ord(b), self.source)), 193 macaddr2str = lambda b: ":".join(["%02.2x" % ord(byte) for byte in b]) Works in this case, since the list comprehension is in a lambda functon, but reading and understanding http://stackoverflow.com/questions/20510190/python-weird-behavior-in-list-comprehension is recommended.
Edited by Anders Blomdell
228 260 elif self.robot: 229 261 self.await_INIT() 230 262 263 @property 264 def cookie(self): 265 if self.cookie_remote_index is None: 266 return 0 267 return self.cookie_local_index ^ self.cookie_remote_index
Please register or sign in to reply