]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/JSBSim/FGUtility.cpp
JSBSim tweaks.
[flightgear.git] / src / FDM / JSBSim / FGUtility.cpp
index 9ed89e70f269cfd0452bba353eda5f2b56cf9816..c32abed4efd84ae80aebf653505affb2a8ca361c 100644 (file)
@@ -1,4 +1,4 @@
-/*******************************************************************************
+/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
  Module:       FGUtility.cpp
  Author:       Jon Berndt
@@ -34,17 +34,17 @@ HISTORY
 --------------------------------------------------------------------------------
 01/09/99   JSB   Created
 
-********************************************************************************
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 DEFINES
-*******************************************************************************/
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
                                                         
-/*******************************************************************************
+/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 INCLUDES
-*******************************************************************************/
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
 
 #ifdef FGFS
 #  include <simgear/compiler.h>
-#  ifdef FG_HAVE_STD_INCLUDES
+#  ifdef SG_HAVE_STD_INCLUDES
 #    include <cmath>
 #  else
 #    include <math.h>
@@ -57,37 +57,31 @@ INCLUDES
 #include "FGState.h"
 #include "FGFDMExec.h"
 
-#ifndef M_PI_2
-/* get a definition for pi */
-#include <simgear/constants.h>
-#define M_PI_2 FG_PI_2
-#endif
+static const char *IdSrc = "$Id$";
+static const char *IdHdr = ID_UTILITY;
+
+extern short debug_lvl;
 
-/*******************************************************************************
-************************************ CODE **************************************
-*******************************************************************************/
+/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+CLASS IMPLEMENTATION
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
 
 FGUtility::FGUtility()
 {
-  // Move constant stuff to here (if any) so it won't take CPU time
-  // in the methods below.
-  SeaLevelR   = EARTHRAD * ECCENT;
+  if (debug_lvl & 2) cout << "Instantiated: FGUtility" << endl;
 }
 
+//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 FGUtility::~FGUtility()
 {
-}
-                       
-
-float FGUtility::ToGeodetic()
-{
-    return 0.0;
+  if (debug_lvl & 2) cout << "Destroyed:    FGUtility" << endl;
 }
 
+//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
-float FGUtility:: FromGeodetic()
+void FGUtility::Debug(void)
 {
-    return 0.0;
 }
 
+