JSBSim Flight Dynamics Model
1.1.11 (13 Feb 2022)
An Open Source Flight Dynamics and Control Software Library in C++
FGKinemat.h
1
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2
3
Header: FGKinemat.h
4
Author: Tony Peden, for flight control system authored by Jon S. Berndt
5
Date started: 12/02/01
6
7
------------- Copyright (C) Anthony K. Peden -------------
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 FGKinemat_H
34
#define FGKinemat_H
35
36
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
37
INCLUDES
38
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
39
40
#include "FGFCSComponent.h"
41
42
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
43
FORWARD DECLARATIONS
44
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
45
46
namespace
JSBSim {
47
48
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
49
CLASS DOCUMENTATION
50
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
51
109
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
110
CLASS DECLARATION
111
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
112
113
class
FGKinemat
:
public
FGFCSComponent
{
114
public
:
119
FGKinemat
(
FGFCS
* fcs,
Element
* element);
120
122
~FGKinemat
();
123
126
double
GetOutputPct
()
const override
127
{
return
(Output-Detents[0])/(Detents.back()-Detents[0]); }
128
132
bool
Run
(
void
)
override
;
133
134
private
:
135
std::vector<double> Detents;
136
std::vector<double> TransitionTimes;
137
bool
DoScale;
138
139
void
Debug(
int
from)
override
;
140
};
141
}
142
#endif
JSBSim::FGKinemat
Encapsulates a kinematic (mechanical) component for the flight control system.
Definition:
FGKinemat.h:113
JSBSim::FGKinemat::~FGKinemat
~FGKinemat()
Destructor.
Definition:
FGKinemat.cpp:87
JSBSim::FGFCSComponent
Base class for JSBSim Flight Control System Components.
Definition:
FGFCSComponent.h:84
JSBSim::FGKinemat::FGKinemat
FGKinemat(FGFCS *fcs, Element *element)
Constructor.
Definition:
FGKinemat.cpp:52
JSBSim::FGKinemat::GetOutputPct
double GetOutputPct() const override
Kinematic component output value.
Definition:
FGKinemat.h:126
JSBSim::FGFCS
Encapsulates the Flight Control System (FCS) functionality.
Definition:
FGFCS.h:187
JSBSim::FGKinemat::Run
bool Run(void) override
Run method, overrides FGModel::Run().
Definition:
FGKinemat.cpp:94
JSBSim::Element
Definition:
FGXMLElement.h:143
src
models
flight_control
FGKinemat.h
Generated on Sun Feb 13 2022 13:06:37 for JSBSim Flight Dynamics Model by
1.8.17