Revision 349, 0.7 KB
(checked in by sriram, 15 years ago)
|
Simply prints power in the mentioned band
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | #!/usr/bin/env python |
---|
2 | #Transmission and reception, one ata a time on the same antena |
---|
3 | |
---|
4 | from gnuradio import gr, gru, modulation_utils |
---|
5 | from gnuradio import eng_notation |
---|
6 | from gnuradio.eng_option import eng_option |
---|
7 | from optparse import OptionParser |
---|
8 | from numpy import random |
---|
9 | import random, time, struct, sys, math |
---|
10 | import traceback |
---|
11 | # from current dir |
---|
12 | from transmit_path import transmit_path |
---|
13 | from receive_path import receive_path |
---|
14 | |
---|
15 | def main(): |
---|
16 | hop_freq = 462.5625e6 |
---|
17 | while True |
---|
18 | tb.rxpath.min_freq = hop_freq - 80e3 |
---|
19 | tb.rxpath.max_freq = hop_freq + 80e3 |
---|
20 | tb.rxpath.get_avg_power(10) |
---|
21 | |
---|
22 | if __name__ == '__main__': |
---|
23 | try: |
---|
24 | main() |
---|
25 | except KeyboardInterrupt: |
---|
26 | pass |
---|