1999-10-14 01:54:11 +00:00
|
|
|
// MagicCarpet.hxx -- interface to the "Magic Carpet" flight model
|
|
|
|
//
|
|
|
|
// Written by Curtis Olson, started October 1999.
|
|
|
|
//
|
2004-11-19 22:10:41 +00:00
|
|
|
// Copyright (C) 1999 Curtis L. Olson - http://www.flightgear.org/~curt
|
1999-10-14 01:54:11 +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
|
|
|
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
//
|
|
|
|
// $Id$
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _MAGICCARPET_HXX
|
|
|
|
#define _MAGICCARPET_HXX
|
|
|
|
|
|
|
|
|
|
|
|
#include "flight.hxx"
|
|
|
|
|
|
|
|
|
|
|
|
class FGMagicCarpet: public FGInterface {
|
|
|
|
|
|
|
|
public:
|
2002-02-15 22:00:49 +00:00
|
|
|
FGMagicCarpet( double dt );
|
|
|
|
~FGMagicCarpet();
|
2001-01-16 21:41:28 +00:00
|
|
|
|
1999-10-14 01:54:11 +00:00
|
|
|
// reset flight params to a specific position
|
2001-01-16 21:41:28 +00:00
|
|
|
void init();
|
1999-10-14 01:54:11 +00:00
|
|
|
|
|
|
|
// update position based on inputs, positions, velocities, etc.
|
2002-05-11 16:28:50 +00:00
|
|
|
void update( double dt );
|
2001-01-13 22:06:39 +00:00
|
|
|
|
1999-10-14 01:54:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // _MAGICCARPET_HXX
|