![]() |
VR-Forces 4.0.4 Class Documentation
|
Controller which responds to DtTrunToHeading tasks, and maneuvers the helicopter to face in the specified direction. More...

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 DtSimComponent * | creator (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. | |
Controller which responds to DtTrunToHeading tasks, and maneuvers the helicopter to face in the specified direction.
Uses Descriptor Type: DtRotaryWingPilotDescriptor
Not implemented.
| DtRotaryWingTurnToHeadingController::DtRotaryWingTurnToHeadingController | ( | const DtRotaryWingTurnToHeadingController & | orig | ) | [private] |
Not implemented.
| DtRotaryWingTurnToHeadingController::DtRotaryWingTurnToHeadingController | ( | const DtString & | name, |
| DtVrfObject * | owner, | ||
| DtSimManager * | simManager, | ||
| DtComponentDescriptor * | desc = 0, |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
(const DtString&,DtVrfObject*,DtSimManager*,
| name | Reader writer name of this component. |
| owner | The DtVrfObject that owns this component |
| simManager | The simulation manager (provides access to terrain, message interface, simulation clock). |
| desc | The component descriptor used to initialize this component. |
| parentRegistry | Pointer to the parent reader writer registry (the containing object that reads/writes this object). |
| virtual DtRotaryWingTurnToHeadingController::~DtRotaryWingTurnToHeadingController | ( | ) | [virtual] |
destructor
| 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.
| virtual DtString DtRotaryWingTurnToHeadingController::type | ( | ) | const [virtual] |
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.
Implements DtRotaryWingTaskController.
| static DtSimComponent* DtRotaryWingTurnToHeadingController::creator | ( | const DtString & | name, |
| DtVrfObject * | owner, | ||
| DtSimManager * | simManager, | ||
| DtComponentDescriptor * | desc = 0, |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) | [static] |
(const DtString&,DtVrfObject*,DtSimManager*,
| name | Reader writer name of this component. |
| owner | The DtVrfObject that owns this component |
| simManager | The simulation manager (provides access to terrain, message interface, simulation clock). |
| desc | The component descriptor used to initialize this component. |
| parentRegistry | Pointer to the parent reader writer registry (the containing object that reads/writes this object). |
| virtual void DtRotaryWingTurnToHeadingController::registerTaskMsgCallbacks | ( | ) | [protected, virtual] |
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] |
int DtRotaryWingTurnToHeadingController::myNumTicksOnHeading [protected] |