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

The DtRotaryWingTaskController class creates the rotary-wing-control port group needed to control rotary-wing actuators. More...

Inheritance diagram for DtRotaryWingTaskController:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtRotaryWingTaskController (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 (const DtString&,DtVrfObject*,DtSimManager*,
virtual ~DtRotaryWingTaskController ()
 destructor
virtual bool init ()
 Overridden to initialize myRotaryWingEntityState.
virtual DtString type () const =0
 Returns a string identifies the class type of component.
virtual void clearTask ()
 Overridden to deactivate the port group when this controller completes a task.
virtual void setDesiredPosition (const DtVector &pos)
 Sets the specified value into the corresponding output port after doing a check to make sure the port was created.
virtual void setDesiredVelocity (const DtVector &vel)
 Sets the specified value into the corresponding output port after doing a check to make sure the port was created.
virtual void setDesiredAcceleration (const DtVector &accel)
 Sets the specified value into the corresponding output port after doing a check to make sure the port was created.
virtual void setDesiredHeading (double heading)
 Sets the specified value into the corresponding output port after doing a check to make sure the port was created.
virtual void setPositionSelector (double sel)
 Sets the specified value into the corresponding output port after doing a check to make sure the port was created.
virtual void setVelocitySelector (double sel)
 Sets the specified value into the corresponding output port after doing a check to make sure the port was created.
virtual void setAccelerationSelector (double sel)
 Sets the specified value into the corresponding output port after doing a check to make sure the port was created.
virtual void setHeadingSelector (double sel)
 Sets the specified value into the corresponding output port after doing a check to make sure the port was created.
virtual void setAggressiveness (double agg)
 Sets the specified value into the corresponding output port after doing a check to make sure the port was created.
virtual void setPowerDown (bool powerDown)
 Sets the specified value into the corresponding output port after doing a check to make sure the port was created.
virtual DtVectorOutputPortdesiredPositionPort ()
virtual DtVectorOutputPortdesiredVelocityPort ()
virtual DtVectorOutputPortdesiredAccelerationPort ()
virtual DtAnalogOutputPortdesiredHeadingPort ()
virtual DtAnalogOutputPortpositionSelectorPort ()
virtual DtAnalogOutputPortvelocitySelectorPort ()
virtual DtAnalogOutputPortaccelerationSelectorPort ()
virtual DtAnalogOutputPortheadingSelectorPort ()
virtual DtAnalogOutputPortaggressivenessPort ()
virtual DtBooleanOutputPortpowerDownPort ()

Protected Member Functions

virtual bool createPortGroups ()
 Overridden to call createGuidancePortGroup()
virtual bool createPorts ()
 Overridden to create the guidance ports.
virtual void lookupAndCacheProcessSR ()
 This function looks up a process state repository in the process state repository manager by name, and caches a pointer to it in

myProcessState.


virtual bool postAddComponentsInit ()
 Calls lookupAndCacheProcessSR(), to look up our process state repository after all of the components have been created and loaded.
virtual bool createGuidancePortGroup ()
 Create the various guidance ports to the pilot controller.
virtual bool createDesiredPositionPort ()
 Create the various guidance ports to the pilot controller.
virtual bool createDesiredVelocityPort ()
 Create the various guidance ports to the pilot controller.
virtual bool createDesiredAccelerationPort ()
 Create the various guidance ports to the pilot controller.
virtual bool createDesiredHeadingPort ()
 Create the various guidance ports to the pilot controller.
virtual bool createPositionSelectorPort ()
 Create the various guidance ports to the pilot controller.
virtual bool createVelocitySelectorPort ()
 Create the various guidance ports to the pilot controller.
virtual bool createAccelerationSelectorPort ()
 Create the various guidance ports to the pilot controller.
virtual bool createHeadingSelectorPort ()
 Create the various guidance ports to the pilot controller.
virtual bool createAggressivenessPort ()
 Create the various guidance ports to the pilot controller.
virtual bool createPowerDownPort ()
 Create the various guidance ports to the pilot controller.

Protected Attributes

DtRotaryWingEntityStateRepositorymyRotaryWingEntityState
DtRotaryWingFlightPSRmyProcessState
 Pointer to a process state repository used to store state data associated with this component.
Ports and Port Groups
DtOutputPortGroupmyGuidancePortGroup
 Output Port Group Name: guidance
Output Port Group Description: Group of input ports that define the desired heading/position/velocity/acceleration and flight properties.
DtVectorOutputPortmyDesiredPositionPort
 Output Port Name: desired-position
Output Port Description: The desired position of the entity.
DtVectorOutputPortmyDesiredVelocityPort
 Output Port Name: desired-velocity
Output Port Description: The desired velocity of the entity
Output Port Range: Database coordinates.
DtVectorOutputPortmyDesiredAccelerationPort
 Output Port Name: desired-acceleration
Output Port Description: The desired acceleration of the entity
Output Port Range: Database coordinates.
DtAnalogOutputPortmyDesiredHeadingPort
 Output Port Name: desired-heading
Output Port Description:
Output Port Range: -1.
DtAnalogOutputPortmyPositionSelectorPort
 Output Port Name: position-selector
Output Port Description: Determines whether the desired-position port is used.
DtAnalogOutputPortmyVelocitySelectorPort
 Output Port Name: velocity-selector
Output Port Description: Determines whether the desired-velocity port is used.
DtAnalogOutputPortmyAccelerationSelectorPort
 Output Port Name: acceleration-selector
Output Port Description: Determines whether the desired-avveleration port is used.
DtAnalogOutputPortmyHeadingSelectorPort
 Output Port Name: heading-selector
Output Port Description: Determines whether the desired-heading port is used.
DtAnalogOutputPortmyAggressivenessPort
 Output Port Name: aggressiveness
Output Port Description: How aggressively the autopilot will move the controls to gain the desired values.
DtBooleanOutputPortmyPowerDownPort
 Output Port Name: power-down
Output Port Description: Determines whether the control values will all be set to 0.

Private Member Functions

 DtRotaryWingTaskController ()
 default constructor; not implemented
 DtRotaryWingTaskController (const DtRotaryWingTaskController &orig)
 copy constructor; not implemented
const DtRotaryWingTaskControlleroperator= (const DtRotaryWingTaskController &orig)
 assignment operator; not implemented

Detailed Description

The DtRotaryWingTaskController class creates the rotary-wing-control port group needed to control rotary-wing actuators.

Uses Descriptor Type: DtComponentDescriptor


Constructor & Destructor Documentation

DtRotaryWingTaskController::DtRotaryWingTaskController ( const DtString name,
DtVrfObject owner,
DtSimManager simManager,
DtComponentDescriptor desc = 0,
DtReaderWriterRegistry parentRegistry = 0 
)

(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

default constructor; not implemented

copy constructor; not implemented


Member Function Documentation

virtual bool DtRotaryWingTaskController::init ( ) [virtual]
virtual DtString DtRotaryWingTaskController::type ( ) const [pure virtual]
virtual void DtRotaryWingTaskController::clearTask ( ) [virtual]

Overridden to deactivate the port group when this controller completes a task.

Reimplemented from DtSingleTaskControllerComponent.

Reimplemented in DtRotaryWingFlightCommandController, and DtRotaryWingLandingController.

virtual void DtRotaryWingTaskController::setDesiredPosition ( const DtVector pos) [virtual]

Sets the specified value into the corresponding output port after doing a check to make sure the port was created.

virtual void DtRotaryWingTaskController::setDesiredVelocity ( const DtVector vel) [virtual]

Sets the specified value into the corresponding output port after doing a check to make sure the port was created.

virtual void DtRotaryWingTaskController::setDesiredAcceleration ( const DtVector accel) [virtual]

Sets the specified value into the corresponding output port after doing a check to make sure the port was created.

virtual void DtRotaryWingTaskController::setDesiredHeading ( double  heading) [virtual]

Sets the specified value into the corresponding output port after doing a check to make sure the port was created.

virtual void DtRotaryWingTaskController::setPositionSelector ( double  sel) [virtual]

Sets the specified value into the corresponding output port after doing a check to make sure the port was created.

virtual void DtRotaryWingTaskController::setVelocitySelector ( double  sel) [virtual]

Sets the specified value into the corresponding output port after doing a check to make sure the port was created.

virtual void DtRotaryWingTaskController::setAccelerationSelector ( double  sel) [virtual]

Sets the specified value into the corresponding output port after doing a check to make sure the port was created.

virtual void DtRotaryWingTaskController::setHeadingSelector ( double  sel) [virtual]

Sets the specified value into the corresponding output port after doing a check to make sure the port was created.

virtual void DtRotaryWingTaskController::setAggressiveness ( double  agg) [virtual]

Sets the specified value into the corresponding output port after doing a check to make sure the port was created.

virtual void DtRotaryWingTaskController::setPowerDown ( bool  powerDown) [virtual]

Sets the specified value into the corresponding output port after doing a check to make sure the port was created.

Returns:
Corresponding port created by this component.
Returns:
Corresponding port created by this component.
Returns:
Corresponding port created by this component.
Returns:
Corresponding port created by this component.
Returns:
Corresponding port created by this component.
Returns:
Corresponding port created by this component.
Returns:
Corresponding port created by this component.
Returns:
Corresponding port created by this component.
Returns:
Corresponding port created by this component.
Returns:
Corresponding port created by this component.
virtual bool DtRotaryWingTaskController::createPortGroups ( ) [protected, virtual]

Overridden to call createGuidancePortGroup()

Reimplemented from DtSimComponent.

virtual bool DtRotaryWingTaskController::createPorts ( ) [protected, virtual]

Overridden to create the guidance ports.

Reimplemented from DtSimComponent.

Create the various guidance ports to the pilot controller.

Create the various guidance ports to the pilot controller.

Create the various guidance ports to the pilot controller.

Create the various guidance ports to the pilot controller.

Create the various guidance ports to the pilot controller.

Create the various guidance ports to the pilot controller.

Create the various guidance ports to the pilot controller.

Create the various guidance ports to the pilot controller.

Create the various guidance ports to the pilot controller.

Create the various guidance ports to the pilot controller.

virtual bool DtRotaryWingTaskController::createPowerDownPort ( ) [protected, virtual]

Create the various guidance ports to the pilot controller.

virtual void DtRotaryWingTaskController::lookupAndCacheProcessSR ( ) [protected, virtual]

This function looks up a process state repository in the process state repository manager by name, and caches a pointer to it in

myProcessState.

The name (if it exists) is given in the component descriptor (DtComponentDescriptor::processStateRepositoryName). If the name does not exist, it uses the appropriate default name defined in procSRTypes.h. Another component is responsible for creating and destroying the process state repository.

virtual bool DtRotaryWingTaskController::postAddComponentsInit ( ) [protected, virtual]

Calls lookupAndCacheProcessSR(), to look up our process state repository after all of the components have been created and loaded.

Reimplemented from DtSimComponent.

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

assignment operator; not implemented


Member Data Documentation

Output Port Group Name: guidance
Output Port Group Description: Group of input ports that define the desired heading/position/velocity/acceleration and flight properties.


Output Port Name: desired-position
Output Port Description: The desired position of the entity.


Output Port Range: Database coordinates.
Output Group Parent: guidance

Output Port Name: desired-velocity
Output Port Description: The desired velocity of the entity
Output Port Range: Database coordinates.


Output Group Parent: guidance

Output Port Name: desired-acceleration
Output Port Description: The desired acceleration of the entity
Output Port Range: Database coordinates.


Output Group Parent: guidance

Output Port Name: desired-heading
Output Port Description:
Output Port Range: -1.

to 1.
Output Group Parent: guidance

Output Port Name: position-selector
Output Port Description: Determines whether the desired-position port is used.

Set to 1.0 to use, otherwise 0.0.
Output Port Range: 0.0 to 1.0
Output Group Parent: guidance

Output Port Name: velocity-selector
Output Port Description: Determines whether the desired-velocity port is used.

Set to 1.0 to use, otherwise 0.0. Desired velocity will be scaled by selector.
Output Port Range: 0.0 to 1.0
Output Group Parent: guidance

Output Port Name: acceleration-selector
Output Port Description: Determines whether the desired-avveleration port is used.

Set to 1.0 to use, otherwise 0.0.
Output Port Range: 0. to 1.
Output Group Parent: guidance

Output Port Name: heading-selector
Output Port Description: Determines whether the desired-heading port is used.

Set to 1.0 to use, otherwise 0.0.
Output Port Range: 0. to 1.
Output Group Parent: guidance

Output Port Name: aggressiveness
Output Port Description: How aggressively the autopilot will move the controls to gain the desired values.

0.0 will result in no movement of the controls.
Output Port Range: 0. to 1.
Output Group Parent: guidance

Output Port Name: power-down
Output Port Description: Determines whether the control values will all be set to 0.

Set power-down to true if the entity is landed and you wish it to stay landed on the ground. Setting power-down to true while the entity is not landed will likely result in the entity crashing to the ground. Output Port Range: True/False
Output Group Parent: guidance

Pointer to a process state repository used to store state data associated with this component.

This process state repository is shared with other components. Another component is responsible for creating and destroying the process state repository. This state is saved and restored as part of a scenario (or checkpoint).

Reimplemented in DtRotaryWingFlightCommandController.


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)