etrobocon2018 feat.KatLab
770af34cce41ae9c30c41303275e1add2daae0c3 (with uncommitted changes)
総合概要
諸情報
名前空間
クラス
ファイル
ファイル一覧
ファイルメンバ
全て
クラス
名前空間
ファイル
関数
変数
列挙型
列挙値
フレンド
マクロ定義
ページ
str
apps
src
NormalCourse.cpp
[詳解]
1
#include "
NormalCourse.h
"
2
3
void
NormalCourse::stop
()
4
{
5
lineTracerWalker
.
setForward
(0);
6
}
7
8
void
NormalCourse::runOrStop
(
Walker
& walker)
9
{
10
if
(
lineTracerWalker
.
getForward
() < 0) {
11
walker.
run
(0, 0);
12
}
else
{
13
walker.
run
(
lineTracerWalker
.
getForward
(),
lineTracerWalker
.
getTurn
());
14
}
15
}
LineTracerWalker::setForward
void setForward(int8_t setValue)
Definition:
LineTracerWalker.cpp:11
NormalCourse::stop
void stop()
Definition:
NormalCourse.cpp:3
NormalCourse::runOrStop
void runOrStop(Walker &walker)
Definition:
NormalCourse.cpp:8
Walker::run
void run(std::int8_t pwm, std::int8_t turn)
Definition:
Walker.cpp:30
LineTracerWalker::getForward
int8_t getForward()
Definition:
LineTracerWalker.cpp:21
NormalCourse.h
NormalCourse::lineTracerWalker
LineTracerWalker lineTracerWalker
Definition:
NormalCourse.h:13
LineTracerWalker::getTurn
int8_t getTurn()
Definition:
LineTracerWalker.cpp:26
Walker
Definition:
Walker.h:7
構築:
1.8.6