]> git.mxchange.org Git - flightgear.git/blob - src/FDM/UIUCModel/uiuc_iceboot.cpp
Units bug.
[flightgear.git] / src / FDM / UIUCModel / uiuc_iceboot.cpp
1 /**********************************************************************
2
3  FILENAME:     uiuc_iceboot.cpp
4
5 ----------------------------------------------------------------------
6
7  DESCRIPTION:  checks if the iceboot is on, if so then eta ice will equal 
8                zero
9
10 ----------------------------------------------------------------------
11
12  STATUS:       alpha version
13
14 ----------------------------------------------------------------------
15
16  REFERENCES:   
17
18 ----------------------------------------------------------------------
19
20  HISTORY:      01/11/2002   initial release
21                
22 ----------------------------------------------------------------------
23
24  AUTHOR(S):    Robert Deters       <rdeters@uiuc.edu>
25                Ann Peedikayil      <peedikay@uiuc.edu>
26
27 ----------------------------------------------------------------------
28
29  VARIABLES:
30
31 ----------------------------------------------------------------------
32
33  INPUTS:       -Simtime
34                -icing times
35                -dt
36                -bootTime 
37               
38 ----------------------------------------------------------------------
39
40  OUTPUTS:      -icing severity (eta_ice)
41
42 ----------------------------------------------------------------------
43
44  CALLED BY:    uiuc_coefficients
45               
46 ----------------------------------------------------------------------
47
48  CALLS TO:     none
49
50 ----------------------------------------------------------------------
51
52  COPYRIGHT:    (C) 2002 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_iceboot.h"
71
72
73 void uiuc_iceboot(double dt)
74
75             
76   if (bootTrue[bootindex])
77     {
78       if (bootTime[bootindex]- dt <Simtime && bootTime[bootindex]+ dt >Simtime)
79       // checks if the boot is on
80        { 
81          eta_ice = 0;         
82          // drops the eta ice to zero
83            
84          if (bootTime [bootindex] > iceTime)
85            iceTime = bootTime[bootindex];
86          bootindex++;
87        }
88     }
89 }