Changeset 408 for vtcross/trunk/src/cognitive_engines/DSA_CE/examples
- Timestamp:
- 07/30/09 22:42:42 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
vtcross/trunk/src/cognitive_engines/DSA_CE/examples/gnuradio-examples/benchmark_dsa.py
r407 r408 14 14 from receive_path import receive_path 15 15 16 # import cross 17 from cross import * 18 16 17 18 try: 19 from cross import * 20 cross_import = True 21 except ImportError: 22 cross_import = False 19 23 20 24 global sync_status,mode,ch,traffic_flag,n_rcvd, n_right … … 82 86 83 87 if cross == True: 84 85 88 if hop_freq == 462562500: 86 89 channel = 1 … … 257 260 258 261 if options_rx.cross == True: 259 print "[[ Using the CROSS DSA Cognitive Engine ]]\n" 262 if cross_import == False: 263 print "\n\n[[ CROSS Import failed.. Defaulting to RANDOM channel selection ]]" 264 print "[[ Using the RANDOM channel selection algorithm ]]\n\n" 265 options_rx.cross = False 266 else: 267 print "[[ Using the CROSS DSA Cognitive Engine ]]" 260 268 else: 261 print "[[ Using the RANDOM channel selection algorithm ]]\n "269 print "[[ Using the RANDOM channel selection algorithm ]]\n\n" 262 270 263 271 # build the graph … … 278 286 hop_freq = options_tx.tx_freq # = options_rx.rx_freq...same for tx and rx side 279 287 280 281 288 # Scan all channels first for inital data 282 289 time.sleep(0.1)