Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
filter.hpp
Go to the documentation of this file.
1#pragma once
2
8class Filter {
9public:
13 virtual ~Filter() = default;
14
20 virtual double filter(double input) = 0;
21
26 virtual void reset(double value = 0.0) = 0;
27};
Abstract base class that defines the interface for single variable filters Derived classes must imple...
Definition filter.hpp:8
virtual void reset(double value=0.0)=0
Reset the filter to a specific value.
virtual double filter(double input)=0
Apply the filter to a new input value.
virtual ~Filter()=default
Virtual destructor for safe polymorphic use.