Changeset 543

Show
Ignore:
Timestamp:
02/03/10 11:05:47 (14 years ago)
Author:
nikhil
Message:

changes in OSSIE CE

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • vtcross/branches/nikhil/cross/src/cognitive_engines/OSSIE_DEMO_CE/OSSIE_CE.cpp

    r521 r543  
    8080            command += ", "; 
    8181    } 
    82     command += ", timestamp DATE, PRIMARY KEY(tx_power));"; 
     82    command += ", timestamp DATE, PRIMARY KEY(tx_power,ber));"; 
    8383 
    8484    /* Execute the generated command. At this point, the database is ready for 
     
    777777    float searchVals[radioInfo->numObservables]; 
    778778 
    779     for(size_t i = 0; i < radioInfo->numUtilities; i++) { 
     779    for(size_t i = 0; i < radioInfo->numObservables; i++) { 
    780780        searchVals[i] = observables[i].value; 
    781781    } 
     
    826826        /* No rows in the CBR, pick default parameters */ 
    827827        /* Currently this is hard coded and implementation specific! */ 
    828         returnValues[1] = currentParameters[0].value; 
     828       if(returnValues[2] > uList.target) { 
     829        returnValues[1] = currentParameters[0].value + pList.step; 
     830       } 
     831       else { 
     832        returnValues[1] = currentParameters[0].value - pList.step; 
     833       } 
    829834         
    830835    } else {