2021-06-07 12:06:08 +02:00
|
|
|
#pragma once
|
|
|
|
|
2021-06-21 11:17:33 +02:00
|
|
|
#define BALL_PRESENCE_TRESH 600
|
2021-06-07 12:06:08 +02:00
|
|
|
|
|
|
|
#include <Arduino.h>
|
|
|
|
#include "behaviour_control/data_source.h"
|
|
|
|
|
|
|
|
class DataSourceBallPresence : public DataSource{
|
|
|
|
|
|
|
|
public:
|
|
|
|
DataSourceBallPresence(int, bool);
|
|
|
|
void postProcess() override;
|
|
|
|
void test() override;
|
|
|
|
bool isInMouth();
|
|
|
|
|
|
|
|
public:
|
|
|
|
bool present;
|
|
|
|
};
|