Project

General

Profile

Revision 1905324e

ID1905324ede544b0057161ba7a6ff8f31be9ebc45

Added by Priya almost 12 years ago

Trying to make the warehouse robot drive around

View differences:

scout/libscout/src/behaviors/line_follow.h
31 31
#define MOTOR_BASE 50
32 32
#define SCALE 20
33 33

  
34
class line_follow : Behavior
34
class line_follow : public Behavior
35 35
{
36 36
    public:
37 37
        line_follow(std::string scoutname) : Behavior(scoutname, "line_follow") {};
......
39 39
        /** Actually executes the behavior. */
40 40
        void run();
41 41

  
42
    private:
42
    protected:
43 43
        void turn_left();
44 44
        void turn_right();
45
        void u_turn();
45 46
        void follow_line();
46 47
        void halt();
47 48
};

Also available in: Unified diff