X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAutopilot%2Fdigitalfilter.hxx;h=d9b0ac48d8d9500d7ca0af7ca941437e87cd3000;hb=8e81541cd5898ebd7c22ad600cc2ae48a16f5409;hp=4bc37a9045470e9711623ca8a26a0c4ef978fb9c;hpb=52ac173257bf9cc780f0faee5049314442083140;p=flightgear.git diff --git a/src/Autopilot/digitalfilter.hxx b/src/Autopilot/digitalfilter.hxx index 4bc37a904..d9b0ac48d 100644 --- a/src/Autopilot/digitalfilter.hxx +++ b/src/Autopilot/digitalfilter.hxx @@ -53,6 +53,12 @@ class DigitalFilter : public AnalogComponent private: SGSharedPtr _implementation; + enum InitializeTo { + INITIALIZE_OUTPUT, + INITIALIZE_INPUT, + INITIALIZE_NONE + }; + protected: bool configure( const std::string & nodeName, SGPropertyNode_ptr configNode); void update( bool firstTime, double dt); @@ -61,6 +67,7 @@ protected: InputValueList _samples; InputValueList _rateOfChange; InputValueList _gain; + InitializeTo _initializeTo; public: DigitalFilter();