Project

General

Profile

Revision 339f64d2

ID339f64d25a9ebe0313c025e75956f7ff224d8965
Parent 4f83d2b4
Child 259aaff8, 126fea96

Added by Alex Zirbel about 11 years ago

Fixed warnings in libscout behaviors.

Some of these were actually serious errors. Others were little things.

View differences:

scout/libscout/src/test_behaviors/Scheduler.cpp
92 92
  Time t = ros::TIME_MAX; 
93 93
  double time = t.toSec();
94 94

  
95
  Order* best;
96
  int best_index;
95
  //Order* best;        // Unused; restore when needed
96
  int best_index = 0;
97 97
  for(unsigned int i=0; i<unassignedOrders->arraySize(); i++)
98 98
  {
99 99
    Order order = unassignedOrders->peek(i);
......
102 102

  
103 103
    if(end_time.toSec() + MAX_WAIT_TIME < time) //TODO: use another function
104 104
    {
105
      best = &order;
105
      //best = &order;
106 106
      best_index = i;
107 107
      time = end_time.toSec() + MAX_WAIT_TIME;
108 108
    }

Also available in: Unified diff