VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
DtFallingFromSkyActuatorComponent Class Reference

DtFallingFromSkyActuatorComponent provides a simple, kinematics-based model for air motion based on throttle, stick, and pedal inputs. More...

Inheritance diagram for DtFallingFromSkyActuatorComponent:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtFallingFromSkyActuatorComponent (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 (const DtString&,DtVrfObject*,DtSimManager*,
virtual ~DtFallingFromSkyActuatorComponent ()
 destructor Removes process state from process state manager before deleting it.
virtual bool init ()
 to get access to the entity's localStateRepository, which this component will update, and then connect to the controller's ports.
virtual DtString type () const
 Returns a string identifies the class type of component.
virtual void tick ()
 Calls either doFlying or doTaxiing, based on a onGround() call to myFallingFromSkyEntityState.

Static Public Member Functions

static DtSimComponentcreator (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 (const DtString&,DtVrfObject*,DtSimManager*,

Protected Member Functions

virtual void calculateOrientation (const DtDcm &oldLocalOrientation, const DtVector &newBodyRotationRates, DtDcm &newLocalOrientation)
 Uses current local orientation, rotationRates in SR, and dT.
virtual void fallFromSky ()
 Causes the entity to fall from the sky.
void integrate (const DtVector &oldLocalPosition, const DtVector &oldRelativeVelocity, const DtVector &newRelativeAcceleration, DtVector &newLocalPosition, DtVector &newRelativeVelocity)
 Integrates myRelativeVelocity and myLocalPosition.
virtual void updateRepository (const DtVector &newLocalPosition, const DtVector &newRelativeVelocity, const DtVector &newRelativeAcceleration, const DtDcm &newLocalOrientation, const DtVector &newBodyRotationRates, bool isOnGround)
 DtFallingFromSkyActuatorComponent ()
 default constructor; not implemented
 DtFallingFromSkyActuatorComponent (const DtFallingFromSkyActuatorComponent &orig)
 copy constructor; not implemented
const
DtFallingFromSkyActuatorComponent
operator= (const DtFallingFromSkyActuatorComponent &orig)
 assignment operator; not implemented

Protected Attributes

DtVrfMovingObjectStateRepositorymyState
DtFallingFromSkyActuatorDescriptormyFallingFromSkyActuatorDescriptor
bool myFirstTick

Detailed Description

DtFallingFromSkyActuatorComponent provides a simple, kinematics-based model for air motion based on throttle, stick, and pedal inputs.

End User Description: DtFallingFromSkyActuatorComponent is based on the original DtFallingFromSkyActuatorComponent, but instead of stick and pedal control values causing changes in rotational acceleration, in this simplified model they effect changes in rotational velocity instead. So 0 x/y stick and 0 pedal will result in no rotation of the airframe.

Uses Descriptor Type: DtComponentDescriptor


Constructor & Destructor Documentation

(const DtString&,DtVrfObject*,DtSimManager*,

Parameters:
nameReader writer name of this component.
ownerThe DtVrfObject that owns this component
simManagerThe simulation manager (provides access to terrain, message interface, simulation clock).
descThe component descriptor used to initialize this component.
parentRegistryPointer to the parent reader writer registry (the containing object that reads/writes this object).
(const DtString&,DtVrfObject*,DtSimManager*, DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)

destructor Removes process state from process state manager before deleting it.

default constructor; not implemented

copy constructor; not implemented


Member Function Documentation

to get access to the entity's localStateRepository, which this component will update, and then connect to the controller's ports.

Reimplemented from DtActuatorComponent.

Returns a string identifies the class type of component.

Type values are defined in compTypes.h. DtSimComponent creation functions are registered with the DtSimComponentFactory using the type values as the key.

Returns:
DtFallingFromSkyActuatorType

Reimplemented from DtSimComponent.

virtual void DtFallingFromSkyActuatorComponent::tick ( ) [virtual]

Calls either doFlying or doTaxiing, based on a onGround() call to myFallingFromSkyEntityState.

Reimplemented from DtSimComponent.

static DtSimComponent* DtFallingFromSkyActuatorComponent::creator ( const DtString name,
DtVrfObject owner,
DtSimManager simManager,
DtComponentDescriptor desc = 0,
DtReaderWriterRegistry parentRegistry = 0 
) [static]

(const DtString&,DtVrfObject*,DtSimManager*,

Parameters:
nameReader writer name of this component.
ownerThe DtVrfObject that owns this component
simManagerThe simulation manager (provides access to terrain, message interface, simulation clock).
descThe component descriptor used to initialize this component.
parentRegistryPointer to the parent reader writer registry (the containing object that reads/writes this object).
(const DtString&,DtVrfObject*,DtSimManager*, DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)

Returns:
New instance of this class.
virtual void DtFallingFromSkyActuatorComponent::calculateOrientation ( const DtDcm &  oldLocalOrientation,
const DtVector newBodyRotationRates,
DtDcm &  newLocalOrientation 
) [protected, virtual]

Uses current local orientation, rotationRates in SR, and dT.

Results placed in object pointed to by orientation argument.

virtual void DtFallingFromSkyActuatorComponent::fallFromSky ( ) [protected, virtual]

Causes the entity to fall from the sky.

Takes into account drag coeffiecent from descripto

void DtFallingFromSkyActuatorComponent::integrate ( const DtVector oldLocalPosition,
const DtVector oldRelativeVelocity,
const DtVector newRelativeAcceleration,
DtVector newLocalPosition,
DtVector newRelativeVelocity 
) [protected]

Integrates myRelativeVelocity and myLocalPosition.

virtual void DtFallingFromSkyActuatorComponent::updateRepository ( const DtVector newLocalPosition,
const DtVector newRelativeVelocity,
const DtVector newRelativeAcceleration,
const DtDcm &  newLocalOrientation,
const DtVector newBodyRotationRates,
bool  isOnGround 
) [protected, virtual]
const DtFallingFromSkyActuatorComponent& DtFallingFromSkyActuatorComponent::operator= ( const DtFallingFromSkyActuatorComponent orig) [protected]

assignment operator; not implemented


Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)