etrobocon2018 feat.KatLab
770af34cce41ae9c30c41303275e1add2daae0c3 (with uncommitted changes)
総合概要
諸情報
名前空間
クラス
ファイル
ファイル一覧
ファイルメンバ
全て
クラス
名前空間
ファイル
関数
変数
列挙型
列挙値
フレンド
マクロ定義
ページ
str
apps
include
TurnControl.h
[詳解]
1
6
#ifndef __TURNCONTROL__
7
#define __TURNCONTROL__
8
9
#include "
LPF.h
"
10
#include "
Pid.h
"
11
#include <cstdint>
12
16
class
TurnControl
:
public
Pid
{
17
public
:
19
TurnControl
();
22
std::int8_t
calculateTurnForPid
(std::int8_t forward, std::int16_t light_value);
23
24
private
:
25
double
turn;
26
double
pid_value_old;
27
LPF
filter;
28
};
29
30
#endif
TurnControl::calculateTurnForPid
std::int8_t calculateTurnForPid(std::int8_t forward, std::int16_t light_value)
Definition:
TurnControl.cpp:11
TurnControl::TurnControl
TurnControl()
Definition:
TurnControl.cpp:9
Pid.h
PID制御の計算を行うクラス
TurnControl
Definition:
TurnControl.h:16
LPF
LPF(Low-Pass Filter)をまとめたクラス
Definition:
LPF.h:14
Pid
PID制御の計算を行うクラス
Definition:
Pid.h:38
LPF.h
LPF(Low-Pass Filter)をまとめたクラス
構築:
1.8.6