VR-Engage  2.2
Loading...
Searching...
No Matches
makVre::DtFixedWingJoyFlightController Class Reference

Detailed Description

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>

Inheritance diagram for makVre::DtFixedWingJoyFlightController:
[legend]

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)
 
DtFixedWingJoyFlightControlleroperator= (const DtFixedWingJoyFlightController &orig)
 

Constructor & Destructor Documentation

◆ DtFixedWingJoyFlightController() [1/3]

makVre::DtFixedWingJoyFlightController::DtFixedWingJoyFlightController ( const DtString & name,
DtLocalObject * owner,
DtSimulationServices * simManager,
DtComponentDescriptor * desc = 0,
DtReaderWriterRegistry * parentRegistry = 0 )

Constructor.

Parameters
nameThe name of this component
ownerThe local object that owns this component
simManagerThe simulation services manager
descOptional component descriptor
parentRegistryOptional parent registry for reader/writer functionality

Creates a new fixed wing joystick flight controller component with the specified parameters.

Referenced by DtFixedWingJoyFlightController(), and operator=().

◆ ~DtFixedWingJoyFlightController()

virtual makVre::DtFixedWingJoyFlightController::~DtFixedWingJoyFlightController ( )
overridevirtual

Virtual destructor.

Cleans up resources used by the fixed wing joy flight controller component.

◆ DtFixedWingJoyFlightController() [2/3]

makVre::DtFixedWingJoyFlightController::DtFixedWingJoyFlightController ( )
private

Default constructor (not implemented)

Default constructor is private and not implemented to prevent creation of instances without proper initialization.

◆ DtFixedWingJoyFlightController() [3/3]

makVre::DtFixedWingJoyFlightController::DtFixedWingJoyFlightController ( const DtFixedWingJoyFlightController & orig)
private

Copy constructor (not implemented)

Copy constructor is private and not implemented to prevent copy construction.

References DtFixedWingJoyFlightController().

Member Function Documentation

◆ type()

virtual const char * makVre::DtFixedWingJoyFlightController::type ( ) const
overridevirtual

Gets the type identifier for this component.

Returns
String identifying the component type (DtFixedWingJoyFlightControllerType)

Implements the DtSimComponent::type() method to return the type identifier for this component.

Reimplemented in FwlCgfVrf::DtVreFwlJoyController.

◆ creator()

static DtSimComponent * makVre::DtFixedWingJoyFlightController::creator ( const DtString & name,
DtLocalObject * owner,
DtSimulationServices * simManager,
DtComponentDescriptor * desc = 0,
DtReaderWriterRegistry * parentRegistry = 0 )
static

Factory method to create a new instance of this component.

Parameters
nameThe name for the new component
ownerThe local object that will own this component
simManagerThe simulation services manager
descOptional component descriptor
parentRegistryOptional parent registry for reader/writer functionality
Returns
Pointer to the newly created component

Static factory method used by the component creation system to instantiate new instances of this component type.

◆ operator=()

DtFixedWingJoyFlightController & makVre::DtFixedWingJoyFlightController::operator= ( const DtFixedWingJoyFlightController & orig)
private

Assignment operator (not implemented)

Returns
Reference to this object

Assignment operator is private and not implemented to prevent assignment.

References DtFixedWingJoyFlightController().

◆ calcAndSetPortValues()

virtual void makVre::DtFixedWingJoyFlightController::calcAndSetPortValues ( const DtString & functionGroup,
const DtString & function,
double value,
bool repeat )
overrideprotectedvirtual

Processes joystick input and updates output ports.

Parameters
functionGroupThe function group identifier for the input
functionThe specific function identifier within the group
valueThe input value from the joystick
repeatFlag 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.

◆ joystickConnected()

virtual void makVre::DtFixedWingJoyFlightController::joystickConnected ( )
overrideprotectedvirtual

Handles joystick connection event.

Called when a joystick is connected to the system. Activates joystick control mode for this controller.

◆ joystickDisconnected()

virtual void makVre::DtFixedWingJoyFlightController::joystickDisconnected ( )
overrideprotectedvirtual

Handles joystick disconnection event.

Called when a joystick is disconnected from the system. Deactivates joystick control mode for this controller.


The documentation for this class was generated from the following file: