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

Controller which responds to DtTrunToHeading tasks, and maneuvers the helicopter to face in the specified direction. More...

Inheritance diagram for DtRotaryWingTurnToHeadingController:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtRotaryWingTurnToHeadingController (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 (const DtString&,DtVrfObject*,DtSimManager*,
virtual ~DtRotaryWingTurnToHeadingController ()
 destructor
virtual void tick ()
 Checks for task complete by comparing the actual and desired heading.
virtual DtString type () const
 Returns a string identifies the class type of component.

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 registerTaskMsgCallbacks ()
 Registers for TurnToHeading messages.
virtual void processTurnToHeading (DtSimMessage *msg)
 Starts the turning task.
virtual void pilotProperties ()

Static Protected Member Functions

static void turnToHeadingCallback (DtSimMessage *msg, void *usr)
 Calls the virtual processTurnToHeading() method.

Protected Attributes

int myNumTicksOnHeading

Private Member Functions

 DtRotaryWingTurnToHeadingController ()
 Not implemented.
 DtRotaryWingTurnToHeadingController (const DtRotaryWingTurnToHeadingController &orig)
 Not implemented.
const
DtRotaryWingTurnToHeadingController
operator= (const DtRotaryWingTurnToHeadingController &orig)
 Not implemented.

Detailed Description

Controller which responds to DtTrunToHeading tasks, and maneuvers the helicopter to face in the specified direction.

Uses Descriptor Type: DtRotaryWingPilotDescriptor


Constructor & Destructor Documentation

Not implemented.

Not implemented.

(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


Member Function Documentation

const DtRotaryWingTurnToHeadingController& DtRotaryWingTurnToHeadingController::operator= ( const DtRotaryWingTurnToHeadingController orig) [private]

Not implemented.

virtual void DtRotaryWingTurnToHeadingController::tick ( ) [virtual]

Checks for task complete by comparing the actual and desired heading.

Calls to parent class tick() to calculate port control values for turning to the desired heading.

Reimplemented from DtSimComponent.

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:
DtRotaryWingTurnToHeadingControllerType

Implements DtRotaryWingTaskController.

static DtSimComponent* DtRotaryWingTurnToHeadingController::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.

Registers for TurnToHeading messages.

Reimplemented from DtTaskControllerComponent.

static void DtRotaryWingTurnToHeadingController::turnToHeadingCallback ( DtSimMessage msg,
void *  usr 
) [static, protected]

Calls the virtual processTurnToHeading() method.

virtual void DtRotaryWingTurnToHeadingController::processTurnToHeading ( DtSimMessage msg) [protected, virtual]

Starts the turning task.

virtual void DtRotaryWingTurnToHeadingController::pilotProperties ( ) [protected, virtual]

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)