2002-04-25 16:23:16 +00:00
|
|
|
// UFO.hxx -- interface to the "UFO" flight model
|
|
|
|
//
|
|
|
|
// Written by Curtis Olson, started October 1999.
|
|
|
|
// Slightly modified from MagicCarpet.hxx by Jonathan Polley, April 2002
|
|
|
|
//
|
2004-11-19 22:10:41 +00:00
|
|
|
// Copyright (C) 1999-2002 Curtis L. Olson - http://www.flightgear.org/~curt
|
2002-04-25 16:23:16 +00:00
|
|
|
//
|
|
|
|
// 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
|
2006-02-21 01:16:04 +00:00
|
|
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2002-04-25 16:23:16 +00:00
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _UFO_HXX
|
|
|
|
#define _UFO_HXX
|
|
|
|
|
|
|
|
|
|
|
|
#include "flight.hxx"
|
|
|
|
|
|
|
|
|
|
|
|
class FGUFO: public FGInterface {
|
2002-05-09 21:56:31 +00:00
|
|
|
double Throttle;
|
|
|
|
double Aileron;
|
|
|
|
double Elevator;
|
2005-12-07 23:26:38 +00:00
|
|
|
double Elevator_Trim;
|
2003-12-07 17:39:48 +00:00
|
|
|
double Rudder;
|
2006-03-11 12:19:43 +00:00
|
|
|
SGPropertyNode_ptr Speed_Max;
|
2006-03-11 09:23:51 +00:00
|
|
|
|
2002-04-25 16:23:16 +00:00
|
|
|
public:
|
|
|
|
FGUFO( double dt );
|
|
|
|
~FGUFO();
|
|
|
|
|
|
|
|
// reset flight params to a specific position
|
|
|
|
void init();
|
|
|
|
|
|
|
|
// update position based on inputs, positions, velocities, etc.
|
2002-05-11 16:28:50 +00:00
|
|
|
void update( double dt );
|
2002-04-25 16:23:16 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // _UFO_HXX
|