~ubuntu-branches/ubuntu/precise/flightgear/precise

« back to all changes in this revision

Viewing changes to src/FDM/JSBSim/models/flight_control/FGPID.h

  • Committer: Bazaar Package Importer
  • Author(s): Ove Kaaven
  • Date: 2011-01-30 15:46:35 UTC
  • mfrom: (3.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20110130154635-rlynmg9n5hzxq5xe
Tags: 2.0.0-3
* Recommend fgfs-aircraft-base and fgfs-models-base.
  Closes. #610276.
* Added note about scenery SharedModels.tgz to README.Debian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 Author:       Jon Berndt
5
5
 Date started: 6/17/2006
6
6
 
7
 
 ------------- Copyright (C) 2006 by Jon S. Berndt, jsb@hal-pc.org -------------
 
7
 ------------- Copyright (C) 2006 by Jon S. Berndt, jon@jsbsim.org -------------
8
8
 
9
9
 This program is free software; you can redistribute it and/or modify it under
10
10
 the terms of the GNU Lesser General Public License as published by the Free Software
39
39
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
40
40
 
41
41
#include "FGFCSComponent.h"
42
 
#include <input_output/FGXMLElement.h>
43
 
#include <string>
44
42
 
45
43
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
46
44
DEFINITIONS
48
46
 
49
47
#define ID_PID "$Id$"
50
48
 
51
 
using std::string;
52
 
 
53
 
using std::string;
54
 
 
55
49
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
56
50
FORWARD DECLARATIONS
57
51
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
59
53
namespace JSBSim {
60
54
 
61
55
class FGFCS;
 
56
class Element;
62
57
 
63
58
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
64
59
CLASS DOCUMENTATION
102
97
  ~FGPID();
103
98
 
104
99
  bool Run (void);
 
100
  void ResetPastStates(void) {Input_prev = Input_prev2 = Output = I_out_total = 0.0;}
105
101
 
106
102
private:
107
 
  double dt;
108
103
  FGPropertyManager *Trigger;
109
104
  double Kp, Ki, Kd;
110
105
  double I_out_total;