etrobocon2019 feat.KatLab  ece30a9a007fff7d3ad48592c0d09a74643377bb
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()
Definition: Filter.cpp:9
void reset()
Definition: Filter.cpp:14
double lowPassFilter(T value, double rate=0.9)
ローパスフィルター(現在値と前回値を参考にして値を決定する)
Definition: Filter.cpp:28
Definition: Filter.h:10