14 return static_cast<double>(current_sensor);
30 constexpr
double coefficient = 0.9;
31 auto filtered = coefficient *
pre_sensor + (1 - coefficient) * current_sensor;
float RCFilter(std::int32_t current_sensor)
RCフィルタ(ローパスフィルタ)処理
float sensor(std::int32_t current_sensor)
現在のセンサ値にフィルタ処理を実行する
LPF(Low-Pass Filter)をまとめたクラス