etrobocon2019 feat.KatLab
ece30a9a007fff7d3ad48592c0d09a74643377bb
src
module
Filter.h
[詳解]
1
6
#ifndef FILTER_H
7
#define FILTER_H
8
9
template
<
typename
T =
int
>
10
class
Filter
{
11
private
:
12
T preValue;
13
14
public
:
15
Filter
();
16
void
reset
();
17
double
lowPassFilter
(T value,
double
rate = 0.9);
18
};
19
20
#endif
Filter::Filter
Filter()
Definition:
Filter.cpp:9
Filter::reset
void reset()
Definition:
Filter.cpp:14
Filter::lowPassFilter
double lowPassFilter(T value, double rate=0.9)
ローパスフィルター(現在値と前回値を参考にして値を決定する)
Definition:
Filter.cpp:28
Filter
Definition:
Filter.h:10
構築:
1.8.13