FGJSBsim Class Reference

#include <JSBSim.hxx>

List of all members.


Detailed Description

This class provides for an interface between FlightGear and its data structures and JSBSim and its data structures. This is the class which is used to command JSBSim when integrated with FlightGear. See the documentation for main for direction on running JSBSim apart from FlightGear.
Author:
Curtis L. Olson (original)

Tony Peden (Maintained and refined)

Version:
Id
JSBSim.hxx,v 1.10 2009/03/06 16:40:18 frohlich Exp
See also:
main in file JSBSim.cpp (use main() wrapper for standalone usage)

Definition at line 98 of file JSBSim.hxx.


Position Parameter Update

Sets the atmospheric static pressure

Parameters:
p pressure in psf Sets the atmospheric temperature
T temperature in degrees rankine Sets the atmospheric density.
rho air density slugs/cubic foot Sets the velocity of the local airmass for wind modeling.
wnorth velocity north in fps
weast velocity east in fps
wdown velocity down in fps


void do_trim (void)
bool get_agl_ft (double t, const double pt[3], double alt_off, double contact[3], double normal[3], double vel[3], double *agl)
bool ToggleDataLogging (void)
bool ToggleDataLogging (bool state)
void update (double dt)
 Update the position based on inputs, positions, velocities, etc.
void update_ic (void)

Public Member Functions

bool copy_from_JSBsim ()
 copy FDM state from LaRCsim structures
bool copy_to_JSBsim ()
 copy FDM state to LaRCsim structures
 FGJSBsim (double dt)
 Constructor.
void init ()
 Reset flight params to a specific position.
void set_Euler_Angles (double phi, double theta, double psi)
 Euler Angle Parameter Set.
 ~FGJSBsim ()
 Destructor.
Position Parameter Set
void set_Altitude (double alt)
 Set altitude Note: this triggers a recalculation of AGL altitude.
void set_Latitude (double lat)
 Set geocentric latitude.
void set_Longitude (double lon)
 Set longitude.
Flight Path Parameter Set
void set_Climb_Rate (double roc)
 Sets rate of climb.
void set_Gamma_vert_rad (double gamma)
 Sets the flight path angle in radians.
Velocity Parameter Set
void set_Mach_number (double mach)
 Sets Mach number.
void set_V_calibrated_kts (double vc)
 Sets calibrated airspeed Setting this will trigger a recalc of the other velocity terms.
void set_Velocities_Local (double north, double east, double down)
 Sets velocity in N-E-D coordinates.
void set_Velocities_Wind_Body (double u, double v, double w)
 Sets aircraft velocity in stability frame.

Member Function Documentation

void set_Altitude ( double  alt  ) 

Parameters:
alt altitude in feet

Definition at line 960 of file JSBSim.cxx.

void set_Climb_Rate ( double  roc  ) 

Parameters:
roc Rate of climb in ft/sec

Definition at line 1055 of file JSBSim.cxx.

void set_Euler_Angles ( double  phi,
double  theta,
double  psi 
)

Parameters:
phi roll angle in radians
theta pitch angle in radians
psi heading angle in radians

Definition at line 1039 of file JSBSim.cxx.

void set_Gamma_vert_rad ( double  gamma  ) 

Parameters:
gamma flight path angle in radians.

Definition at line 1072 of file JSBSim.cxx.

void set_Latitude ( double  lat  ) 

Parameters:
lat latitude in radians measured from the 0 meridian where the westerly direction is positive and east is negative

Definition at line 919 of file JSBSim.cxx.

void set_Longitude ( double  lon  ) 

Parameters:
lon longitude in radians measured from the equator where the northerly direction is positive and south is negative

Definition at line 947 of file JSBSim.cxx.

void set_Mach_number ( double  mach  ) 

Setting this will trigger a recalc of the other velocity terms.

Parameters:
mach Mach number

Definition at line 996 of file JSBSim.cxx.

void set_V_calibrated_kts ( double  vc  ) 

Parameters:
vc Calibrated airspeed in ft/sec

Definition at line 984 of file JSBSim.cxx.

void set_Velocities_Local ( double  north,
double  east,
double  down 
)

Setting this will trigger a recalc of the other velocity terms.

Parameters:
north velocity northward in ft/sec
east velocity eastward in ft/sec
down velocity downward in ft/sec

Definition at line 1008 of file JSBSim.cxx.

void set_Velocities_Wind_Body ( double  u,
double  v,
double  w 
)

Setting this will trigger a recalc of the other velocity terms.

Parameters:
u X velocity in ft/sec
v Y velocity in ft/sec
w Z velocity in ft/sec

Definition at line 1023 of file JSBSim.cxx.

void update ( double  dt  ) 

Parameters:
dt delta time in seconds.

Definition at line 402 of file JSBSim.cxx.


The documentation for this class was generated from the following files:

Generated on Tue May 26 00:55:08 2009 for JSBSim Flight Dynamics Model by  doxygen 1.5.5