Revision 339f64d2
Fixed warnings in libscout behaviors.
Some of these were actually serious errors. Others were little things.
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 = ℴ |
|
105 |
//best = ℴ
|
|
106 | 106 |
best_index = i; |
107 | 107 |
time = end_time.toSec() + MAX_WAIT_TIME; |
108 | 108 |
} |
Also available in: Unified diff