etrobocon2018 feat.KatLab  770af34cce41ae9c30c41303275e1add2daae0c3 (with uncommitted changes)
 全て クラス 名前空間 ファイル 関数 変数 列挙型 列挙値 フレンド マクロ定義 ページ
LPF.h
[詳解]
1 
6 #ifndef LPF_H
7 #define LPF_H
8 #include <cstdint>
9 
14 struct LPF {
15  // 前回のセンサ値
16  std::int32_t pre_sensor;
17  // コンストラクタ
18  LPF() : pre_sensor(0) {}
19  // 現在のセンサ値にフィルタ処理を実行する
20  float sensor(std::int32_t current_sensor);
21  // RCフィルタ
22  float RCFilter(std::int32_t current_sensor);
23 };
24 
25 #endif
float RCFilter(std::int32_t current_sensor)
RCフィルタ(ローパスフィルタ)処理
Definition: LPF.cpp:27
float sensor(std::int32_t current_sensor)
現在のセンサ値にフィルタ処理を実行する
Definition: LPF.cpp:9
LPF()
Definition: LPF.h:18
LPF(Low-Pass Filter)をまとめたクラス
Definition: LPF.h:14
std::int32_t pre_sensor
Definition: LPF.h:16