VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rotaryWingJoyFlightController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2006 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
14 #include "vrfobjcore/simRadio.h"
17 #include <readerWriter/rwReal.h>
18 
19 class DtString;
22 class DtJoyDevice;
23 
28 const char DtRotaryWingJoyFlightControllerType[] = "rotary-wing-joy-flight-controller";
29 
31 {
32 
33 public:
34 
38  DtLocalObject* owner,
40  DtComponentDescriptor* desc = 0,
41  DtReaderWriterRegistry* parentRegistry = 0);
42 
44  virtual ~DtRotaryWingJoyFlightController() override;
45 
46  virtual bool init() override;
47 
50  virtual const char* type() const override;
51 
55  static DtSimComponent * creator(const DtString& name,
56  DtLocalObject* owner,
57  DtSimulationServices* simManager,
58  DtComponentDescriptor* desc = 0,
59  DtReaderWriterRegistry* parentRegistry = 0);
60 
61 protected:
62 
65  virtual void calculateGains(const DtReal manuverConst, const DtReal riseTime,
66  DtReal & velGain, DtReal & oriGain);
67 
68  virtual void calcAndSetPortValues(
69  const DtString& functionGroup, const DtString& function, double value, bool repeat) override;
70  virtual void joystickConnected() override;
71  virtual void joystickDisconnected() override;
72 
73 protected:
74 
77 
81 
85 
86 protected:
87  DtReal myPitchVelGain;
88  DtReal myPitchOriGain;
89  DtReal myRollVelGain;
90  DtReal myRollOriGain;
91  DtReal myYawVelGain;
92  DtReal myYawOriGain;
93 };
94 
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
DtRotaryWingJoyFlightController & operator=(const DtRotaryWingJoyFlightController &orig)
assignment operator; not implemented
DtReal myYawVelGain
Feedback gain for the roll orientation control.
Definition: rotaryWingJoyFlightController.h:91
virtual const char * type() const override
Returns a string identifies the class type of component. Type values are defined in compTypes...
DtReal myRollVelGain
Feedback gain for the pitch orientation control.
Definition: rotaryWingJoyFlightController.h:89
virtual void calcAndSetPortValues(const DtString &functionGroup, const DtString &function, double value, bool repeat) override
Override to set.
!!!!!!!!!!!! DtJoyDeviceControllerDescriptor
Definition: joyDeviceControllerDescriptor.h:93
virtual ~DtRotaryWingJoyFlightController() override
destructor
const char DtRotaryWingJoyFlightControllerType[]
DtRotaryWingJoyFlightController is a controller that enables joystick control of a rotary wing aircra...
Definition: rotaryWingJoyFlightController.h:28
Definition: rotaryWingJoyFlightController.h:30
virtual void joystickDisconnected() override
Called when joystick is disconnected for this controller.
DtReal myPitchOriGain
Feedback gain for the pitch angular velocity control.
Definition: rotaryWingJoyFlightController.h:88
DtReal myPitchVelGain
Definition: rotaryWingJoyFlightController.h:87
DtReal myYawOriGain
Feedback gain for the yaw angular velocity control.
Definition: rotaryWingJoyFlightController.h:92
virtual void joystickConnected() override
Called when joystick is connected for this controller.
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:96
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
VRF4API_METHOD const DtSimulationServices * simManager() const
This is the deprecated API that can be used as a reference to migrate 4.X code to 5...
Definition: simComponent.h:583
virtual bool init() override
Overridden to initialize myRotaryWingEntityState.
virtual void calculateGains(const DtReal manuverConst, const DtReal riseTime, DtReal &velGain, DtReal &oriGain)
Calculates stabilizing gains using the member rise-time variable and maneuverConst.
The DtRotaryWingPilotController class creates the rotary-wing-control port group needed to control ro...
Definition: rotaryWingPilotController.h:38
Will manage basic functionality of a joystick controller. Implement pure virtual functions to respons...
Definition: joystickControllerInterface.h:23
virtual DtSymbolString name() const
Accessor for name of this readable/writable object.
DtReal myRollOriGain
Feedback gain for the roll angular velocity control.
Definition: rotaryWingJoyFlightController.h:90
A locally simulated VRF object.
Definition: localObject.h:98
DtRotaryWingJoyFlightController()
default constructor; not implemented

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)