uavsim.flightdynamicsmodel
Class AircraftRigidBodyElement

java.lang.Object
  extended by uavsim.flightdynamicsmodel.AircraftRigidBodyElement
All Implemented Interfaces:
java.lang.Cloneable

public class AircraftRigidBodyElement
extends java.lang.Object
implements java.lang.Cloneable

Defines a single element of the finite-element model of the rigid-body model of an aircraft. For compatibility with the other classes derived from the original source (Physics for Game Developers by David Bourg), the member variables are public and mutable. Eventually they will be protected appropriately.

Author:
Dan Tappan [18.08.11]

Field Summary
 double _area
          the area in square feet
 Vector _centerOfGravity
          the center of gravity
 int _controlSurfacePosition
          the position of this element if it is functioning as a control surface.
 double _dihedralAngle
          the dihedral angle in degrees, which is its perpendicular component
 double _incidenceAngle
          the angle of incidence in degrees, which is its default pitch without any input
 Vector _localInertia
          the local inertia imparted on the rigid body by this element
 double _mass
          the mass in pounds
 Vector _normalVector
          the normal vector of this element based on its attitude
 Vector _relativeOrigin
          the origin of the center of the element from a fixed reference point on the model it is part of.
 
Constructor Summary
AircraftRigidBodyElement(double mass, double area, double incidenceAngle, double dihedralAngle, Vector relativeOrigin, Vector localInertia)
          Creates a rigid-body element.
 
Method Summary
 AircraftRigidBodyElement clone()
          
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_area

public double _area
the area in square feet


_centerOfGravity

public Vector _centerOfGravity
the center of gravity


_controlSurfacePosition

public int _controlSurfacePosition
the position of this element if it is functioning as a control surface. For static surfaces, like a wing, this is not applicable, but for ailerons, elevators, and the rudder, it refers to positive (+1), neutral (0), and negative (-1) deflection. Proportional deflection is not implemented yet, so these inputs correspond to {+15,0,-15} degrees, respectively


_dihedralAngle

public double _dihedralAngle
the dihedral angle in degrees, which is its perpendicular component


_incidenceAngle

public double _incidenceAngle
the angle of incidence in degrees, which is its default pitch without any input


_localInertia

public Vector _localInertia
the local inertia imparted on the rigid body by this element


_mass

public double _mass
the mass in pounds


_normalVector

public Vector _normalVector
the normal vector of this element based on its attitude


_relativeOrigin

public Vector _relativeOrigin
the origin of the center of the element from a fixed reference point on the model it is part of. Initially, before the center of gravity is calculated for the aircraft, the coordinate system is inline from the tail. Afterwards, it is with respect to the center of gravity

Constructor Detail

AircraftRigidBodyElement

public AircraftRigidBodyElement(double mass,
                                double area,
                                double incidenceAngle,
                                double dihedralAngle,
                                Vector relativeOrigin,
                                Vector localInertia)
Creates a rigid-body element.

Parameters:
mass - - the mass in pounds
area - - the area in square feet
incidenceAngle - - the angle of incidence in degrees, which is its default pitch without any input
dihedralAngle - - the dihedral angle in degrees, which is its perpendicular component
relativeOrigin - - the origin of the center of the element from a fixed reference point on the model it is part of
localInertia - - the local inertia imparted on the rigid body
Method Detail

clone

public AircraftRigidBodyElement clone()

Overrides:
clone in class java.lang.Object