LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
Loading...
Searching...
No Matches
passthroughFilter.hpp
Go to the documentation of this file.
1
/*
2
* This Source Code Form is subject to the terms of the Mozilla Public
3
* License, v. 2.0. If a copy of the MPL was not distributed with this
4
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
5
*/
6
#pragma once
7
8
#include "
okapi/api/filter/filter.hpp
"
9
10
namespace
okapi
{
11
class
PassthroughFilter
:
public
Filter
{
12
public
:
16
PassthroughFilter
();
17
24
double
filter
(
double
ireading)
override
;
25
31
double
getOutput
()
const override
;
32
33
protected
:
34
double
lastOutput
= 0;
35
};
36
}
// namespace okapi
okapi::Filter
Definition
filter.hpp:9
okapi::PassthroughFilter
Definition
passthroughFilter.hpp:11
okapi::PassthroughFilter::filter
double filter(double ireading) override
Filters a value, like a sensor reading.
okapi::PassthroughFilter::getOutput
double getOutput() const override
Returns the previous output from filter.
okapi::PassthroughFilter::PassthroughFilter
PassthroughFilter()
A simple filter that does no filtering and just passes the input through.
okapi::PassthroughFilter::lastOutput
double lastOutput
Definition
passthroughFilter.hpp:34
filter.hpp
okapi
Definition
chassisController.hpp:16
include
okapi
api
filter
passthroughFilter.hpp
Generated by
1.9.8