Debian Codegraph @

src/FDM/JSBSim/models/flight_control/FGFCSFunction.h

raw symbols SCIP
1 /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2
3 Header: FGFCSFunction.h
4 Author: Jon Berndt
5 Date started: 2005
6
7 ------------- Copyright (C) 2005 Jon S. Berndt -------------
8
9 This program is free software; you can redistribute it and/or modify it under
10 the terms of the GNU Lesser General Public License as published by the Free
11 Software Foundation; either version 2 of the License, or (at your option) any
12 later version.
13
14 This program is distributed in the hope that it will be useful, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
17 details.
18
19 You should have received a copy of the GNU Lesser General Public License along
20 with this program; if not, write to the Free Software Foundation, Inc., 59
21 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22
23 Further information about the GNU Lesser General Public License can also be
24 found on the world wide web at http://www.gnu.org.
25
26 HISTORY
27 --------------------------------------------------------------------------------
28
29 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
30 SENTRY
31 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
32
33 #ifndef FGFCSFUNCTION_H
34 #define FGFCSFUNCTION_H
35
36 /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
37 INCLUDES
38 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
39
40 #include "FGFCSComponent.h"
41
42 /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
43 FORWARD DECLARATIONS
44 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
45
46 namespace JSBSim {
47
48 class FGFCS;
49 class FGFunction;
50
51 /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
52 CLASS DOCUMENTATION
53 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
54
55 /** Models a FCSFunction object.
56 @author Jon S. Berndt
57
58 One of the most recent additions to the FCS component set is the FCS Function
59 component. This component allows a function to be created when no other
60 component is suitable. Available mathematical operations are described in the
61 FGFunction class.
62 The function component is defined as follows:
63
64 @code
65 <fcs_function name="Windup Trigger">
66 [<input> [-]property </input>]
67 <function>
68 ...
69 </function>
70 [<clipto>
71 <min> {[-]property name | value} </min>
72 <max> {[-]property name | value} </max>
73 </clipto>]
74 [<output> {property} </output>]
75 </ fcs_function >
76 @endcode
77
78 The function definition itself can include a nested series of products, sums,
79 quotients, etc. as well as trig and other math functions. Here's an example of
80 a function (from an aero specification):
81
82 @code
83 <function name="aero/coefficient/CDo">
84 <description>Drag_at_zero_lift</description>
85 <product>
86 <property>aero/qbar-psf</property>
87 <property>metrics/Sw-sqft</property>
88 <table>
89 <independentVar>velocities/mach</independentVar>
90 <tableData>
91 0.0000 0.0220
92 0.2000 0.0200
93 0.6500 0.0220
94 0.9000 0.0240
95 0.9700 0.0500
96 </tableData>
97 </table>
98 </product>
99 </function>
100 @endcode
101
102 */
103
104 /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
105 CLASS DECLARATION
106 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
107
108 class FGFCSFunction : public FGFCSComponent
109 {
110 public:
111 FGFCSFunction(FGFCS* fcs, Element* element);
112 ~FGFCSFunction();
113
114 bool Run(void) override;
115
116 private:
117 FGFunction* function;
118
119 void Debug(int from) override;
120 };
121 }
122 //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
123
124 #endif