Created
September 6, 2011 08:26
-
-
Save rngtng/1196950 to your computer and use it in GitHub Desktop.
Analyse of first Flipper MEassurement
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
DEZ BIN DIFF BINIARY | |
# 0 50 - 16 # 0011 0010 | |
# 1 34 # 0010 0010 | |
# 2 89 - 16 - 64 # 0101 1001 | |
# 3 73 - 64 # 0100 1001 | |
# 4 80 - 16 - 64 # 0101 0000 | |
# 5 64 - 64 # 0100 0000 | |
# 6 25 - 16 # 0001 1001 | |
# 7 9 # 0000 1001 | |
# 8 16 - 16 # 0001 0000 | |
# 9 0 # 0000 0000 | |
# 0 1 | |
# 1 0 | |
# 59 86 | |
# 68 79 | |
# 70 100 | |
# 71 89 | |
# 71 4 | |
# 77 75 | |
# 78 68 | |
# 79 95 | |
# 82 35 | |
# 85 38 | |
# 87 55 | |
# 98 65 |
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
data/score2600000.ols | |
01000000 (64) 00000001 (1) 00010001 (17) 00001001 (9) 00010101 (21) | |
00011001 (25) 00000001 (1) 00010001 (17) 00001001 (9) 00010101 (21) | |
00001001 (9) 00000001 (1) 00010001 (17) 00001001 (9) 00010101 (21) | |
00010000 (16) 00000001 (1) 00010001 (17) 00001001 (9) 00010101 (21) | |
????????? (0) 00000001 (1) 00010001 (17) 00001001 (9) 00010101 (21) | |
00110010 (50) 00010001 (17) 00001001 (9) 00010101 (21) | |
00100010 (34) 00010001 (17) 00001001 (9) 00010101 (21) | |
01011001 (89) 00010001 (17) 00001001 (9) 00010101 (21) | |
01001001 (73) 00010001 (17) 00001001 (9) 00010101 (21) | |
data/score59600000.ols | |
00110010 (50) 01010110 (86) 00010001 (17) 00001001 (9) 00010101 (21) | |
00100010 (34) 01010110 (86) 00010001 (17) 00001001 (9) 00010101 (21) | |
data/score64600000.ols | |
01001101 (77) 00010001 (17) 00001001 (9) 00010101 (21) | |
data/score66800000.ols | |
00001001 (9) 01011110 (94) 00010001 (17) 00001001 (9) 00010101 (21) | |
00010000 (16) 01011110 (94) 00010001 (17) 00001001 (9) 00010101 (21) | |
data/score68700000.ols | |
00001001 (9) 01001111 (79) 00010001 (17) 00001001 (9) 00010101 (21) | |
00010000 (16) 01001111 (79) 00010001 (17) 00001001 (9) 00010101 (21) | |
data/score69600000.ols | |
01100100 (100) 00010001 (17) 00001001 (9) 00010101 (21) | |
data/score70100000.ols | |
00110010 (50) 01100100 (100) 00010001 (17) 00001001 (9) 00010101 (21) | |
data/score71200000.ols | |
00110010 (50) 01011001 (89) 00010001 (17) 00001001 (9) 00010101 (21) | |
data/score71700000.ols | |
01010000 (80) 00000100 (4) 00010001 (17) 00001001 (9) 00010101 (21) | |
data/score74700000.ols | |
00010000 (16) 01011101 (93) 00010001 (17) 00001001 (9) 00010101 (21) | |
data/score77200000.ols | |
01001001 (73) 01001011 (75) 00010001 (17) 00001001 (9) 00010101 (21) | |
data/score77500000.ols | |
00011001 (25) 01000100 (68) 00010001 (17) 00001001 (9) 00010101 (21) | |
data/score78200000.ols | |
00110010 (50) 01000100 (68) 00010001 (17) 00001001 (9) 00010101 (21) | |
00100010 (34) 01000100 (68) 00010001 (17) 00001001 (9) 00010101 (21) | |
data/score79000000.ols | |
01010000 (80) 01011111 (95) 00010001 (17) 00001001 (9) 00010101 (21) | |
01000000 (64) 01011111 (95) 00010001 (17) 00001001 (9) 00010101 (21) | |
data/score82500000.ols | |
00100010 (34) 00100011 (35) 00010001 (17) 00001001 (9) 00010101 (21) | |
01011001 (89) 00100011 (35) 00010001 (17) 00001001 (9) 00010101 (21) | |
01001001 (73) 00100011 (35) 00010001 (17) 00001001 (9) 00010101 (21) | |
01010000 (80) 00100011 (35) 00010001 (17) 00001001 (9) 00010101 (21) | |
01000000 (64) 00100011 (35) 00010001 (17) 00001001 (9) 00010101 (21) | |
data/score85800000.ols | |
????????? (0) 00000001 (1) 00010001 (17) 00001001 (9) 00010101 (21) | |
00110010 (50) 00100110 (38) 00010001 (17) 00001001 (9) 00010101 (21) | |
00100010 (34) 00100110 (38) 00010001 (17) 00001001 (9) 00010101 (21) | |
01011001 (89) 00100110 (38) 00010001 (17) 00001001 (9) 00010101 (21) | |
01001001 (73) | |
data/score87500000.ols (101001101110010010011100000) | |
01011001 (89) 00110111 (55) 00010001 (17) 00001001 (9) 00010101 (21) | |
01001001 (73) 00110111 (55) 00010001 (17) 00001001 (9) 00010101 (21) | |
01010000 (80) 00110111 (55) 00010001 (17) 00001001 (9) 00010101 (21) | |
01000000 (64) 00110111 (55) 00010001 (17) 00001001 (9) 00010101 (21) | |
data/score92100000.ols 101011111010101010110100000 | |
00011001 (25) 00000001 (1) 00010001 (17) 00001001 (9) 00010101 (21) | |
00001001 (9) 00000001 (1) 00010001 (17) 00001001 (9) 00010101 (21) | |
00010000 (16) 00000001 (1) 00010001 (17) 00001001 (9) 00010101 (21) | |
????????? (0) 00000001 (1) 00010001 (17) 00001001 (9) 00010101 (21) | |
00110010 (50) 00010001 (17) 00001001 (9) 00010101 (21) | |
data/score98900000.ols 101111001010001100000100000 | |
00001001 (9) 00010001 (17) 00001001 (9) 00010101 (21) | |
00010000 (16) 00010001 (17) 00001001 (9) 00010101 (21) | |
????????? (0) 00010001 (17) 00001001 (9) 00010101 (21) | |
00110010 (50) 01000001 (65) 00010001 (17) 00001001 (9) 00010101 (21) | |
00100010 (34) 01000001 (65) 00010001 (17) 00001001 (9) 00010101 (21) | |
01011001 (89) 01000001 (65) 00010001 (17) 00001001 (9) 00010101 (21) | |
01001001 (73) 01000001 (65) 00010001 (17) 00001001 (9) 00010101 (21) | |
01010000 (80) 01000001 (65) 00010001 (17) 00001001 (9) 00010101 (21) | |
01000000 (64) 01000001 (65) 00010001 (17) 00001001 (9) 00010101 (21) | |
00011001 (25) 01000001 (65) 00010001 (17) 00001001 (9) 00010101 (21) |
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
class OlsFile | |
@@mapping = { | |
#PORT -> CHANNEL | |
0 => 6, | |
1 => 4, | |
2 => 2, | |
3 => 0, | |
4 => 1, | |
5 => 3, | |
6 => 5, | |
7 => 7 | |
} | |
attr_accessor :data | |
def initialize(input = nil) | |
self.data = {} | |
parse(input) if input | |
end | |
def parse(input) | |
input.split("\n").each do |line| | |
value, key = line.split('@') | |
value = value.to_i | |
if key && value > 0 | |
self.data[key.to_i] = [value, remap(value)] | |
end | |
end | |
end | |
def remap(value) | |
v = 0 | |
@@mapping.each do |from, to| | |
v |= ((value >> from) & 1) << to | |
end | |
v | |
end | |
end | |
Dir["data/score*"].each do |file| | |
puts | |
puts | |
print file | |
file = OlsFile.new(File.open(file).read) | |
last = 0 | |
file.data.each do |k,v| | |
puts if (k - last > 20) | |
last = k | |
print ("%08b " % v.last) + "(#{v.last}) " | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment