29#ifndef FRC_REVLIB_SRC_MAIN_NATIVE_INCLUDE_REV_SIM_MOVINGAVERAGEFILTERSIM_H_
30#define FRC_REVLIB_SRC_MAIN_NATIVE_INCLUDE_REV_SIM_MOVINGAVERAGEFILTERSIM_H_
34#include <frc/filter/LinearFilter.h>
42 void put(
double value,
double delta);
46 double lerp(
const std::pair<double, double>& p1,
47 const std::pair<double, double>& p2,
double x)
const;
49 frc::LinearFilter<double> m_filter;
52 std::pair<double, double> m_state = {0.0, 0.0};
Definition: MovingAverageFilterSim.h:38
double get() const
Definition: MovingAverageFilterSim.cpp:60
MovingAverageFilterSim(int taps, double sampleRate)
Definition: MovingAverageFilterSim.cpp:35
void put(double value, double delta)
Definition: MovingAverageFilterSim.cpp:49
Definition: SparkLowLevel.cpp:40