Debian Codegraph @

src/Autopilot/digitalfilter.hxx

raw symbols SCIP
1 // digitalfilter.hxx - a selection of digital filters
2 //
3 // Written by Torsten Dreyer
4 // Based heavily on work created by Curtis Olson, started January 2004.
5 //
6 // Copyright (C) 2004 Curtis L. Olson - http://www.flightgear.org/~curt
7 // Copyright (C) 2010 Torsten Dreyer - Torsten (at) t3r (dot) de
8 //
9 // This program is free software; you can redistribute it and/or
10 // modify it under the terms of the GNU General Public License as
11 // published by the Free Software Foundation; either version 2 of the
12 // License, or (at your option) any later version.
13 //
14 // This program is distributed in the hope that it will be useful, but
15 // WITHOUT ANY WARRANTY; without even the implied warranty of
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 // General Public License for more details.
18 //
19 // You should have received a copy of the GNU General Public License
20 // along with this program; if not, write to the Free Software
21 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 //
23 #pragma once
24
25 #include "analogcomponent.hxx"
26
27 namespace FGXMLAutopilot {
28
29 /**
30 * brief@ DigitalFilter - a selection of digital filters
31 *
32 */
33 class DigitalFilter : public AnalogComponent
34 {
35 private:
36 SGSharedPtr<class DigitalFilterImplementation> _implementation;
37
38 enum InitializeTo {
39 INITIALIZE_OUTPUT,
40 INITIALIZE_INPUT,
41 INITIALIZE_NONE
42 };
43
44 protected:
45 bool configure( SGPropertyNode& cfg_node,
46 const std::string& cfg_name,
47 SGPropertyNode& prop_root ) override;
48 void update( bool firstTime, double dt) override;
49
50 InitializeTo _initializeTo = INITIALIZE_INPUT;
51
52 public:
53 DigitalFilter();
54 ~DigitalFilter();
55
56 // Subsystem identification.
57 static const char* staticSubsystemClassId() { return "filter"; }
58
59 virtual bool configure( SGPropertyNode& prop_root,
60 SGPropertyNode& cfg );
61 };
62
63 } // namespace FGXMLAutopilot
64