Project

General

Profile

Revision 7db6cf9f

ID7db6cf9f9dc54a3edebcd6bfc5362108519b1cbb
Parent 1019d31f
Child 5925bbbb

Added by Priya almost 11 years ago

Changed all TODO and @TODO to @todo to conform to doxygen.

View differences:

scout/libscout/src/test_behaviors/smart_runaround.cpp
76 76
    return output;
77 77
}
78 78

  
79
// TODO This is bad! It's defined globally across all behaviors. Please fix this. -Alex
79
// @todo This is bad! It's defined globally across all behaviors. Please fix this. -Alex
80 80
Duration sonar_update_time2(1.5);
81 81

  
82 82
// THIS VERSION MODIFIED BY ZANE
......
152 152
 * and turns the scout to the intended direction
153 153
 */
154 154
void smart_runaround::turn_from_to(int current_dir, int intended_dir) {
155
    switch ((4 + intended_dir - current_dir) % 4) // TODO: Try without "4 +" at start
155
    switch ((4 + intended_dir - current_dir) % 4) // @todo: Try without "4 +" at start
156 156
    {
157 157
        case 0:
158 158
	    turn_straight(intended_dir);
......
274 274
    return true;
275 275
}
276 276

  
277
// TODO: test this function
277
// @todo: test this function
278 278
// return true iff the map has been completely explored
279 279
// and only true if it "returned" to home destination after solving
280 280
bool smart_runaround::at_destination() 
......
306 306
    return false;
307 307
}
308 308

  
309
// TODO: test these functions to make sure robot moves well
309
// @todo: test these functions to make sure robot moves well
310 310
// move forward one block in direction "dir"
311 311
void smart_runaround::turn_straight(int dir)
312 312
{
313
    // TODO: try to use motor encoder values to move forward enough
313
    // @todo: try to use motor encoder values to move forward enough
314 314
    motors->set_sides(BASESPEED, BASESPEED, MOTOR_ABSOLUTE);
315 315
    spinOnce();
316 316
    Duration moveTime(1.0);

Also available in: Unified diff