|
VR-Engage
2.2
|
DtFixedWingJoyFlightController extends the fixed wing pilot controller with joystick input capabilities, allowing direct manual control of fixed wing aircraft. It implements the DtJoystickControllerInterface to process input from joystick devices and translate it to appropriate flight control outputs.
Uses Descriptor Type: DtJoyDeviceControllerDescriptor
#include <fixedWingJoyFlightController.h>
Public Member Functions | |
| DtFixedWingJoyFlightController (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) | |
| virtual | ~DtFixedWingJoyFlightController () override |
| virtual const char * | type () const override |
Static Public Member Functions | |
| static DtSimComponent * | creator (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0) |
Protected Member Functions | |
| virtual void | calcAndSetPortValues (const DtString &functionGroup, const DtString &function, double value, bool repeat) override |
| virtual void | joystickConnected () override |
| virtual void | joystickDisconnected () override |
Private Member Functions | |
| DtFixedWingJoyFlightController () | |
| DtFixedWingJoyFlightController (const DtFixedWingJoyFlightController &orig) | |
| DtFixedWingJoyFlightController & | operator= (const DtFixedWingJoyFlightController &orig) |
| makVre::DtFixedWingJoyFlightController::DtFixedWingJoyFlightController | ( | const DtString & | name, |
| DtLocalObject * | owner, | ||
| DtSimulationServices * | simManager, | ||
| DtComponentDescriptor * | desc = 0, | ||
| DtReaderWriterRegistry * | parentRegistry = 0 ) |
Constructor.
| name | The name of this component |
| owner | The local object that owns this component |
| simManager | The simulation services manager |
| desc | Optional component descriptor |
| parentRegistry | Optional parent registry for reader/writer functionality |
Creates a new fixed wing joystick flight controller component with the specified parameters.
Referenced by DtFixedWingJoyFlightController(), and operator=().
|
overridevirtual |
Virtual destructor.
Cleans up resources used by the fixed wing joy flight controller component.
|
private |
Default constructor (not implemented)
Default constructor is private and not implemented to prevent creation of instances without proper initialization.
|
private |
Copy constructor (not implemented)
Copy constructor is private and not implemented to prevent copy construction.
References DtFixedWingJoyFlightController().
|
overridevirtual |
Gets the type identifier for this component.
Implements the DtSimComponent::type() method to return the type identifier for this component.
Reimplemented in FwlCgfVrf::DtVreFwlJoyController.
|
static |
Factory method to create a new instance of this component.
| name | The name for the new component |
| owner | The local object that will own this component |
| simManager | The simulation services manager |
| desc | Optional component descriptor |
| parentRegistry | Optional parent registry for reader/writer functionality |
Static factory method used by the component creation system to instantiate new instances of this component type.
|
private |
Assignment operator (not implemented)
Assignment operator is private and not implemented to prevent assignment.
References DtFixedWingJoyFlightController().
|
overrideprotectedvirtual |
Processes joystick input and updates output ports.
| functionGroup | The function group identifier for the input |
| function | The specific function identifier within the group |
| value | The input value from the joystick |
| repeat | Flag indicating if this is a repeated input |
Implements the DtJoystickControllerInterface method to process joystick input and update the controller's output ports accordingly.
Reimplemented in FwlCgfVrf::DtVreFwlJoyController.
|
overrideprotectedvirtual |
Handles joystick connection event.
Called when a joystick is connected to the system. Activates joystick control mode for this controller.
|
overrideprotectedvirtual |
Handles joystick disconnection event.
Called when a joystick is disconnected from the system. Deactivates joystick control mode for this controller.