ETrobocon2017 - 片山研究所モデルベース開発推進事業部
str
apps
include
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
SonarAlert
Definition:
SonarAlert.h:8
ev3api
Definition:
Clock.h:12
SonarSensor.h
ev3api::SonarSensor
Definition:
SonarSensor.h:16
SONAR_ALERT_DISTANCE
#define SONAR_ALERT_DISTANCE
Definition:
common_definition.h:16
構築:
1.8.13