~jtaylor/ubuntu/oneiric/flightgear/fix-749249

« back to all changes in this revision

Viewing changes to src/Autopilot/xmlauto.hxx

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2005-11-26 12:31:23 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20051126123123-dhs3dijy6nd257up
Tags: 0.9.8-3ubuntu1
adapt gl/glu dependencies for Xorg

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
//
3
3
// Written by Curtis Olson, started January 2004.
4
4
//
5
 
// Copyright (C) 2004  Curtis L. Olson  - curt@flightgear.org
 
5
// Copyright (C) 2004  Curtis L. Olson  - http://www.flightgear.org/~curt
6
6
//
7
7
// This program is free software; you can redistribute it and/or
8
8
// modify it under the terms of the GNU General Public License as
18
18
// along with this program; if not, write to the Free Software
19
19
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
20
//
21
 
// $Id: xmlauto.hxx,v 1.5 2004/03/21 21:05:06 curt Exp $
 
21
// $Id: xmlauto.hxx,v 1.7 2004/11/19 22:10:42 curt Exp $
22
22
 
23
23
 
24
24
#ifndef _XMLAUTO_HXX
36
36
 
37
37
#include STL_STRING
38
38
#include <vector>
 
39
#include <deque>
39
40
 
40
41
SG_USING_STD(string);
41
42
SG_USING_STD(vector);
 
43
SG_USING_STD(deque);
42
44
 
43
45
#include <simgear/props/props.hxx>
44
46
#include <simgear/structure/subsystem_mgr.hxx>
209
211
 
210
212
 
211
213
/**
 
214
 * FGDigitalFilter - a selection of digital filters
 
215
 *
 
216
 * Exponential filter
 
217
 * Double exponential filter
 
218
 * Moving average filter
 
219
 * Noise spike filter
 
220
 *
 
221
 * All these filters are low-pass filters.
 
222
 *
 
223
 */
 
224
 
 
225
class FGDigitalFilter : public FGXMLAutoComponent
 
226
{
 
227
private:
 
228
    double Tf;            // Filter time [s]
 
229
    unsigned int samples; // Number of input samples to average
 
230
    double rateOfChange;  // The maximum allowable rate of change [1/s]
 
231
    deque <double> output;
 
232
    deque <double> input;
 
233
    string filterType;
 
234
 
 
235
    bool debug;
 
236
 
 
237
public:
 
238
    FGDigitalFilter(SGPropertyNode *node);
 
239
    ~FGDigitalFilter() {}
 
240
 
 
241
    void update(double dt);
 
242
};
 
243
 
 
244
/**
212
245
 * Model an autopilot system.
213
246
 * 
214
247
 */