SPQR-Team1-2020/include/data_source_us.h

21 lines
526 B
C
Raw Normal View History

2019-11-25 17:30:47 +01:00
#pragma once
#include "data_source.h"
class DataSourceUS : public DataSource{
public:
DataSourceUS(TwoWire* i2c_);
void postProcess() override;
void test() override;
void usMode();
void usTrigger();
void usReceive();
//void readSensor() override;
int reading;
long us_t0;
long us_t1;
bool us_flag;
int us_values[4];
int us_sx, us_dx, us_px, us_fr;
};