- Timestamp:
- 09/02/09 18:33:48 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
vtcross/trunk/src/cognitive_engines/OSSIE_DEMO_CE/OSSIE_CE.cpp
r418 r457 29 29 30 30 #define TXPOWER 1 31 #define DECREMENTSCALE 5 32 #define INCREMENTSCALE 5 31 33 32 34 static cbr myCBR; … … 675 677 } 676 678 679 cbr_print(myCBR); 680 677 681 /* CBR specific call */ 678 682 uint32_t rc = cbr_search(myCBR, searchNames, searchOps, searchVals, … … 684 688 685 689 /* Should do a random adaptation.. */ 686 if(returnValues[numberColumns-1] < 0) {687 returnValues[ 2] = returnValues[2] - 15;688 } else {689 returnValues[ 2] = returnValues[2] + 15;690 if(returnValues[numberColumns-1] > (uList[0].target * 0.2)) { 691 returnValues[1] = returnValues[1] - DECREMENTSCALE*returnValues[numberColumns-1]; 692 } else if(returnValues[numberColumns-1] < -(uList[0].target * 0.2)) { 693 returnValues[1] = returnValues[1] + INCREMENTSCALE*returnValues[numberColumns-1]; 690 694 } 691 695 } else if(rc == 31337) { … … 693 697 /* No rows in the CBR, pick default parameters */ 694 698 /* Currently this is hard coded and implementation specific! */ 695 returnValues[ 2] = currentParameters[0].value +5;699 returnValues[1] = currentParameters[0].value + .25; 696 700 697 701 } else {