1 /**********************************************************************
3 FILENAME: uiuc_aerodeflections.cpp
5 ----------------------------------------------------------------------
7 DESCRIPTION: determine the aero control surface deflections
12 ----------------------------------------------------------------------
16 ----------------------------------------------------------------------
18 REFERENCES: based on deflection portions of c172_aero.c and
21 ----------------------------------------------------------------------
23 HISTORY: 01/30/2000 initial release
25 ----------------------------------------------------------------------
27 AUTHOR(S): Jeff Scott <jscott@mail.com>
28 Michael Selig <m-selig@uiuc.edu>
30 ----------------------------------------------------------------------
34 ----------------------------------------------------------------------
38 ----------------------------------------------------------------------
42 ----------------------------------------------------------------------
46 ----------------------------------------------------------------------
50 ----------------------------------------------------------------------
52 COPYRIGHT: (C) 2000 by Michael Selig
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.
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.
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.
68 **********************************************************************/
70 #include "uiuc_aerodeflections.h"
72 void uiuc_aerodeflections()
75 // for now, consider deflections to be equal
77 aileron = - Lat_control * damax * DEG_TO_RAD;
79 // for now, consider deflections to be equal
81 elevator = Long_control * demax * DEG_TO_RAD + Long_trim;
83 // for now, consider deflections to be equal
85 rudder = - Rudder_pedal * drmax * DEG_TO_RAD;
90 // end uiuc_aerodeflections.cpp