etrobocon2018 feat.KatLab
770af34cce41ae9c30c41303275e1add2daae0c3 (with uncommitted changes)
総合概要
諸情報
名前空間
クラス
ファイル
ファイル一覧
ファイルメンバ
全て
クラス
名前空間
ファイル
関数
変数
列挙型
列挙値
フレンド
マクロ定義
ページ
str
apps
include
LineTracerWalker.h
[詳解]
1
#ifndef __LINETRACERWALKER__
2
#define __LINETRACERWALKER__
3
4
#include "
SpeedControl.h
"
5
#include "
TurnControl.h
"
6
21
class
LineTracerWalker
{
22
public
:
23
LineTracerWalker
();
24
void
runLine
(int32_t countL, int32_t countR, int16_t light_value);
25
void
setForward
(int8_t setValue);
26
void
setTurn
(int8_t setValue);
27
int8_t
getForward
();
28
int8_t
getTurn
();
29
void
isLeftsideLine
(
bool
b);
30
TurnControl
turnControl
;
31
SpeedControl
speedControl
;
32
int8_t
minus
;
33
34
protected
:
35
int8_t
forward
;
36
int8_t
turn
;
37
};
38
39
#endif
LineTracerWalker::isLeftsideLine
void isLeftsideLine(bool b)
Definition:
LineTracerWalker.cpp:31
LineTracerWalker::setForward
void setForward(int8_t setValue)
Definition:
LineTracerWalker.cpp:11
LineTracerWalker::LineTracerWalker
LineTracerWalker()
Definition:
LineTracerWalker.cpp:3
LineTracerWalker::turn
int8_t turn
Definition:
LineTracerWalker.h:36
LineTracerWalker::runLine
void runLine(int32_t countL, int32_t countR, int16_t light_value)
Definition:
LineTracerWalker.cpp:5
LineTracerWalker::minus
int8_t minus
Definition:
LineTracerWalker.h:32
TurnControl.h
PID制御によるターン制御クラス
LineTracerWalker::getForward
int8_t getForward()
Definition:
LineTracerWalker.cpp:21
SpeedControl
PID制御による速度制御クラス
Definition:
SpeedControl.h:18
TurnControl
Definition:
TurnControl.h:16
LineTracerWalker::forward
int8_t forward
Definition:
LineTracerWalker.h:35
LineTracerWalker::getTurn
int8_t getTurn()
Definition:
LineTracerWalker.cpp:26
LineTracerWalker::turnControl
TurnControl turnControl
Definition:
LineTracerWalker.h:30
SpeedControl.h
PID制御による速度制御クラス
LineTracerWalker::setTurn
void setTurn(int8_t setValue)
Definition:
LineTracerWalker.cpp:16
LineTracerWalker::speedControl
SpeedControl speedControl
Definition:
LineTracerWalker.h:31
LineTracerWalker
Definition:
LineTracerWalker.h:21
構築:
1.8.6