1 /*******************************************************************************
7 ------------- Copyright (C) 1999 Jon S. Berndt (jsb@hal-pc.org) -------------
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 --------------------------------------------------------------------------------
29 Based on Flightgear code, which is based on LaRCSim. This class wraps all
30 global state variables (such as velocity, position, orientation, etc.).
33 --------------------------------------------------------------------------------
36 ********************************************************************************
38 *******************************************************************************/
43 /*******************************************************************************
45 *******************************************************************************/
51 /*******************************************************************************
53 *******************************************************************************/
55 /*******************************************************************************
57 *******************************************************************************/
67 bool StoreData(char*);
69 bool DisplayData(void);
71 inline float GetVt(void) {return Vt;}
73 inline float Getlatitude(void) {return latitude;}
74 inline float Getlongitude(void) {return longitude;}
75 inline float GetGeodeticLat(void) {return GeodeticLat;}
77 inline float Getadot(void) {return adot;}
78 inline float Getbdot(void) {return bdot;}
80 inline float Geth(void) {return h;}
81 inline float Geta(void) {return a;}
82 inline float GetMach(void) {return Mach;}
84 inline float Getsim_time(void) {return sim_time;}
85 inline float Getdt(void) {return dt;}
87 inline float Getqbar(void) {return qbar;}
89 inline void SetVt(float tt) {Vt = tt;}
91 inline void Setlatitude(float tt) {latitude = tt;}
92 inline void Setlongitude(float tt) {longitude = tt;}
93 inline void SetGeodeticLat(float tt) {GeodeticLat = tt;}
95 inline void Setadot(float tt) {adot = tt;}
96 inline void Setbdot(float tt) {bdot = tt;}
98 inline void Setqbar(float tt) {qbar = tt;}
100 inline void Seth(float tt) {h = tt;}
101 inline void Seta(float tt) {a = tt;}
102 inline void SetMach(float tt) {Mach = tt;}
104 inline float Setsim_time(float tt) {sim_time = tt; return sim_time;}
105 inline void Setdt(float tt) {dt = tt;}
107 inline float IncrTime(void) {sim_time+=dt;return sim_time;}
111 float Vt; // Total velocity
112 float latitude, longitude; // position
113 float GeodeticLat; // Geodetic Latitude
114 float adot, bdot; // alpha dot and beta dot
115 float h, a; // altitude above sea level, speed of sound
116 float qbar; // dynamic pressure
118 float Mach; // Mach number
126 /******************************************************************************/