SPQR-Team-2019-REVAMPED/include/sensors/data_source_bt.h

20 lines
444 B
C
Raw Permalink Normal View History

2019-12-11 16:29:18 +01:00
#pragma once
#include "behaviour_control/data_source.h"
2019-12-11 16:29:18 +01:00
#include "vars.h"
class DataSourceBT : public DataSource{
public:
DataSourceBT(HardwareSerial* ser, int baud);
void test() override;
2021-05-14 01:57:49 +02:00
void update() override;
2019-12-11 16:29:18 +01:00
void connect();
2021-05-14 01:57:49 +02:00
void receive();
void send();
2019-12-11 16:29:18 +01:00
bool can_send, bt_bombarded, comrade;
2021-05-14 01:57:49 +02:00
unsigned long bt_timer, last_received, t;
char received, tosend;
2019-12-11 16:29:18 +01:00
};