ETrobocon2017 - 片山研究所モデルベース開発推進事業部
str
apps
include
LineTracerWalker.h
[詳解]
1
#ifndef __LINETRACERWALKER__
2
#define __LINETRACERWALKER__
3
4
#include "
TurnControl.h
"
5
#include "
SpeedControl.h
"
6
7
class
LineTracerWalker
{
8
public
:
9
LineTracerWalker
();
10
void
runLine
(int32_t countL, int32_t countR, int8_t light_value);
11
void
setForward
(int8_t setValue);
12
void
setTurn
(int8_t setValue);
13
int8_t
getForward
();
14
int8_t
getTurn
();
15
void
isLeftsideLine
(
bool
b);
16
TurnControl
turnControl
;
17
SpeedControl
speedControl
;
18
int8_t
minus
;
19
protected
:
20
int8_t
forward
;
21
int8_t
turn
;
22
};
23
24
25
#endif
LineTracerWalker::isLeftsideLine
void isLeftsideLine(bool b)
Definition:
LineTracerWalker.cpp:28
LineTracerWalker::setForward
void setForward(int8_t setValue)
Definition:
LineTracerWalker.cpp:12
LineTracerWalker::LineTracerWalker
LineTracerWalker()
Definition:
LineTracerWalker.cpp:3
LineTracerWalker::turn
int8_t turn
Definition:
LineTracerWalker.h:21
LineTracerWalker::minus
int8_t minus
Definition:
LineTracerWalker.h:18
TurnControl.h
PID制御によるターン制御クラス
LineTracerWalker::runLine
void runLine(int32_t countL, int32_t countR, int8_t light_value)
Definition:
LineTracerWalker.cpp:7
LineTracerWalker::getForward
int8_t getForward()
Definition:
LineTracerWalker.cpp:20
SpeedControl
PID制御による速度制御クラス
Definition:
SpeedControl.h:18
TurnControl
Definition:
TurnControl.h:15
LineTracerWalker::forward
int8_t forward
Definition:
LineTracerWalker.h:20
LineTracerWalker::getTurn
int8_t getTurn()
Definition:
LineTracerWalker.cpp:24
LineTracerWalker::turnControl
TurnControl turnControl
Definition:
LineTracerWalker.h:16
SpeedControl.h
PID制御による速度制御クラス
LineTracerWalker::setTurn
void setTurn(int8_t setValue)
Definition:
LineTracerWalker.cpp:16
LineTracerWalker::speedControl
SpeedControl speedControl
Definition:
LineTracerWalker.h:17
LineTracerWalker
Definition:
LineTracerWalker.h:7
構築:
1.8.13