Created
August 23, 2017 13:19
-
-
Save Novakov/edb64f81d49daa2f45b73a4c66b0a3ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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