SPQR-Team-2019-REVAMPED/include/data_source_us.h

21 lines
473 B
C
Raw Normal View History

2019-11-25 17:30:47 +01:00
#pragma once
#include "data_source.h"
#define US_WAIT_TIME 70
2019-11-25 17:30:47 +01:00
class DataSourceUS : public DataSource{
public:
DataSourceUS(TwoWire* i2c_, int addr);
2019-11-25 17:30:47 +01:00
void postProcess() override;
void test() override;
void usMode();
void usTrigger();
void usReceive();
void readSensor() override;
2019-11-25 17:30:47 +01:00
int reading;
long us_t0;
long us_t1;
bool us_flag;
2019-11-25 17:30:47 +01:00
};