1 /*******************************************************************************
3 Module: FGFCSComponent.cpp
7 ------------- Copyright (C) 2000 -------------
9 This program is free software; you can redistribute it and/or modify it under
10 the terms of the GNU General Public License as published by the Free Software
11 Foundation; either version 2 of the License, or (at your option) any later
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 General Public License for more
19 You should have received a copy of the GNU General Public License along with
20 this program; if not, write to the Free Software Foundation, Inc., 59 Temple
21 Place - Suite 330, Boston, MA 02111-1307, USA.
23 Further information about the GNU General Public License can also be found on
24 the world wide web at http://www.gnu.org.
26 FUNCTIONAL DESCRIPTION
27 --------------------------------------------------------------------------------
30 --------------------------------------------------------------------------------
32 ********************************************************************************
33 COMMENTS, REFERENCES, and NOTES
34 ********************************************************************************
36 ********************************************************************************
38 *******************************************************************************/
40 #include "FGFCSComponent.h"
42 /*******************************************************************************
43 ************************************ CODE **************************************
44 *******************************************************************************/
46 // *****************************************************************************
47 // Function: Constructor
52 FGFCSComponent::FGFCSComponent(FGFCS* _fcs) : fcs(_fcs)
65 void FGFCSComponent::SetOutput(void)
67 fcs->GetState()->SetParameter(OutputIdx, Output);
71 bool FGFCSComponent::Run(void)
75 Input = fcs->GetState()->GetParameter(InputIdx);
78 Input = fcs->GetComponentOutput(InputIdx);
81 // implement autopilot input mechanism