VR-Forces 5.0.1 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 
30 {
31 
32 public:
33 
37  DtLocalObject* owner,
38  DtSimulationServices* simManager,
39  DtComponentDescriptor* desc = 0,
40  DtReaderWriterRegistry* parentRegistry = 0);
41 
44 
45  virtual bool init();
46 
49  virtual const char* type() const;
50 
54  static DtSimComponent * creator(const DtString& name,
55  DtLocalObject* owner,
56  DtSimulationServices* simManager,
57  DtComponentDescriptor* desc = 0,
58  DtReaderWriterRegistry* parentRegistry = 0);
59 
60 protected:
61 
64  virtual void calculateGains(const DtReal manuverConst, const DtReal riseTime,
65  DtReal & velGain, DtReal & oriGain);
66 
67  virtual void calcAndSetPortValues(const DtString& functionGroup, const DtString& function, double value, bool repeat);
68  virtual void joystickConnected();
69  virtual void joystickDisconnected();
70 
71 protected:
72 
75 
79 
83 
84 protected:
85  DtReal myPitchVelGain;
86  DtReal myPitchOriGain;
87  DtReal myRollVelGain;
88  DtReal myRollOriGain;
89  DtReal myYawVelGain;
90  DtReal myYawOriGain;
91 };
92 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
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
DtReal myYawVelGain
Feedback gain for the roll orientation control.
Definition: rotaryWingJoyFlightController.h:89
DtReal myRollVelGain
Feedback gain for the pitch orientation control.
Definition: rotaryWingJoyFlightController.h:87
virtual void joystickDisconnected()=0
Called when joystick is disconnected for this controller.
!!!!!!!!!!!! DtJoyDeviceControllerDescriptor
Definition: joyDeviceControllerDescriptor.h:93
virtual void joystickConnected()=0
Called when joystick is connected for this controller.
DtRotaryWingJoyFlightController is a controller that enables joystick control of a rotary wing aircra...
Definition: rotaryWingJoyFlightController.h:29
DtReal myPitchOriGain
Feedback gain for the pitch angular velocity control.
Definition: rotaryWingJoyFlightController.h:86
DtJoystickControllerInterface & operator=(const DtJoystickControllerInterface &orig)
assignment operator; not implemented.
DtReal myPitchVelGain
Definition: rotaryWingJoyFlightController.h:85
DtReal myYawOriGain
Feedback gain for the yaw angular velocity control.
Definition: rotaryWingJoyFlightController.h:90
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:89
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
virtual const char * type() const
Returns a string identifies the class type of component. Type values are defined in compTypes...
virtual void calcAndSetPortValues(const DtString &functionGroup, const DtString &function, double value, bool repeat)=0
Override to set.
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
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
DtReal myRollOriGain
Feedback gain for the roll angular velocity control.
Definition: rotaryWingJoyFlightController.h:88
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)