From 97c2b93dacd1ebcfb77c2e94d60578f0831b3107 Mon Sep 17 00:00:00 2001 From: Bastian Bloessl Date: Tue, 31 Dec 2013 12:49:01 +0100 Subject: [PATCH] add pilots utils script --- utils/pilots.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 utils/pilots.py diff --git a/utils/pilots.py b/utils/pilots.py new file mode 100644 index 0000000..49b19e9 --- /dev/null +++ b/utils/pilots.py @@ -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))