Project

General

Profile

Revision 5d1c5d81

ID5d1c5d8107f3c26f2cd388253e0b634cf72882b0
Parent a1219504
Child b9e59a3c, c43cef09

Added by Hui Jun Tay about 11 years ago

undid overwrite of maze_solve with maze_solve_simple

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