17#include <vrfmodel/rotaryWingPilotController.h>
18#include <vrfmodel/joystickControllerInterface.h>
21class DtSimulationServices;
22class DtJoyDeviceControllerDescriptor;
44 public DtJoystickControllerInterface
57 DtComponentDescriptor* desc = 0, DtReaderWriterRegistry* parentRegistry = 0);
69 virtual bool init()
override;
76 virtual const char*
type()
const override;
88 static DtSimComponent*
creator(
const DtString& name, DtLocalObject* owner, DtSimulationServices* simManager,
89 DtComponentDescriptor* desc = 0, DtReaderWriterRegistry* parentRegistry = 0);
101 virtual void calculateGains(
const DtReal manuverConst,
const DtReal riseTime, DtReal& velGain, DtReal& oriGain);
113 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:169
virtual void joystickDisconnected() override
Handles joystick disconnection events.
DtReal myRollVelGain
Feedback gain for the roll angular velocity control.
Definition rotaryWingJoyFlightController.h:163
DtReal myYawOriGain
Feedback gain for the yaw orientation control.
Definition rotaryWingJoyFlightController.h:181
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:175
DtRotaryWingJoyFlightController(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Constructor.
DtRotaryWingJoyFlightController(const DtRotaryWingJoyFlightController &orig)
Copy constructor (not implemented)
DtReal myPitchVelGain
Feedback gain for the pitch angular velocity control.
Definition rotaryWingJoyFlightController.h:151
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:157
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.
Defines export macros for the vreVrfmodel library.
#define VREVRFMODEL_DLL
Definition export.h:22
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
const char DtRotaryWingJoyFlightControllerType[]
Type identifier for the rotary wing joystick flight controller component.
Definition rotaryWingJoyFlightController.h:28