Revision 5d1c5d81 scout/libscout/src/test_behaviors/maze_solve.h

View differences:

scout/libscout/src/test_behaviors/maze_solve.h
26 26
#ifndef _MAZE_SOLVE_H_
27 27
#define _MAZE_SOLVE_H_
28 28

  
29
#include <stdio.h>
30 29
#include "../behaviors/line_follow.h"
31 30

  
32 31
class maze_solve: public line_follow
......
36 35
            line_follow(scoutname, "maze_solve", sensors) {};
37 36
        void run();
38 37
    private:
39
        void spin_for(double duration);
38
        bool solve(int row, int col, int dir);
39
        void turn_from_to(int current_dir, int intended_dir);
40
        bool look_around(int row, int col, int dir);
40 41
        bool at_destination();
41 42

  
42
        Duration sonar_update_time;
43

  
44 43
        int map[60][60];
45 44
};
46 45
#endif

Also available in: Unified diff