ETrobocon2017 - 片山研究所モデルベース開発推進事業部
SonarAlert.h
[詳解]
1 #ifndef __SONARALERT__
2 #define __SONARALERT__
3 
4 #include <SonarSensor.h>
5 
6 using namespace ev3api;
7 
8 class SonarAlert {
9 public:
10  SonarAlert( int );
11  SonarAlert( int, int, SonarSensor& );
12  ~SonarAlert();
13  int detectBarrier();
14  int getDistanceBorder();
15 
16 private:
17  signed int SONAR_ALERT_DISTANCE;
18  SonarSensor* sonarSensor;
19  unsigned int timeCounter;
20  unsigned int secPerCycle;
21 };
22 
23 #endif
24 
Definition: Clock.h:12
#define SONAR_ALERT_DISTANCE