- Timestamp:
- 11/11/09 15:34:49 (15 years ago)
- Location:
- vtcross/trunk/src
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
vtcross/trunk/src/cognitive_engines/DSA_CE/DSA_CognitiveEngine.cpp
r508 r509 727 727 } 728 728 729 printf("1: %f\t2: %f\t3: %f\t4: %f\n",utilArray[0],utilArray[1],utilArray[2],utilArray[3]); 729 printf("Current Channel Utility Scores\n"); 730 printf("1: %f\t2: %f\t3: %f\t4: %f\n",utilArray[0],utilArray[1],utilArray[2],utilArray[3]); 730 731 // Get sum of all the channel utilities. 731 732 sumSearchName = utility_name; … … 754 755 //returnValues[CHANNEL] = rand() % (int)pList[0].max + (int)pList[0].min; 755 756 returnValues[CHANNEL] = channel; 756 757 758 printf("Cognitive Engine:: ..---===***### Channel %i has been selected ###***===---..\n",channel); 757 759 /* Package up the new set of parameters in order to add 758 760 the new entry into the CBR database. */ -
vtcross/trunk/src/cross-examples/python/gnuradio-examples/benchmark_dsa.py
r506 r509 163 163 hop_freq = float(1e6 * (467.5625+(channel-8)*0.025))#setting the centre freq frequency for sending packets 164 164 165 stats_array[channel] = stats_array[channel] + 1 166 print "\n1: ", stats_array[1], " 2: ",stats_array[2], " 3: ",stats_array[3], " 4: ", stats_array[4] 165 167 return channel,hop_freq #returning the channel number and hop frequency 166 168 … … 345 347 return_flag = 0 346 348 349 350 351 352 347 353 tb.txpath.u.set_center_freq(hop_freq) 348 354 tb.rxpath.u.set_center_freq(hop_freq) -
vtcross/trunk/src/include/vtcross/cbr.h
r507 r509 288 288 289 289 } 290 LOG("CBR::Search - command: %s\n", command.c_str());290 //LOG("CBR::Search - command: %s\n", command.c_str()); 291 291 292 292 return ExecuteSearchCommand(_retvals);