lib_LTLIBRARIES = libAircraft.la
libAircraft_la_SOURCES = aircraft.c aircraft.h
-INCLUDES += -I$(top_builddir) -I$(top_builddir)/Simulator
+INCLUDES += -I$(top_builddir) -I$(top_builddir)/Lib -I$(top_builddir)/Simulator
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
-INCLUDES += -I$(top_builddir) -I$(top_builddir)/Simulator
+INCLUDES += -I$(top_builddir) -I$(top_builddir)/Lib -I$(top_builddir)/Simulator
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
#include <stdio.h>
#include <Aircraft/aircraft.h>
+#include <Debug/fg_debug.h>
#include <Include/fg_constants.h>
-#include <Main/fg_debug.h>
/* This is a record containing all the info for the aircraft currently
being operated */
/* $Log$
-/* Revision 1.17 1998/02/12 21:59:31 curt
-/* Incorporated code changes contributed by Charlie Hotchkiss
-/* <chotchkiss@namg.us.anritsu.com>
+/* Revision 1.18 1998/04/18 04:13:56 curt
+/* Moved fg_debug.c to it's own library.
/*
+ * Revision 1.17 1998/02/12 21:59:31 curt
+ * Incorporated code changes contributed by Charlie Hotchkiss
+ * <chotchkiss@namg.us.anritsu.com>
+ *
* Revision 1.16 1998/02/07 15:29:31 curt
* Incorporated HUD changes and struct/typedef changes from Charlie Hotchkiss
* <chotchkiss@namg.us.anritsu.com>
#include <Astro/moon.h>
#include <Aircraft/aircraft.h>
+#include <Debug/fg_debug.h>
#include <Include/fg_constants.h>
#include <Include/general.h>
#include <Main/views.h>
#include <Time/fg_time.h>
-#include <Main/fg_debug.h>
struct CelestialCoord moonPos;
/* $Log$
-/* Revision 1.8 1998/04/03 21:52:49 curt
-/* Converting to Gnu autoconf system.
+/* Revision 1.9 1998/04/18 04:13:56 curt
+/* Moved fg_debug.c to it's own library.
/*
+ * Revision 1.8 1998/04/03 21:52:49 curt
+ * Converting to Gnu autoconf system.
+ *
* Revision 1.7 1998/02/23 19:07:54 curt
* Incorporated Durk's Astro/ tweaks. Includes unifying the sun position
* calculation code between sun display, and other FG sections that use this
#include <Astro/orbits.h>
+#include <Debug/fg_debug.h>
#include <Include/fg_constants.h>
#include <Include/general.h>
#include <Time/fg_time.h>
-#include <Main/fg_debug.h>
struct OrbElements pltOrbElements[9];
/* $Log$
-/* Revision 1.9 1998/03/14 00:27:12 curt
-/* Updated fgGENERAL to a "type" of struct.
+/* Revision 1.10 1998/04/18 04:13:57 curt
+/* Moved fg_debug.c to it's own library.
/*
+ * Revision 1.9 1998/03/14 00:27:12 curt
+ * Updated fgGENERAL to a "type" of struct.
+ *
* Revision 1.8 1998/02/23 19:07:55 curt
* Incorporated Durk's Astro/ tweaks. Includes unifying the sun position
* calculation code between sun display, and other FG sections that use this
#include <GL/glut.h>
#include <XGL/xgl.h>
-#include <Time/fg_time.h>
#include <Astro/orbits.h>
#include <Astro/planets.h>
#include <Astro/sun.h>
+#include <Debug/fg_debug.h>
#include <Include/fg_constants.h>
-#include <Main/fg_debug.h>
+#include <Time/fg_time.h>
GLint planets = 0;
/* $Log$
-/* Revision 1.8 1998/04/03 21:52:50 curt
-/* Converting to Gnu autoconf system.
+/* Revision 1.9 1998/04/18 04:13:57 curt
+/* Moved fg_debug.c to it's own library.
/*
+ * Revision 1.8 1998/04/03 21:52:50 curt
+ * Converting to Gnu autoconf system.
+ *
* Revision 1.7 1998/02/23 19:07:55 curt
* Incorporated Durk's Astro/ tweaks. Includes unifying the sun position
* calculation code between sun display, and other FG sections that use this
#include <Astro/planets.h>
#include <Astro/stars.h>
+#include <Aircraft/aircraft.h>
+#include <Debug/fg_debug.h>
#include <Include/fg_constants.h>
#include <Include/general.h>
-#include <Aircraft/aircraft.h>
#include <Main/views.h>
#include <Time/fg_time.h>
-#include <Main/fg_debug.h>
#define EpochStart (631065600)
#define DaysSinceEpoch(secs) (((secs)-EpochStart)*(1.0/(24*3600)))
/* $Log$
-/* Revision 1.10 1998/04/03 21:52:51 curt
-/* Converting to Gnu autoconf system.
+/* Revision 1.11 1998/04/18 04:13:58 curt
+/* Moved fg_debug.c to it's own library.
/*
+ * Revision 1.10 1998/04/03 21:52:51 curt
+ * Converting to Gnu autoconf system.
+ *
* Revision 1.9 1998/03/14 00:27:12 curt
* Updated fgGENERAL to a "type" of struct.
*
#include <Astro/orbits.h>
#include <Astro/sun.h>
+#include <Debug/fg_debug.h>
#include <Include/fg_constants.h>
-#include <Main/fg_debug.h>
#include <Main/views.h>
#include <Time/fg_time.h>
#include <Time/sunpos.h>
/* $Log$
-/* Revision 1.9 1998/04/03 21:52:51 curt
-/* Converting to Gnu autoconf system.
+/* Revision 1.10 1998/04/18 04:13:58 curt
+/* Moved fg_debug.c to it's own library.
/*
+ * Revision 1.9 1998/04/03 21:52:51 curt
+ * Converting to Gnu autoconf system.
+ *
* Revision 1.8 1998/03/09 22:47:25 curt
* Incorporated Durk's updates.
*
libAutopilot_la_SOURCES = autopilot.c autopilot.h
-INCLUDES += -I$(top_builddir) -I$(top_builddir)/Simulator
+INCLUDES += -I$(top_builddir) -I$(top_builddir)/Lib -I$(top_builddir)/Simulator
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
-INCLUDES += -I$(top_builddir) -I$(top_builddir)/Simulator
+INCLUDES += -I$(top_builddir) -I$(top_builddir)/Lib -I$(top_builddir)/Simulator
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
**************************************************************************/
-// I have no Idea how many of these are needed. Some one tell me.
#include <config.h>
-#include <assert.h>
-
-#ifdef HAVE_WINDOWS_H
-# include <windows.h>
-#endif
-#include <GL/glut.h>
+#include <assert.h>
#include <stdlib.h>
-#include <string.h>
-#ifdef HAVE_VALUES_H
-# include <values.h> // for MAXINT
-#endif
-
#include "autopilot.h"
#include <Include/fg_constants.h>
-#include <Aircraft/aircraft.h>
-#include <Main/fg_debug.h>
-#include <Math/fg_random.h>
-#include <Math/mat3.h>
-#include <Math/polar.h>
-#include <Scenery/scenery.h>
-#include <Time/fg_timer.h>
-#include <Weather/weather.h>
-#include <Controls/controls.h>
+#include <Debug/fg_debug.h>
// The below routines were copied right from hud.c ( I hate reinventing
//// They should eventually be member functions of the aircraft.
////
-double get_throttleval( void )
+static double get_throttleval( void )
{
fgCONTROLS *pcontrols;
return pcontrols->throttle[0]; // Hack limiting to one engine
}
-double get_aileronval( void )
+static double get_aileronval( void )
{
fgCONTROLS *pcontrols;
return pcontrols->aileron;
}
-double get_elevatorval( void )
+static double get_elevatorval( void )
{
fgCONTROLS *pcontrols;
return pcontrols->elevator;
}
-double get_elev_trimval( void )
+static double get_elev_trimval( void )
{
fgCONTROLS *pcontrols;
return pcontrols->elevator_trim;
}
-double get_rudderval( void )
+static double get_rudderval( void )
{
fgCONTROLS *pcontrols;
return pcontrols->rudder;
}
-double get_speed( void )
+static double get_speed( void )
{
fgFLIGHT *f;
return( FG_V_equiv_kts ); // Make an explicit function call.
}
-double get_aoa( void )
+static double get_aoa( void )
{
fgFLIGHT *f;
return( FG_Gamma_vert_rad * RAD_TO_DEG );
}
-double fgAPget_roll( void )
+static double fgAPget_roll( void )
{
fgFLIGHT *f;
return( FG_Phi * RAD_TO_DEG );
}
-double get_pitch( void )
+static double get_pitch( void )
{
fgFLIGHT *f;
return( FG_Psi * RAD_TO_DEG );
}
-double get_altitude( void )
+static double get_altitude( void )
{
fgFLIGHT *f;
// double rough_elev;
return( FG_Altitude * FEET_TO_METER /* -rough_elev */ );
}
-double get_sideslip( void )
+static double get_sideslip( void )
{
fgFLIGHT *f;
exit(1);
APData->Mode = 0 ; // turn the AP off
- APData->Heading = 5 ; // default direction, due north
+ APData->Heading = 0.0; // default direction, due north
// These eventually need to be read from current_aircaft somehow.
fgPrintf( FG_COCKPIT, FG_INFO, "APSetMode : %d\n", mode );
APData->Mode = mode; // set the new mode
-
+ APData->Heading = fgAPget_heading(); // Lock to current heading
}
return (y);
-};
\ No newline at end of file
+};
cockpit.c cockpit.h \
hud.c hud.h
-INCLUDES += -I$(top_builddir) -I$(top_builddir)/Simulator
+INCLUDES += -I$(top_builddir) -I$(top_builddir)/Lib -I$(top_builddir)/Simulator
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
-INCLUDES += -I$(top_builddir) -I$(top_builddir)/Simulator
+INCLUDES += -I$(top_builddir) -I$(top_builddir)/Lib -I$(top_builddir)/Simulator
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
#include <Include/fg_constants.h>
#include <Aircraft/aircraft.h>
-#include <Scenery/scenery.h>
+#include <Debug/fg_debug.h>
+#include <Math/fg_random.h>
#include <Math/mat3.h>
#include <Math/polar.h>
+#include <Scenery/scenery.h>
#include <Time/fg_timer.h>
-#include <Math/fg_random.h>
#include <Weather/weather.h>
-#include <Main/fg_debug.h>
// This is a structure that contains all data related to
// cockpit/panel/hud system
/* $Log$
-/* Revision 1.12 1998/04/14 02:23:09 curt
-/* Code reorganizations. Added a Lib/ directory for more general libraries.
+/* Revision 1.13 1998/04/18 04:14:01 curt
+/* Moved fg_debug.c to it's own library.
/*
+ * Revision 1.12 1998/04/14 02:23:09 curt
+ * Code reorganizations. Added a Lib/ directory for more general libraries.
+ *
* Revision 1.11 1998/03/14 00:32:13 curt
* Changed a printf() to a fgPrintf().
*
#include "hud.h"
-#include <Include/fg_constants.h>
#include <Aircraft/aircraft.h>
-#include <Main/fg_debug.h>
+#include <Debug/fg_debug.h>
+#include <Include/fg_constants.h>
#include <Math/fg_random.h>
#include <Math/mat3.h>
#include <Math/polar.h>
}
/* $Log$
-/* Revision 1.21 1998/04/03 21:55:28 curt
-/* Converting to Gnu autoconf system.
-/* Tweaks to hud.c
+/* Revision 1.22 1998/04/18 04:14:02 curt
+/* Moved fg_debug.c to it's own library.
/*
+ * Revision 1.21 1998/04/03 21:55:28 curt
+ * Converting to Gnu autoconf system.
+ * Tweaks to hud.c
+ *
* Revision 1.20 1998/03/09 22:48:40 curt
* Minor "formatting" tweaks.
*
libFlight_la_SOURCES = flight.c flight.h
-INCLUDES += -I$(top_builddir) -I$(top_builddir)/Simulator
+INCLUDES += -I$(top_builddir) -I$(top_builddir)/Lib -I$(top_builddir)/Simulator
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
-INCLUDES += -I$(top_builddir) -I$(top_builddir)/Simulator
+INCLUDES += -I$(top_builddir) -I$(top_builddir)/Lib -I$(top_builddir)/Simulator
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
**************************************************************************/
#include <stdio.h>
+
+#include <Debug/fg_debug.h>
#include <Flight/flight.h>
#include <Flight/LaRCsim/ls_interface.h>
-#include <Main/fg_debug.h>
fgFLIGHT cur_flight_params;
/* $Log$
-/* Revision 1.10 1998/02/07 15:29:37 curt
-/* Incorporated HUD changes and struct/typedef changes from Charlie Hotchkiss
-/* <chotchkiss@namg.us.anritsu.com>
+/* Revision 1.11 1998/04/18 04:14:04 curt
+/* Moved fg_debug.c to it's own library.
/*
+ * Revision 1.10 1998/02/07 15:29:37 curt
+ * Incorporated HUD changes and struct/typedef changes from Charlie Hotchkiss
+ * <chotchkiss@namg.us.anritsu.com>
+ *
* Revision 1.9 1998/01/27 00:47:53 curt
* Incorporated Paul Bleisch's <bleisch@chromatic.com> new debug message
* system and commandline/config file processing code.
libJoystick_la_SOURCES = joystick.c joystick.h
-INCLUDES += -I$(top_builddir) -I$(top_builddir)/Simulator
+INCLUDES += -I$(top_builddir) -I$(top_builddir)/Lib -I$(top_builddir)/Simulator
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
-INCLUDES += -I$(top_builddir) -I$(top_builddir)/Simulator
+INCLUDES += -I$(top_builddir) -I$(top_builddir)/Lib -I$(top_builddir)/Simulator
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
#endif
-#include <Main/fg_debug.h>
+#include <Debug/fg_debug.h>
static joy_x_min=0, joy_x_ctr=0, joy_x_max=0;
static joy_y_min=0, joy_y_ctr=0, joy_y_max=0;
/* $Log$
-/* Revision 1.5 1998/02/12 21:59:44 curt
-/* Incorporated code changes contributed by Charlie Hotchkiss
-/* <chotchkiss@namg.us.anritsu.com>
+/* Revision 1.6 1998/04/18 04:14:05 curt
+/* Moved fg_debug.c to it's own library.
/*
+ * Revision 1.5 1998/02/12 21:59:44 curt
+ * Incorporated code changes contributed by Charlie Hotchkiss
+ * <chotchkiss@namg.us.anritsu.com>
+ *
* Revision 1.4 1998/02/03 23:20:20 curt
* Lots of little tweaks to fix various consistency problems discovered by
* Solaris' CC. Fixed a bug in fg_debug.c with how the fgPrintf() wrapper
#include <stdio.h>
#include <string.h>
+#include <Debug/fg_debug.h>
#include <Include/general.h>
-#include <Main/fg_debug.h>
#include <Scenery/obj.h>
#include <Scenery/scenery.h>
#include <Scenery/texload.h>
/* $Log$
-/* Revision 1.39 1998/04/08 23:30:07 curt
-/* Adopted Gnu automake/autoconf system.
+/* Revision 1.40 1998/04/18 04:14:06 curt
+/* Moved fg_debug.c to it's own library.
/*
+ * Revision 1.39 1998/04/08 23:30:07 curt
+ * Adopted Gnu automake/autoconf system.
+ *
* Revision 1.38 1998/04/03 22:11:37 curt
* Converting to Gnu autoconf system.
*
#include <Include/general.h>
#include <Bucket/bucketutils.h>
-#include <Main/fg_debug.h>
+#include <Debug/fg_debug.h>
#include <Main/views.h>
#include <Scenery/obj.h>
#include <Scenery/tilecache.h>
/* $Log$
-/* Revision 1.10 1998/04/14 02:23:17 curt
-/* Code reorganizations. Added a Lib/ directory for more general libraries.
+/* Revision 1.11 1998/04/18 04:14:07 curt
+/* Moved fg_debug.c to it's own library.
/*
+ * Revision 1.10 1998/04/14 02:23:17 curt
+ * Code reorganizations. Added a Lib/ directory for more general libraries.
+ *
* Revision 1.9 1998/04/08 23:30:07 curt
* Adopted Gnu automake/autoconf system.
*
#include <Aircraft/aircraft.h>
#include <Bucket/bucketutils.h>
+#include <Debug/fg_debug.h>
#include <Include/fg_constants.h>
#include <Include/fg_types.h>
-#include <Main/fg_debug.h>
#define FG_LOCAL_X 7 /* should be odd */
/* $Log$
-/* Revision 1.24 1998/04/14 02:23:18 curt
-/* Code reorganizations. Added a Lib/ directory for more general libraries.
+/* Revision 1.25 1998/04/18 04:14:07 curt
+/* Moved fg_debug.c to it's own library.
/*
+ * Revision 1.24 1998/04/14 02:23:18 curt
+ * Code reorganizations. Added a Lib/ directory for more general libraries.
+ *
* Revision 1.23 1998/04/08 23:30:08 curt
* Adopted Gnu automake/autoconf system.
*
Controls \
Flight \
Joystick \
- Math \
Scenery \
Time \
Weather \
Controls \
Flight \
Joystick \
- Math \
Scenery \
Time \
Weather \
fg_timer.c fg_timer.h \
sunpos.c sunpos.h
-INCLUDES += -I$(top_builddir) -I$(top_builddir)/Simulator
+INCLUDES += -I$(top_builddir) -I$(top_builddir)/Lib -I$(top_builddir)/Simulator
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
-INCLUDES += -I$(top_builddir) -I$(top_builddir)/Simulator
+INCLUDES += -I$(top_builddir) -I$(top_builddir)/Lib -I$(top_builddir)/Simulator
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
#include "fg_time.h"
-#include <Main/fg_debug.h>
+#include <Debug/fg_debug.h>
#include <Time/event.h>
/* $Log$
-/* Revision 1.12 1998/04/09 18:40:13 curt
-/* We had unified some of the platform disparate time handling code, and
-/* there was a bug in timesum() which calculated a new time stamp based on
-/* the current time stamp + offset. This hosed the periodic event processing
-/* logic because you'd never arrive at the time the event was scheduled for.
-/* Sky updates and lighting changes are handled via this event mechanism so
-/* they never changed ... it is fixed now.
+/* Revision 1.13 1998/04/18 04:14:08 curt
+/* Moved fg_debug.c to it's own library.
/*
+ * Revision 1.12 1998/04/09 18:40:13 curt
+ * We had unified some of the platform disparate time handling code, and
+ * there was a bug in timesum() which calculated a new time stamp based on
+ * the current time stamp + offset. This hosed the periodic event processing
+ * logic because you'd never arrive at the time the event was scheduled for.
+ * Sky updates and lighting changes are handled via this event mechanism so
+ * they never changed ... it is fixed now.
+ *
* Revision 1.11 1998/04/03 22:12:55 curt
* Converting to Gnu autoconf system.
* Centralized time handling differences.
# include <sys/time.h> /* for get/setitimer, gettimeofday, struct timeval */
#endif
-#include <Time/fg_time.h>
-#include <Include/fg_constants.h>
+#include <Debug/fg_debug.h>
#include <Flight/flight.h>
+#include <Include/fg_constants.h>
+#include <Time/fg_time.h>
#define DEGHR(x) ((x)/15.)
#define RADHR(x) DEGHR(x*RAD_TO_DEG)
-#include <Main/fg_debug.h>
-
struct fgTIME cur_time_params;
struct fgLIGHT cur_light_params;
/* $Log$
-/* Revision 1.39 1998/04/09 18:40:14 curt
-/* We had unified some of the platform disparate time handling code, and
-/* there was a bug in timesum() which calculated a new time stamp based on
-/* the current time stamp + offset. This hosed the periodic event processing
-/* logic because you'd never arrive at the time the event was scheduled for.
-/* Sky updates and lighting changes are handled via this event mechanism so
-/* they never changed ... it is fixed now.
+/* Revision 1.40 1998/04/18 04:14:09 curt
+/* Moved fg_debug.c to it's own library.
/*
+ * Revision 1.39 1998/04/09 18:40:14 curt
+ * We had unified some of the platform disparate time handling code, and
+ * there was a bug in timesum() which calculated a new time stamp based on
+ * the current time stamp + offset. This hosed the periodic event processing
+ * logic because you'd never arrive at the time the event was scheduled for.
+ * Sky updates and lighting changes are handled via this event mechanism so
+ * they never changed ... it is fixed now.
+ *
* Revision 1.38 1998/04/08 23:35:40 curt
* Tweaks to Gnu automake/autoconf system.
*
libWeather_la_SOURCES = weather.c weather.h
-INCLUDES += -I$(top_builddir) -I$(top_builddir)/Simulator
+INCLUDES += -I$(top_builddir) -I$(top_builddir)/Lib -I$(top_builddir)/Simulator
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
-INCLUDES += -I$(top_builddir) -I$(top_builddir)/Simulator
+INCLUDES += -I$(top_builddir) -I$(top_builddir)/Lib -I$(top_builddir)/Simulator
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.