Skip to content

Instantly share code, notes, and snippets.

@Novakov
Created August 23, 2017 13:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Novakov/edb64f81d49daa2f45b73a4c66b0a3ac to your computer and use it in GitHub Desktop.
Save Novakov/edb64f81d49daa2f45b73a4c66b0a3ac to your computer and use it in GitHub Desktop.
import response_frames
p = "C:\\PW-Sat\\ramki.txt"
with open(p, 'r') as f:
lines = f.readlines()
def clean_line(line):
return map(lambda x: int(x, 16), line.split(' ')[18:])
lines = map(clean_line, lines)
frame_decoder = response_frames.FrameDecoder(response_frames.frame_factories)
for l in lines:
frame = frame_decoder.decode(l)
print frame
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment