etrobocon2018 feat.KatLab
770af34cce41ae9c30c41303275e1add2daae0c3 (with uncommitted changes)
総合概要
諸情報
名前空間
クラス
ファイル
ファイル一覧
ファイルメンバ
全て
クラス
名前空間
ファイル
関数
変数
列挙型
列挙値
フレンド
マクロ定義
ページ
str
apps
include
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
LPF::RCFilter
float RCFilter(std::int32_t current_sensor)
RCフィルタ(ローパスフィルタ)処理
Definition:
LPF.cpp:27
LPF::sensor
float sensor(std::int32_t current_sensor)
現在のセンサ値にフィルタ処理を実行する
Definition:
LPF.cpp:9
LPF::LPF
LPF()
Definition:
LPF.h:18
LPF
LPF(Low-Pass Filter)をまとめたクラス
Definition:
LPF.h:14
LPF::pre_sensor
std::int32_t pre_sensor
Definition:
LPF.h:16
構築:
1.8.6