etrobocon2018 feat.KatLab
770af34cce41ae9c30c41303275e1add2daae0c3 (with uncommitted changes)
総合概要
諸情報
名前空間
クラス
ファイル
ファイル一覧
ファイルメンバ
全て
クラス
名前空間
ファイル
関数
変数
列挙型
列挙値
フレンド
マクロ定義
ページ
str
ev3-api
library
libcpp-ev3
include
GyroSensor.h
[詳解]
1
//
2
// GyroSensor.h
3
//
4
// Copyright (c) 2015-2016 Embedded Technology Software Design Robot Contest
5
//
6
7
#ifndef EV3CPPAPI_GYROSENSOR_H_
8
#define EV3CPPAPI_GYROSENSOR_H_
9
10
#include "
Sensor.h
"
11
12
namespace
ev3api {
16
class
GyroSensor
:
public
Sensor
17
{
18
public
:
22
static
const
int16_t
DEFAULT_OFFSET
= 0;
23
30
explicit
GyroSensor
(
ePortS
port);
31
38
void
setOffset
(int16_t offset);
39
45
void
reset
(
void
);
46
52
int16_t
getAnglerVelocity
(
void
)
const
;
53
59
int16_t
getAngle
(
void
)
const
;
60
61
private
:
62
int16_t mOffset;
63
};
// class GyroSensor
64
}
// namespace ev3api
65
66
#endif // ! EV3CPPAPI_GYROSENSOR_H_
ev3api::GyroSensor::DEFAULT_OFFSET
static const int16_t DEFAULT_OFFSET
Definition:
GyroSensor.h:22
ev3api::GyroSensor::GyroSensor
GyroSensor(ePortS port)
Definition:
GyroSensor.cpp:13
ev3api::GyroSensor::getAnglerVelocity
int16_t getAnglerVelocity(void) const
Definition:
GyroSensor.cpp:39
ePortS
ePortS
Definition:
Port.h:18
ev3api::GyroSensor::setOffset
void setOffset(int16_t offset)
Definition:
GyroSensor.cpp:24
ev3api::Sensor
Definition:
Sensor.h:18
ev3api::GyroSensor
Definition:
GyroSensor.h:16
Sensor.h
ev3api::GyroSensor::reset
void reset(void)
Definition:
GyroSensor.cpp:32
ev3api::GyroSensor::getAngle
int16_t getAngle(void) const
Definition:
GyroSensor.cpp:46
構築:
1.8.6