|
VR-Engage
2.2
|
This class defines a descriptor for the rotary wing joystick flight controller component, which enables helicopter-like entities to be controlled via joystick input devices. It provides configuration for helicopter flight characteristics, including rise time and feedback constants for yaw, pitch, and roll axes to create realistic helicopter flight control in VREngage simulations.
#include <rotaryWingJoyDeviceControllerDescriptor.h>
Public Member Functions | |
| DtRotaryWingJoyDeviceControllerDescriptor (const DtString &name, DtReaderWriterRegistry *parentRegistry=0) | |
| virtual | ~DtRotaryWingJoyDeviceControllerDescriptor () override |
| DtRotaryWingJoyDeviceControllerDescriptor (const DtRotaryWingJoyDeviceControllerDescriptor &orig, DtReaderWriterRegistry *parentRegistry=0) | |
| DtRotaryWingJoyDeviceControllerDescriptor & | operator= (const DtRotaryWingJoyDeviceControllerDescriptor &orig) |
| virtual DtComponentDescriptor * | clone (DtReaderWriterRegistry *parentRegistry=0) const override |
| virtual DtString | type () const override |
| virtual DtReal | riseTime () const |
| virtual DtReal | yawConst () const |
| virtual DtReal | pitchConst () const |
| virtual DtReal | rollConst () const |
Static Public Member Functions | |
| static DtComponentDescriptor * | creator () |
Protected Member Functions | |
| DtRotaryWingJoyDeviceControllerDescriptor () | |
Protected Attributes | |
Configuration Parameters | |
These parameters are available for setting in the OPD files. | |
| DtRwReal | myRiseTime |
| DtRwReal | myYawConst |
| DtRwReal | myPitchConst |
| DtRwReal | myRollConst |
| makVre::DtRotaryWingJoyDeviceControllerDescriptor::DtRotaryWingJoyDeviceControllerDescriptor | ( | const DtString & | name, |
| DtReaderWriterRegistry * | parentRegistry = 0 ) |
Constructor with component name.
| name | The name of this component |
| parentRegistry | Parent registry for reader/writer functionality (optional) |
Creates a new rotary wing joystick controller descriptor with the specified name.
Referenced by DtRotaryWingJoyDeviceControllerDescriptor(), and operator=().
|
overridevirtual |
Virtual destructor.
Cleans up resources used by the descriptor.
| makVre::DtRotaryWingJoyDeviceControllerDescriptor::DtRotaryWingJoyDeviceControllerDescriptor | ( | const DtRotaryWingJoyDeviceControllerDescriptor & | orig, |
| DtReaderWriterRegistry * | parentRegistry = 0 ) |
Copy constructor.
| orig | The source descriptor to copy from |
| parentRegistry | Parent registry for reader/writer functionality (optional) |
Creates a new rotary wing joystick controller descriptor as a copy of the provided original.
References DtRotaryWingJoyDeviceControllerDescriptor().
|
protected |
Default constructor (protected)
Protected default constructor used by the factory pattern.
| DtRotaryWingJoyDeviceControllerDescriptor & makVre::DtRotaryWingJoyDeviceControllerDescriptor::operator= | ( | const DtRotaryWingJoyDeviceControllerDescriptor & | orig | ) |
Assignment operator.
| orig | The source descriptor to copy from |
Assigns the contents of the provided descriptor to this one.
References DtRotaryWingJoyDeviceControllerDescriptor().
|
overridevirtual |
Creates a clone of this descriptor.
| parentRegistry | Parent registry for reader/writer functionality (optional) |
Creates a new rotary wing joystick controller descriptor as a deep copy of this one.
Reimplemented in RlCgfVrf::DtVreRlJoyControllerDescriptor.
|
overridevirtual |
Gets the type identifier for this descriptor.
Returns a unique type identifier string for this descriptor type. Will return DtRotaryWingJoyDeviceControllerDescriptorType.
Reimplemented in RlCgfVrf::DtVreRlJoyControllerDescriptor.
|
virtual |
Gets the controller rise time.
Returns the time it takes for the controller to respond fully to input changes. This affects how quickly the helicopter responds to joystick commands.
|
virtual |
Gets the yaw control feedback constant.
Returns the feedback constant for yaw control, which affects the responsiveness and stability of yaw (rotation) control.
|
virtual |
Gets the pitch control feedback constant.
Returns the feedback constant for pitch control, which affects the responsiveness and stability of forward/backward tilt.
|
virtual |
Gets the roll control feedback constant.
Returns the feedback constant for roll control, which affects the responsiveness and stability of side-to-side tilt.
|
static |
Factory function to create a new instance of this descriptor.
Static factory function used by the descriptor creation system to instantiate new instances of this descriptor type.
|
protected |
Controller response rise time.
The time it takes for the controller to respond fully to input changes. This affects how quickly the helicopter responds to joystick commands. Higher values result in slower, smoother response, while lower values provide quicker but potentially less stable control.
Default value: 1.5 Units: seconds
|
protected |
Yaw control feedback constant.
The feedback constant used for yaw (rotation) control of the helicopter. This value affects how responsive and stable the helicopter is when rotating around its vertical axis. Higher values provide tighter control but may cause oscillation if set too high.
Default value: 2.0
|
protected |
Pitch control feedback constant.
The feedback constant used for pitch (forward/backward tilt) control of the helicopter. This value affects how responsive and stable the helicopter is when tilting forward or backward. Higher values provide tighter control but may cause oscillation if set too high.
Default value: 1.0
|
protected |
Roll control feedback constant.
The feedback constant used for roll (side-to-side tilt) control of the helicopter. This value affects how responsive and stable the helicopter is when tilting to the left or right. Higher values provide tighter control but may cause oscillation if set too high.
Default value: 2.2