Changeset 509

Show
Ignore:
Timestamp:
11/11/09 15:34:49 (14 years ago)
Author:
trnewman
Message:

Took out some debug and added some stats

Location:
vtcross/trunk/src
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • vtcross/trunk/src/cognitive_engines/DSA_CE/DSA_CognitiveEngine.cpp

    r508 r509  
    727727    } 
    728728 
    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]);     
    730731    // Get sum of all the channel utilities. 
    731732    sumSearchName = utility_name; 
     
    754755    //returnValues[CHANNEL] = rand() % (int)pList[0].max + (int)pList[0].min;  
    755756    returnValues[CHANNEL] = channel; 
    756   
     757 
     758    printf("Cognitive Engine:: ..---===***### Channel %i has been selected ###***===---..\n",channel);  
    757759    /* Package up the new set of parameters in order to add 
    758760       the new entry into the CBR database.  */ 
  • vtcross/trunk/src/cross-examples/python/gnuradio-examples/benchmark_dsa.py

    r506 r509  
    163163            hop_freq = float(1e6 * (467.5625+(channel-8)*0.025))#setting the centre freq frequency for sending packets     
    164164         
     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] 
    165167        return channel,hop_freq #returning the channel number and hop frequency 
    166168     
     
    345347                    return_flag = 0 
    346348 
     349 
     350                 
     351 
     352 
    347353                tb.txpath.u.set_center_freq(hop_freq) 
    348354                tb.rxpath.u.set_center_freq(hop_freq) 
  • vtcross/trunk/src/include/vtcross/cbr.h

    r507 r509  
    288288         
    289289    } 
    290     LOG("CBR::Search - command: %s\n", command.c_str()); 
     290    //LOG("CBR::Search - command: %s\n", command.c_str()); 
    291291 
    292292    return ExecuteSearchCommand(_retvals);