FGPropagate¶
- class jsbsim.FGPropagate¶
Models the EOM and integration/propagation of state.
The Equations of Motion (EOM) for JSBSim are integrated to propagate the state of the vehicle given the forces and moments that act on it. The integration accounts for a rotating Earth.
Integration of rotational and translation position and rate can be customized as needed or frozen by the selection of no integrator. The selection of which integrator to use is done through the setting of the associated property. There are four properties which can be set:
simulation/integrator/rate/rotational simulation/integrator/rate/translational simulation/integrator/position/rotational simulation/integrator/position/translational
Each of the integrators listed above can be set to one of the following values:
0: No integrator (Freeze) 1: Rectangular Euler 2: Trapezoidal 3: Adams Bashforth 2 4: Adams Bashforth 3 5: Adams Bashforth 4
- get_Tec2b() ndarray ¶
Retrieves the ECEF-to-body transformation matrix.
- Returns:
a reference to the ECEF-to-body transformation matrix.
- get_Tl2b() ndarray ¶
Retrieves the local-to-body transformation matrix.
The quaternion class, being the means by which the orientation of the vehicle is stored, manages the local-to-body transformation matrix.
- Returns:
a reference to the local-to-body transformation matrix.
- get_uvw() ndarray ¶
Retrieves a body frame velocity component.
Retrieves a body frame velocity component. The velocity returned is extracted from the vUVW vector (an FGColumnVector). The vector for the velocity in Body frame is organized (Vx, Vy, Vz). The vector is 1-based. In other words, GetUVW(1) returns Vx. Various convenience enumerators are defined in FGJSBBase. The relevant enumerators for the velocity returned by this call are, eX=1, eY=2, eZ=3. units ft/sec
- Parameters:
idx – the index of the velocity component desired (1-based).
- Returns:
The body frame velocity component.