ETrobocon2017 - 片山研究所モデルベース開発推進事業部
str
ev3-api
library
libcpp-ev3
include
SonarSensor.h
[詳解]
1
//
2
// SonarSensor.h
3
//
4
// Copyright (c) 2015-2016 Embedded Technology Software Design Robot Contest
5
//
6
7
#ifndef EV3CPPAPI_SONARSENSOR_H_
8
#define EV3CPPAPI_SONARSENSOR_H_
9
10
#include "
Sensor.h
"
11
12
namespace
ev3api
{
16
class
SonarSensor
:
public
Sensor
17
{
18
public
:
24
explicit
SonarSensor
(
ePortS
port);
25
31
virtual
~SonarSensor
(
void
);
32
38
int16_t
getDistance
(
void
)
const
;
39
46
bool
listen
(
void
)
const
;
47
};
// class SonarSensor
48
}
// namespace ev3api
49
50
#endif // ! EV3CPPAPI_SONARSENSOR_H_
ev3api
Definition:
Clock.h:12
ev3api::SonarSensor::listen
bool listen(void) const
Definition:
SonarSensor.cpp:36
ePortS
ePortS
Definition:
Port.h:18
ev3api::Sensor
Definition:
Sensor.h:18
ev3api::SonarSensor::~SonarSensor
virtual ~SonarSensor(void)
Definition:
SonarSensor.cpp:22
Sensor.h
ev3api::SonarSensor::SonarSensor
SonarSensor(ePortS port)
Definition:
SonarSensor.cpp:13
ev3api::SonarSensor
Definition:
SonarSensor.h:16
ev3api::SonarSensor::getDistance
int16_t getDistance(void) const
Definition:
SonarSensor.cpp:29
構築:
1.8.13