add pilots utils script

This commit is contained in:
Bastian Bloessl
2013-12-31 12:49:01 +01:00
parent a5d6c46e35
commit 97c2b93dac
+20
View File
@@ -0,0 +1,20 @@
#!/usr/bin/env python
polarity = [
1, 1, 1, 1,-1,-1,-1, 1,-1,-1,-1,-1, 1, 1,-1, 1,
-1,-1, 1, 1,-1, 1, 1,-1, 1, 1, 1, 1, 1, 1,-1, 1,
1, 1,-1, 1, 1,-1,-1, 1, 1, 1,-1, 1,-1,-1,-1, 1,
-1, 1,-1,-1, 1,-1,-1, 1, 1, 1, 1, 1,-1,-1, 1, 1,
-1,-1, 1,-1, 1,-1, 1, 1,-1,-1,-1, 1, 1,-1,-1,-1,
-1, 1,-1,-1, 1,-1, 1, 1, 1, 1,-1, 1,-1, 1,-1, 1,
-1,-1,-1,-1,-1, 1,-1, 1, 1,-1, 1,-1, 1, 1, 1,-1,
-1, 1,-1,-1,-1, 1, 1, 1,-1,-1,-1,-1,-1,-1,-1]
print "polarity"
print tuple((x, x, x, -x) for x in polarity)
print "pattern"
print tuple((-21, -7, 7, 21) for x in range(127))