X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FFDM%2FBalloon.h;h=84ff1ce6b21ce972ab0032672dd42110e0cfc60a;hb=85fe50dcc5a00aab3a4fc2b52819d828db1c081d;hp=8ba6275793a92c01321b0f77074dbf8057b99361;hpb=c682dec8983613ae26aa320740cf9ab0869af818;p=flightgear.git diff --git a/src/FDM/Balloon.h b/src/FDM/Balloon.h index 8ba627579..84ff1ce6b 100644 --- a/src/FDM/Balloon.h +++ b/src/FDM/Balloon.h @@ -55,17 +55,6 @@ HISTORY /* DECLARATIONS */ /****************************************************************************/ -// reset flight params to a specific position -// int fgBalloonSimInit(double dt, FGInterface& f); - -// update position based on inputs, positions, velocities, etc. -// int fgBalloonSimUpdate(FGInterface& f, int multiloop); - -// Convert from the FGInterface struct to the BalloonSim -// int FGInterface_2_fgBalloonSim (FGInterface& f); - -// Convert from the BalloonSim to the FGInterface struct -// int fgBalloonSim_2_FGInterface (FGInterface& f); class FGBalloonSim: public FGInterface { @@ -73,17 +62,20 @@ class FGBalloonSim: public FGInterface { public: + FGBalloonSim( double dt ); + ~FGBalloonSim(); + // copy FDM state to BalloonSim structures - int copy_to_BalloonSim(); + bool copy_to_BalloonSim(); // copy FDM state from BalloonSim structures - int copy_from_BalloonSim(); + bool copy_from_BalloonSim(); // reset flight params to a specific position - int init( double dt ); + void init(); // update position based on inputs, positions, velocities, etc. - int update( int multiloop ); + void update( double dt ); };