From dfd36a1f5fddd520121fc387c558d09c9319ff5f Mon Sep 17 00:00:00 2001 From: curt Date: Fri, 4 Dec 1998 01:28:48 +0000 Subject: [PATCH] Initial revision. --- External/Makefile.am | 5 +++ External/external.cxx | 48 ++++++++++++++++++++ External/external.hxx | 101 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 154 insertions(+) create mode 100644 External/Makefile.am create mode 100644 External/external.cxx create mode 100644 External/external.hxx diff --git a/External/Makefile.am b/External/Makefile.am new file mode 100644 index 000000000..54f3b28f9 --- /dev/null +++ b/External/Makefile.am @@ -0,0 +1,5 @@ +noinst_LIBRARIES = libExternal.a + +libExternal_a_SOURCES = external.cxx external.hxx + +INCLUDES += -I$(top_builddir) -I$(top_builddir)/Simulator diff --git a/External/external.cxx b/External/external.cxx new file mode 100644 index 000000000..1352740c1 --- /dev/null +++ b/External/external.cxx @@ -0,0 +1,48 @@ +// slew.cxx -- the "slew" flight model +// +// Written by Curtis Olson, started May 1997. +// +// Copyright (C) 1997 Curtis L. Olson - curt@infoplane.com +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +// +// $Id$ +// (Log is kept at end of this file) + + +#include + +#include "external.hxx" + +#include +#include + + +// reset flight params to a specific position +void fgExternalInit(fgFLIGHT &f, double dt) { + +} + + +// update position based on inputs, positions, velocities, etc. +void fgExternalUpdate( fgFLIGHT& f, int multiloop ) { + +} + + +// $Log$ +// Revision 1.1 1998/12/04 01:28:49 curt +// Initial revision. +// diff --git a/External/external.hxx b/External/external.hxx new file mode 100644 index 000000000..80feabf13 --- /dev/null +++ b/External/external.hxx @@ -0,0 +1,101 @@ +// external.hxx -- the "external" flight model (driven from other +// external input) +// +// Written by Curtis Olson, started December 1998. +// +// Copyright (C) 1998 Curtis L. Olson - curt@flightgear.org +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +// +// $Id$ +// (Log is kept at end of this file) + + +#ifndef _EXTERNAL_HXX +#define _EXTERNAL_HXX + + +#ifndef __cplusplus +# error This library requires C++ +#endif + + +#include