![]() |
VR-Forces 4.0.4 Class Documentation
|
DtRotaryWingJoyFlightController is a controller that enables joystick control of a rotary wing aircraft. More...

Public Member Functions | |
| DtRotaryWingJoyFlightController (const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) | |
| (const DtString&,DtVrfObject*,DtSimManager*, | |
| virtual | ~DtRotaryWingJoyFlightController () |
| destructor | |
| virtual bool | init () |
| Overridden to initialize myRotaryWingEntityState. | |
| virtual void | tick () |
| Calculate new control values. | |
| virtual DtString | type () const |
| Returns a string identifies the class type of component. | |
| virtual void | processSetJoyDeviceSwitch (DtSimMessage *msg) |
| Process the callback message. | |
| virtual void | calcAndSetPortValues () |
| Calculate new control values and set them to the ports. | |
| virtual bool | joystickEnabled () const |
Static Public Member Functions | |
| static void | setJoyDeviceSwitchCallbacks (DtSimMessage *msg, void *usrData) |
| Callback for setting the enable switch. | |
| 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 | calculateGains (const DtReal manuverConst, const DtReal riseTime, DtReal &velGain, DtReal &oriGain) |
| Calculates stabilizing gains using the member rise-time variable and maneuverConst. | |
| virtual void | initializeJoyDevice () |
| Obtain the joyDevice and initialize it. | |
| virtual void | setRadio (DtSimRadio *radio) |
| Overrides this so it can register it's interest in the set commands. | |
| DtRotaryWingJoyFlightController () | |
| default constructor; not implemented | |
| DtRotaryWingJoyFlightController (const DtRotaryWingJoyFlightController &orig) | |
| copy constructor; not implemented | |
| DtRotaryWingJoyFlightController & | operator= (const DtRotaryWingJoyFlightController &orig) |
| assignment operator; not implemented | |
Protected Attributes | |
| DtJoyDevice * | myJoyDevice |
| const DtRotaryWingJoyDeviceControllerDescriptor * | myJoyDeviceControllerDescriptor |
| Pointer to the joydevice object. | |
| bool | myJoyDeviceInitialized |
| DtReal | myPitchVelGain |
| DtReal | myPitchOriGain |
| Feedback gain for the pitch angular velocity control. | |
| DtReal | myRollVelGain |
| Feedback gain for the pitch orientation control. | |
| DtReal | myRollOriGain |
| Feedback gain for the roll angular velocity control. | |
| DtReal | myYawVelGain |
| Feedback gain for the roll orientation control. | |
| DtReal | myYawOriGain |
| Feedback gain for the yaw angular velocity control. | |
| bool | myJoystickEnabled |
| Feedback gain for the yaw orientation control. | |
DtRotaryWingJoyFlightController is a controller that enables joystick control of a rotary wing aircraft.
Uses Descriptor Type: DtRotaryWingPilotDescriptor
| DtRotaryWingJoyFlightController::DtRotaryWingJoyFlightController | ( | 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 DtRotaryWingJoyFlightController::~DtRotaryWingJoyFlightController | ( | ) | [virtual] |
destructor
| DtRotaryWingJoyFlightController::DtRotaryWingJoyFlightController | ( | ) | [protected] |
default constructor; not implemented
| DtRotaryWingJoyFlightController::DtRotaryWingJoyFlightController | ( | const DtRotaryWingJoyFlightController & | orig | ) | [protected] |
copy constructor; not implemented
| virtual bool DtRotaryWingJoyFlightController::init | ( | ) | [virtual] |
Overridden to initialize myRotaryWingEntityState.
Reimplemented from DtRotaryWingPilotController.
| virtual void DtRotaryWingJoyFlightController::tick | ( | ) | [virtual] |
Calculate new control values.
Reimplemented from DtRotaryWingPilotController.
| virtual DtString DtRotaryWingJoyFlightController::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.
Reimplemented from DtRotaryWingPilotController.
| static void DtRotaryWingJoyFlightController::setJoyDeviceSwitchCallbacks | ( | DtSimMessage * | msg, |
| void * | usrData | ||
| ) | [static] |
Callback for setting the enable switch.
| virtual void DtRotaryWingJoyFlightController::processSetJoyDeviceSwitch | ( | DtSimMessage * | msg | ) | [virtual] |
Process the callback message.
| virtual void DtRotaryWingJoyFlightController::calcAndSetPortValues | ( | ) | [virtual] |
Calculate new control values and set them to the ports.
| virtual bool DtRotaryWingJoyFlightController::joystickEnabled | ( | ) | const [virtual] |
| static DtSimComponent* DtRotaryWingJoyFlightController::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). |
Reimplemented from DtRotaryWingPilotController.
| virtual void DtRotaryWingJoyFlightController::calculateGains | ( | const DtReal | manuverConst, |
| const DtReal | riseTime, | ||
| DtReal & | velGain, | ||
| DtReal & | oriGain | ||
| ) | [protected, virtual] |
Calculates stabilizing gains using the member rise-time variable and maneuverConst.
| virtual void DtRotaryWingJoyFlightController::initializeJoyDevice | ( | ) | [protected, virtual] |
Obtain the joyDevice and initialize it.
| virtual void DtRotaryWingJoyFlightController::setRadio | ( | DtSimRadio * | radio | ) | [protected, virtual] |
Overrides this so it can register it's interest in the set commands.
Reimplemented from DtControllerComponent.
| DtRotaryWingJoyFlightController& DtRotaryWingJoyFlightController::operator= | ( | const DtRotaryWingJoyFlightController & | orig | ) | [protected] |
assignment operator; not implemented
DtJoyDevice* DtRotaryWingJoyFlightController::myJoyDevice [protected] |
const DtRotaryWingJoyDeviceControllerDescriptor* DtRotaryWingJoyFlightController::myJoyDeviceControllerDescriptor [protected] |
Pointer to the joydevice object.
DtReal DtRotaryWingJoyFlightController::myPitchVelGain [protected] |
DtReal DtRotaryWingJoyFlightController::myPitchOriGain [protected] |
Feedback gain for the pitch angular velocity control.
DtReal DtRotaryWingJoyFlightController::myRollVelGain [protected] |
Feedback gain for the pitch orientation control.
DtReal DtRotaryWingJoyFlightController::myRollOriGain [protected] |
Feedback gain for the roll angular velocity control.
DtReal DtRotaryWingJoyFlightController::myYawVelGain [protected] |
Feedback gain for the roll orientation control.
DtReal DtRotaryWingJoyFlightController::myYawOriGain [protected] |
Feedback gain for the yaw angular velocity control.
Feedback gain for the yaw orientation control.