]> git.mxchange.org Git - flightgear.git/blob - src/FDM/UIUCModel/uiuc_aerodeflections.cpp
UIUC flight model contribution. This is based on LaRCsim, but can read
[flightgear.git] / src / FDM / UIUCModel / uiuc_aerodeflections.cpp
1 /**********************************************************************
2
3  FILENAME:     uiuc_aerodeflections.cpp
4
5 ----------------------------------------------------------------------
6
7  DESCRIPTION:  determine the aero control surface deflections
8                elevator [rad]
9                aileron [rad]
10                rudder [rad]
11                
12 ----------------------------------------------------------------------
13
14  STATUS:       alpha version
15
16 ----------------------------------------------------------------------
17
18  REFERENCES:   based on deflection portions of c172_aero.c and 
19                uiuc_aero.c
20
21 ----------------------------------------------------------------------
22
23  HISTORY:      01/30/2000   initial release
24
25 ----------------------------------------------------------------------
26
27  AUTHOR(S):    Jeff Scott         <jscott@mail.com>
28                Michael Selig      <m-selig@uiuc.edu>
29
30 ----------------------------------------------------------------------
31
32  VARIABLES:
33
34 ----------------------------------------------------------------------
35
36  INPUTS:       *
37
38 ----------------------------------------------------------------------
39
40  OUTPUTS:      *
41
42 ----------------------------------------------------------------------
43
44  CALLED BY:    *
45
46 ----------------------------------------------------------------------
47
48  CALLS TO:     *
49
50 ----------------------------------------------------------------------
51
52  COPYRIGHT:    (C) 2000 by Michael Selig
53
54  This program is free software; you can redistribute it and/or
55  modify it under the terms of the GNU General Public License
56  as published by the Free Software Foundation.
57
58  This program is distributed in the hope that it will be useful,
59  but WITHOUT ANY WARRANTY; without even the implied warranty of
60  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
61  GNU General Public License for more details.
62
63  You should have received a copy of the GNU General Public License
64  along with this program; if not, write to the Free Software
65  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
66  USA or view http://www.gnu.org/copyleft/gpl.html.
67
68 **********************************************************************/
69
70 #include "uiuc_aerodeflections.h"
71
72 void uiuc_aerodeflections()
73 {
74
75   // for now, consider deflections to be equal
76   // damin = damax
77   aileron = - Lat_control * damax * DEG_TO_RAD;
78
79   // for now, consider deflections to be equal
80   // demin = demax
81   elevator = Long_control * demax * DEG_TO_RAD + Long_trim;
82
83   // for now, consider deflections to be equal
84   // drmin = drmax
85   rudder = - Rudder_pedal * drmax * DEG_TO_RAD; 
86
87   return;
88 }
89
90 // end uiuc_aerodeflections.cpp