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

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

Inheritance diagram for DtRotaryWingPilotController:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtRotaryWingPilotController (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 (const DtString&,DtVrfObject*,DtSimManager*,
virtual ~DtRotaryWingPilotController ()
 destructor
virtual bool init ()
 Overridden to initialize myRotaryWingEntityState.
virtual void tick ()
 Reads the data from the guidance ports into the state repository.
virtual DtString type () const
 Returns a string identifies the class type of component.
virtual
DtConstrainedAnalogOutputPort
throttlePort ()
virtual
DtConstrainedAnalogOutputPort
collectivePort ()
virtual
DtConstrainedDualAxisAnalogOutputPort
cyclicPort ()
virtual
DtConstrainedAnalogOutputPort
pedalPort ()
virtual bool createGuidancePortGroup ()
 Create the guidance ports from the task controllers.
virtual bool createDesiredPositionPort ()
 Create the guidance ports from the task controllers.
virtual bool createDesiredVelocityPort ()
 Create the guidance ports from the task controllers.
virtual bool createDesiredAccelerationPort ()
 Create the guidance ports from the task controllers.
virtual bool createDesiredHeadingPort ()
 Create the guidance ports from the task controllers.
virtual bool createPositionSelectorPort ()
 Create the guidance ports from the task controllers.
virtual bool createVelocitySelectorPort ()
 Create the guidance ports from the task controllers.
virtual bool createAccelerationSelectorPort ()
 Create the guidance ports from the task controllers.
virtual bool createHeadingSelectorPort ()
 Create the guidance ports from the task controllers.
virtual bool createAggressivenessPort ()
 Create the guidance ports from the task controllers.
virtual bool createPowerDownPort ()
 Create the guidance ports from the task controllers.
virtual DtVectorInputPortdesiredPositionPort ()
 Accessors for guidance ports.
virtual DtVectorInputPortdesiredVelocityPort ()
 Accessors for guidance ports.
virtual DtVectorInputPortdesiredAccelerationPort ()
 Accessors for guidance ports.
virtual DtAnalogInputPortdesiredHeadingPort ()
 Accessors for guidance ports.
virtual DtAnalogInputPortpositionSelectorPort ()
 Accessors for guidance ports.
virtual DtAnalogInputPortvelocitySelectorPort ()
 Accessors for guidance ports.
virtual DtAnalogInputPortaccelerationSelectorPort ()
 Accessors for guidance ports.
virtual DtAnalogInputPortheadingSelectorPort ()
 Accessors for guidance ports.
virtual DtAnalogInputPortaggressivenessPort ()
 Accessors for guidance ports.
virtual DtBooleanInputPortpowerDownPort ()
 Accessors for guidance ports.
virtual bool createRotaryWingControlPortGroup ()
 These are called in init to create the ports used to communicate with the actuator.
virtual bool createThrottlePort ()
 These are called in init to create the ports used to communicate with the actuator.
virtual bool createCollectivePort ()
 These are called in init to create the ports used to communicate with the actuator.
virtual bool createCyclicPort ()
 These are called in init to create the ports used to communicate with the actuator.
virtual bool createPedalPort ()
 These are called in init to create the ports used to communicate with the actuator.

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 bool createPortGroups ()
 Overridden to call createRotaryWingControlPortGroup() and createGuidancePortGroup()
virtual bool createPorts ()
 Overridden to create rotary wing ports.
virtual void setStateFromPorts ()
 Sets the state repository variables from the ports.
 DtRotaryWingPilotController ()
 default constructor; not implemented
 DtRotaryWingPilotController (const DtRotaryWingPilotController &orig)
 copy constructor; not implemented
const DtRotaryWingPilotControlleroperator= (const DtRotaryWingPilotController &orig)
 assignment operator; not implemented

Protected Attributes

DtRotaryWingEntityStateRepositorymyRotaryWingEntityState
DtVector myNormalizedBodyVelocity
Ports and Port Groups
DtOutputPortGroupmyRotaryWingControlPortGroup
 Output Port Group Name: rotary-wing-control
Output Port Group Description:
DtConstrainedAnalogOutputPortmyThrottlePort
 Output Port Name: throttle
Output Port Description: The position of the throttle control.
DtConstrainedAnalogOutputPortmyCollectivePort
 Output Port Name: collective
Output Port Description: The position of the collective control.
DtConstrainedDualAxisAnalogOutputPortmyCyclicPort
 Output Port Name: cyclic
Output Port Description: The position of the collective control in X and Y.
DtConstrainedAnalogOutputPortmyPedalPort
 Output Port Name: pedal
Output Port Description: The position of the pedal controls.
DtInputPortGroupmyGuidancePortGroup
 Input Port Group Name: guidance
Input Port Group Description: Group of input ports that define the desired heading/position/velocity/acceleration and flight properties.
DtVectorInputPortmyDesiredPositionPort
 Input Port Name: desired-position
Input Port Description: The desired position of the entity.
DtVectorInputPortmyDesiredVelocityPort
 Input Port Name: desired-velocity
Input Port Description: The desired velocity of the entity
Input Port Range: Database coordinates.
DtVectorInputPortmyDesiredAccelerationPort
 Input Port Name: desired-acceleration
Input Port Description: The desired acceleration of the entity
Input Port Range: Database coordinates.
DtAnalogInputPortmyDesiredHeadingPort
 Input Port Name: desired-heading
Input Port Description:
Input Port Range: -1.
DtAnalogInputPortmyPositionSelectorPort
 Input Port Name: position-selector
Input Port Description: Determines whether the desired-position port is used.
DtAnalogInputPortmyVelocitySelectorPort
 Input Port Name: velocity-selector
Input Port Description: Determines whether the desired-velocity port is used.
DtAnalogInputPortmyAccelerationSelectorPort
 Input Port Name: acceleration-selector
Input Port Description: Determines whether the desired-acceleration port is used.
DtAnalogInputPortmyHeadingSelectorPort
 Input Port Name: heading-selector
Input Port Description: Determines whether the desired-heading port is used.
DtAnalogInputPortmyAggressivenessPort
 Input Port Name: aggressiveness
Input Port Description: How aggressively the autopilot will move the controls to gain the desired values.
DtBooleanInputPortmyPowerDownPort
 Input Port Name: power-down
Input Port Description: Determines whether the control values will all be set to 0.

Detailed Description

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

Uses Descriptor Type: DtComponentDescriptor


Constructor & Destructor Documentation

DtRotaryWingPilotController::DtRotaryWingPilotController ( 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 DtRotaryWingPilotController::init ( ) [virtual]

Overridden to initialize myRotaryWingEntityState.

Reimplemented from DtControllerComponent.

Reimplemented in DtSimpleRotaryWingPilot, and DtRotaryWingJoyFlightController.

virtual void DtRotaryWingPilotController::tick ( ) [virtual]

Reads the data from the guidance ports into the state repository.

Reimplemented from DtSimComponent.

Reimplemented in DtSimpleRotaryWingPilot, and DtRotaryWingJoyFlightController.

virtual DtString DtRotaryWingPilotController::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.

Returns:
DtRotaryWingPilotControllerType

Reimplemented from DtControllerComponent.

Reimplemented in DtSimpleRotaryWingPilot, and DtRotaryWingJoyFlightController.

Create the guidance ports from the task controllers.

Create the guidance ports from the task controllers.

Create the guidance ports from the task controllers.

Create the guidance ports from the task controllers.

Create the guidance ports from the task controllers.

Create the guidance ports from the task controllers.

Create the guidance ports from the task controllers.

Create the guidance ports from the task controllers.

Create the guidance ports from the task controllers.

Create the guidance ports from the task controllers.

Create the guidance ports from the task controllers.

Accessors for guidance ports.

Accessors for guidance ports.

Accessors for guidance ports.

Accessors for guidance ports.

Accessors for guidance ports.

Accessors for guidance ports.

Accessors for guidance ports.

Accessors for guidance ports.

Accessors for guidance ports.

Accessors for guidance ports.

These are called in init to create the ports used to communicate with the actuator.

These are called in init to create the ports used to communicate with the actuator.

These are called in init to create the ports used to communicate with the actuator.

These are called in init to create the ports used to communicate with the actuator.

These are called in init to create the ports used to communicate with the actuator.

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

Reimplemented in DtSimpleRotaryWingPilot, and DtRotaryWingJoyFlightController.

virtual bool DtRotaryWingPilotController::createPortGroups ( ) [protected, virtual]
virtual bool DtRotaryWingPilotController::createPorts ( ) [protected, virtual]

Overridden to create rotary wing ports.

Reimplemented from DtSimComponent.

Reimplemented in DtSimpleRotaryWingPilot.

virtual void DtRotaryWingPilotController::setStateFromPorts ( ) [protected, virtual]

Sets the state repository variables from the ports.

const DtRotaryWingPilotController& DtRotaryWingPilotController::operator= ( const DtRotaryWingPilotController orig) [protected]

assignment operator; not implemented


Member Data Documentation

Output Port Group Name: rotary-wing-control
Output Port Group Description:

Output Port Name: throttle
Output Port Description: The position of the throttle control.


Output Port Range: 0. to 1.
Output Port Default Value:
Output Group Parent: rotary-wing-control

Output Port Name: collective
Output Port Description: The position of the collective control.


Output Port Range: 0. to 1.
Output Port Default Value:
Output Group Parent: rotary-wing-control

Output Port Name: cyclic
Output Port Description: The position of the collective control in X and Y.


Output Port Range: X: -1. to 1. Y: -1 to 1.
Output Port Default Value:
Output Group Parent: rotary-wing-control

Output Port Name: pedal
Output Port Description: The position of the pedal controls.


Output Port Range: -1. to 1.
Output Port Default Value:
Output Group Parent: rotary-wing-control

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


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


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

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


Input Group Parent: guidance

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


Input Group Parent: guidance

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

to 1.
Input Group Parent: guidance

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

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

Input Port Name: velocity-selector
Input 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.
Input Port Range: 0.0 to 1.0
Input Group Parent: guidance

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

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

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

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

Input Port Name: aggressiveness
Input 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.
Input Port Range: 0. to 1.
Input Group Parent: guidance

Input Port Name: power-down
Input 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. Input Port Range: True/False
Input Group Parent: guidance


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)