|
VR-Engage
2.2
|
This class extends the base rotary wing actuator descriptor to add configuration for stability control, PID parameters, crash behavior, and collective control settings. It provides detailed controls for helicopter flight dynamics and handling characteristics in VREngage simulations.
#include <vreRotaryWingActuatorDescriptor.h>
Public Member Functions | |
| DtVreRotaryWingActuatorDescriptor (const DtString &name, DtReaderWriterRegistry *parentRegistry=0) | |
| DtVreRotaryWingActuatorDescriptor (const DtVreRotaryWingActuatorDescriptor &orig, DtReaderWriterRegistry *parentRegistry=0) | |
| DtVreRotaryWingActuatorDescriptor & | operator= (const DtVreRotaryWingActuatorDescriptor &orig) |
| virtual DtComponentDescriptor * | clone (DtReaderWriterRegistry *parentRegistry=0) const override |
| virtual | ~DtVreRotaryWingActuatorDescriptor () override |
| virtual DtString | type () const override |
| virtual int | stabilityAugmentationMode () const |
| virtual void | setStabilityAugmentationMode (int value) |
| virtual bool | stabilityAugmentationVerticalHold () const |
| virtual void | setStabilityAugmentationVerticalHold (bool value) |
| virtual double | detonateOnCrash () const |
| virtual void | setDetonateOnCrash (double val) |
| virtual double | pGain () const |
| virtual void | setPGain (double val) |
| virtual double | iGain () const |
| virtual void | setIGain (double val) |
| virtual double | dGain () const |
| virtual void | setDGain (double val) |
| virtual double | fGain () const |
| virtual void | setFGain (double val) |
| virtual double | pidOutputFilter () const |
| virtual void | setPidOutputFilter (double val) |
| virtual double | pidOutputRampRate () const |
| virtual void | setPidOutputRampRate (double val) |
| virtual double | pidMaxIOutput () const |
| virtual void | setPidMaxIOutput (double val) |
| virtual bool | reverseCollective () const |
| virtual void | setReverseCollective (bool val) |
Static Public Member Functions | |
| static DtComponentDescriptor * | creator () |
Protected Attributes | |
| DtRwInt | myStabilityAugmentationMode |
| DtRwBoolean | myStabilityAugmentationVerticalHold |
| DtRwBoolean | myDetonateOnCrash |
| DtRwReal | myPGain |
| DtRwReal | myIGain |
| DtRwReal | myDGain |
| DtRwReal | myFGain |
| DtRwReal | myPidOutputFilter |
| DtRwReal | myPidOutputRampRate |
| DtRwReal | myPidMaxIOutput |
| DtRwBoolean | myReverseCollective |
| makVre::DtVreRotaryWingActuatorDescriptor::DtVreRotaryWingActuatorDescriptor | ( | 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 actuator descriptor with the specified name.
Referenced by DtVreRotaryWingActuatorDescriptor(), and operator=().
| makVre::DtVreRotaryWingActuatorDescriptor::DtVreRotaryWingActuatorDescriptor | ( | const DtVreRotaryWingActuatorDescriptor & | 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 actuator descriptor as a copy of the provided original.
References DtVreRotaryWingActuatorDescriptor().
|
overridevirtual |
Virtual destructor.
Cleans up resources used by the descriptor.
| DtVreRotaryWingActuatorDescriptor & makVre::DtVreRotaryWingActuatorDescriptor::operator= | ( | const DtVreRotaryWingActuatorDescriptor & | orig | ) |
Assignment operator.
| orig | The source descriptor to copy from |
Assigns the contents of the provided descriptor to this one.
References DtVreRotaryWingActuatorDescriptor().
|
overridevirtual |
Creates a clone of this descriptor.
| parentRegistry | Parent registry for reader/writer functionality (optional) |
Creates a new rotary wing actuator descriptor as a deep copy of this one.
|
overridevirtual |
Gets the type identifier for this descriptor.
Returns a unique type identifier string for this descriptor type. Will return DtVreRotaryWingActuatorDescriptorType.
|
virtual |
Gets the stability augmentation mode.
Returns the current stability augmentation mode for the rotary wing aircraft. Different modes provide different levels of automated stability assistance.
|
virtual |
Sets the stability augmentation mode.
| value | The stability augmentation mode value |
Sets the stability augmentation mode for the rotary wing aircraft. Different modes provide different levels of automated stability assistance.
|
virtual |
Checks if vertical hold is enabled in stability augmentation.
Returns whether the vertical hold feature is enabled in stability augmentation. When enabled, the aircraft will attempt to maintain a constant altitude.
|
virtual |
Sets if vertical hold is enabled in stability augmentation.
| value | True to enable vertical hold, false to disable |
Sets whether the vertical hold feature is enabled in stability augmentation. When enabled, the aircraft will attempt to maintain a constant altitude.
|
inlinevirtual |
Checks if detonation on crash is enabled.
Returns whether the aircraft will detonate when it crashes.
References myDetonateOnCrash.
|
inlinevirtual |
Sets if detonation on crash is enabled.
| val | True to enable detonation on crash, false to disable |
Sets whether the aircraft will detonate when it crashes.
References myDetonateOnCrash.
|
inlinevirtual |
Gets the proportional gain for the PID controller.
Returns the proportional gain value used in the PID controller for flight stability.
References myPGain.
|
inlinevirtual |
Sets the proportional gain for the PID controller.
| val | The proportional gain value |
Sets the proportional gain value used in the PID controller for flight stability.
References myPGain.
|
inlinevirtual |
Gets the integral gain for the PID controller.
Returns the integral gain value used in the PID controller for flight stability.
References myIGain.
|
inlinevirtual |
Sets the integral gain for the PID controller.
| val | The integral gain value |
Sets the integral gain value used in the PID controller for flight stability.
References myIGain.
|
inlinevirtual |
Gets the derivative gain for the PID controller.
Returns the derivative gain value used in the PID controller for flight stability.
References myDGain.
|
inlinevirtual |
Sets the derivative gain for the PID controller.
| val | The derivative gain value |
Sets the derivative gain value used in the PID controller for flight stability.
References myDGain.
|
inlinevirtual |
Gets the feed-forward gain for the PID controller.
Returns the feed-forward gain value used in the PID controller for flight stability.
References myFGain.
|
inlinevirtual |
Sets the feed-forward gain for the PID controller.
| val | The feed-forward gain value |
Sets the feed-forward gain value used in the PID controller for flight stability.
References myFGain.
|
inlinevirtual |
Gets the PID output filter value.
Returns the filter value applied to the PID controller output to smooth the control response.
References myPidOutputFilter.
|
inlinevirtual |
Sets the PID output filter value.
| val | The PID output filter value |
Sets the filter value applied to the PID controller output to smooth the control response.
References myPidOutputFilter.
|
inlinevirtual |
Gets the PID output ramp rate.
Returns the ramp rate applied to the PID controller output to limit how quickly control outputs can change.
References myPidOutputRampRate.
|
inlinevirtual |
Sets the PID output ramp rate.
| val | The PID output ramp rate value |
Sets the ramp rate applied to the PID controller output to limit how quickly control outputs can change.
References myPidOutputRampRate.
|
inlinevirtual |
Gets the maximum integral output for the PID controller.
Returns the maximum value for the integral term output in the PID controller. This prevents integral windup by clamping the integral term contribution.
References myPidMaxIOutput.
|
inlinevirtual |
Sets the maximum integral output for the PID controller.
| val | The maximum integral output value |
Sets the maximum value for the integral term output in the PID controller. This prevents integral windup by clamping the integral term contribution.
References myPidMaxIOutput.
|
inlinevirtual |
Checks if collective control is reversed.
Returns whether the collective control inputs are reversed. This affects how the helicopter responds to collective stick movements.
References myReverseCollective.
|
inlinevirtual |
Sets if collective control is reversed.
| val | True to reverse collective control, false for normal operation |
Sets whether the collective control inputs are reversed. This affects how the helicopter responds to collective stick movements.
References myReverseCollective.
|
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 |
Stability augmentation mode.
Defines the level of automated stability assistance provided to the aircraft. Different modes provide different levels of control assistance.
|
protected |
Vertical hold flag for stability augmentation.
When true, the stability augmentation system will attempt to maintain a constant altitude during flight.
|
protected |
Flag for detonation on crash.
When true, the aircraft will detonate when it crashes.
Referenced by detonateOnCrash(), and setDetonateOnCrash().
|
protected |
Proportional gain for the PID controller.
The proportional gain value used in the PID controller for flight stability.
Referenced by pGain(), and setPGain().
|
protected |
Integral gain for the PID controller.
The integral gain value used in the PID controller for flight stability.
Referenced by iGain(), and setIGain().
|
protected |
Derivative gain for the PID controller.
The derivative gain value used in the PID controller for flight stability.
Referenced by dGain(), and setDGain().
|
protected |
Feed-forward gain for the PID controller.
The feed-forward gain value used in the PID controller for flight stability.
Referenced by fGain(), and setFGain().
|
protected |
Filter value for PID controller output.
Filter value applied to the PID controller output to smooth the control response.
Referenced by pidOutputFilter(), and setPidOutputFilter().
|
protected |
Ramp rate for PID controller output.
Ramp rate applied to the PID controller output to limit how quickly control outputs can change.
Referenced by pidOutputRampRate(), and setPidOutputRampRate().
|
protected |
Maximum integral output value for the PID controller.
Maximum value for the integral term output in the PID controller. This prevents integral windup by clamping the integral term contribution.
Referenced by pidMaxIOutput(), and setPidMaxIOutput().
|
protected |
Flag for reversing collective control.
When true, the collective control inputs are reversed, affecting how the helicopter responds to collective stick movements.
Referenced by reverseCollective(), and setReverseCollective().