Project

General

Profile

Revision d140fd71

IDd140fd71ddd19ef38a0124cbbea1165874a5474d
Parent 8a4624e7
Child 479d25d8

Added by Yuyang almost 4 years ago

Added Sensors class that abstracts away sensors from behaviors. Stops creating
duplicated sensors for each scout.

View differences:

scout/libscout/src/behaviors/trafficNavigation.h
136 136
class trafficNavigation : Behavior
137 137
{
138 138
    public:
139
        trafficNavigation(std::string scoutname) : Behavior(scoutname, "traffic_nav") {};
139
        trafficNavigation(std::string scoutname, Sensors* sensors) : 
140
                Behavior(scoutname, "traffic_nav", sensors) {};
140 141

  
141 142
        void run();
142 143
		int wirelessPacketHandle(int state);

Also available in: Unified diff