Revision d140fd71
Added Sensors class that abstracts away sensors from behaviors. Stops creating
duplicated sensors for each scout.
scout/libscout/src/behaviors/wl_test.h | ||
---|---|---|
27 | 27 |
#define _WL_TEST_H_ |
28 | 28 |
|
29 | 29 |
#include "../Behavior.h" |
30 |
#include "../Sensors.h" |
|
30 | 31 |
|
31 | 32 |
class wl_test : Behavior |
32 | 33 |
{ |
33 | 34 |
public: |
34 |
wl_test(std::string scoutname) : Behavior(scoutname, "wl_test"), |
|
35 |
wl_test(std::string scoutname, Sensors* sensors) : |
|
36 |
Behavior(scoutname, "wl_test", sensors), |
|
35 | 37 |
no_response(true), scout_name(scoutname) {}; |
36 | 38 |
/** Actually executes the behavior. */ |
37 | 39 |
void data_callback(std::vector<uint8_t> data); |
Also available in: Unified diff