okapi::PassthroughFilter class

Base classes

class Filter

Constructors, destructors, conversion operators

PassthroughFilter()
A simple filter that does no filtering and just passes the input through.

Public functions

auto filter(double ireading) -> double override
Filters a value, like a sensor reading.
auto getOutput() const -> double override
Returns the previous output from filter.

Protected variables

double lastOutput

Function documentation

double okapi::PassthroughFilter::filter(double ireading) override

Filters a value, like a sensor reading.

Parameters
ireading new measurement
Returns filtered result

double okapi::PassthroughFilter::getOutput() const override

Returns the previous output from filter.

Returns the previous output from filter