|
etrobocon2019 feat.KatLab
ece30a9a007fff7d3ad48592c0d09a74643377bb
|
#include <TurnControl.h>

公開メンバ関数 | |
| TurnControl (int targetBrightness, double Kp, double Ki, double Kd) | |
| double | calculateTurn (int forward, int currentBrightness, int targetBrightness, double Kp, double Ki, double Kd) |
| 旋回値を計算する関数 [詳解] | |
TurnControl.h の 12 行目に定義があります。
| TurnControl::TurnControl | ( | int | targetBrightness, |
| double | Kp, | ||
| double | Ki, | ||
| double | Kd | ||
| ) |
| double TurnControl::calculateTurn | ( | int | forward, |
| int | currentBrightness, | ||
| int | targetBrightness, | ||
| double | Kp, | ||
| double | Ki, | ||
| double | Kd | ||
| ) |
旋回値を計算する関数
| currentBrightness | [現在の光センサー値] |
| tragetBrightness | [目標の光センサー値] |
| Kp | [Pゲイン] |
| Ki | [Iゲイン] |
| Kd | [Dゲイン] |
TurnControl.cpp の 30 行目に定義があります。


1.8.13