17#include <vrfmodel/rotaryWingPilotController.h>
21class DtSimulationServices;
22class DtJoyDeviceControllerDescriptor;
57 DtComponentDescriptor* desc = 0, DtReaderWriterRegistry* parentRegistry = 0);
69 virtual bool init()
override;
76 virtual const char*
type()
const override;
91 static DtSimComponent*
creator(
const DtString& name, DtLocalObject* owner, DtSimulationServices* simManager,
92 DtComponentDescriptor* desc = 0, DtReaderWriterRegistry* parentRegistry = 0);
104 virtual void calculateGains(
const DtReal manuverConst,
const DtReal riseTime, DtReal& velGain, DtReal& oriGain);
116 const DtString& functionGroup,
const DtString& function,
double value,
bool repeat)
override;
virtual const char * type() const override
Gets the type identifier for this component.
virtual bool init() override
Initializes the controller.
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Factory method to create a new instance of this component.
DtReal myRollOriGain
Feedback gain for the roll orientation control.
Definition rotaryWingJoyFlightController.h:172
virtual void joystickDisconnected() override
Handles joystick disconnection events.
DtReal myRollVelGain
Feedback gain for the roll angular velocity control.
Definition rotaryWingJoyFlightController.h:166
DtReal myYawOriGain
Feedback gain for the yaw orientation control.
Definition rotaryWingJoyFlightController.h:184
DtRotaryWingJoyFlightController()
Default constructor (not implemented)
virtual ~DtRotaryWingJoyFlightController() override
Virtual destructor.
DtRotaryWingJoyFlightController & operator=(const DtRotaryWingJoyFlightController &orig)
Assignment operator (not implemented)
DtReal myYawVelGain
Feedback gain for the yaw angular velocity control.
Definition rotaryWingJoyFlightController.h:178
DtRotaryWingJoyFlightController(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Constructor.
DtRotaryWingJoyFlightController(const DtRotaryWingJoyFlightController &orig)
Copy constructor (not implemented)
virtual void preFirstTickInit() override
Calls base first-tick initialization and restores incoming joystick state.
DtReal myPitchVelGain
Feedback gain for the pitch angular velocity control.
Definition rotaryWingJoyFlightController.h:154
virtual void calculateGains(const DtReal manuverConst, const DtReal riseTime, DtReal &velGain, DtReal &oriGain)
Calculates stabilizing control gains for rotary wing flight.
DtReal myPitchOriGain
Feedback gain for the pitch orientation control.
Definition rotaryWingJoyFlightController.h:160
virtual void joystickConnected() override
Handles joystick connection events.
virtual void calcAndSetPortValues(const DtString &functionGroup, const DtString &function, double value, bool repeat) override
Processes joystick input and sets corresponding port values.
DtVreJoystickControllerInterface(DtSimComponent *component, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc)
Constructs an interface alongside an existing component base.
Defines export macros for the vreVrfmodel library.
#define VREVRFMODEL_DLL
Definition export.h:22
!
Definition glsVreMessageUtil.h:50
const char DtRotaryWingJoyFlightControllerType[]
Type identifier for the rotary wing joystick flight controller component.
Definition rotaryWingJoyFlightController.h:28
Internal-state persistence for VRE joystick controllers.