1999-10-12 03:27:06 +00:00
|
|
|
/*****************************************************************************
|
|
|
|
|
|
|
|
Header: BalloonSimInterface.h
|
|
|
|
Author: Christian Mayer
|
|
|
|
Date started: 07.10.99
|
|
|
|
|
|
|
|
-------- Copyright (C) 1999 Christian Mayer (fgfs@christianmayer.de) --------
|
|
|
|
|
|
|
|
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., 59 Temple
|
|
|
|
Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
|
|
|
|
Further information about the GNU General Public License can also be found on
|
|
|
|
the world wide web at http://www.gnu.org.
|
|
|
|
|
|
|
|
FUNCTIONAL DESCRIPTION
|
|
|
|
------------------------------------------------------------------------------
|
|
|
|
interface to the the hot air balloon simulator
|
|
|
|
|
|
|
|
HISTORY
|
|
|
|
------------------------------------------------------------------------------
|
|
|
|
07.10.1999 Christian Mayer Created
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
/****************************************************************************/
|
|
|
|
/* SENTRY */
|
|
|
|
/****************************************************************************/
|
|
|
|
#ifndef BalloonSimInterface_H
|
|
|
|
#define BalloonSimInterface_H
|
|
|
|
|
|
|
|
/****************************************************************************/
|
|
|
|
/* INCLUDES */
|
|
|
|
/****************************************************************************/
|
|
|
|
#include <FDM/Balloon/BalloonSim.h>
|
|
|
|
|
|
|
|
#include <Aircraft/aircraft.hxx>
|
|
|
|
|
|
|
|
#include "flight.hxx"
|
|
|
|
|
|
|
|
/****************************************************************************/
|
|
|
|
/* DEFINES */
|
|
|
|
/****************************************************************************/
|
|
|
|
|
|
|
|
/****************************************************************************/
|
|
|
|
/* DECLARATIONS */
|
|
|
|
/****************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
class FGBalloonSim: public FGInterface {
|
|
|
|
|
|
|
|
balloon current_balloon;
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
2001-01-16 21:41:28 +00:00
|
|
|
FGBalloonSim( double dt );
|
|
|
|
~FGBalloonSim();
|
|
|
|
|
1999-10-12 03:27:06 +00:00
|
|
|
// copy FDM state to BalloonSim structures
|
2000-10-16 14:54:41 +00:00
|
|
|
bool copy_to_BalloonSim();
|
1999-10-12 03:27:06 +00:00
|
|
|
|
|
|
|
// copy FDM state from BalloonSim structures
|
2000-10-16 14:54:41 +00:00
|
|
|
bool copy_from_BalloonSim();
|
1999-10-12 03:27:06 +00:00
|
|
|
|
|
|
|
// reset flight params to a specific position
|
2001-01-16 21:41:28 +00:00
|
|
|
void init();
|
1999-10-12 03:27:06 +00:00
|
|
|
|
|
|
|
// update position based on inputs, positions, velocities, etc.
|
2000-10-16 14:54:41 +00:00
|
|
|
bool update( int multiloop );
|
1999-10-12 03:27:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/****************************************************************************/
|
|
|
|
#endif /*BalloonSimInterface_H*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|