Skip to content
Browse files

More codes

  • Loading branch information...
1 parent b24e26d commit 8e6d866d3c1508cdcfa5bc78c54e0601956533a4 @srwalter srwalter committed Jan 26, 2010
Showing with 8 additions and 0 deletions.
  1. +8 −0 parsestf.py
View
8 parsestf.py
@@ -80,6 +80,8 @@ def get_deltax(br):
'101100': 12,
'101101': 13,
'101110': -13,
+ '101111': 14,
+ '1110000': -14,
'1100111' : 15,
}
return decode(codebook, br)
@@ -114,13 +116,19 @@ def get_deltay(br):
'101000': 13,
'101010': -13,
'1011100': 14,
+ '101001': -14,
'1101000': -15,
+ '1011110': 16,
+ '11010010': 21,
+ '11010110': 25,
}
return decode(codebook, br)
def get_deltaforce(br):
codebook = {
'11111111100': -30,
+ '11011110': -6,
+ '1111111010': -24,
'0': 0,
}
return 2*decode(codebook, br)

0 comments on commit 8e6d866

Please sign in to comment.
Something went wrong with that request. Please try again.