2019-11-18 18:11:26 +01:00
|
|
|
#pragma once
|
2019-11-18 14:42:43 +01:00
|
|
|
#include "data_source.h"
|
|
|
|
|
|
|
|
class DataSourceBall : public DataSource{
|
|
|
|
|
|
|
|
public:
|
2019-11-18 15:07:46 +01:00
|
|
|
DataSourceBall(HardwareSerial* ser, int baud);
|
2019-11-18 14:42:43 +01:00
|
|
|
void postProcess() override;
|
|
|
|
void test() override;
|
2019-11-25 17:30:47 +01:00
|
|
|
|
2019-11-18 14:42:43 +01:00
|
|
|
int angle,distance;
|
|
|
|
bool ballSeen;
|
|
|
|
};
|