VR-Forces 4.8 Class Documentation
 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;
20 class DtSimManager;
22 class DtJoyDevice;
23 
30 {
31 
32 public:
33 
37  DtVrfObject* owner,
38  DtSimManager* 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  DtVrfObject* owner,
56  DtSimManager* 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
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
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
static DtSimComponent * creator(const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
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
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
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.
virtual void calcAndSetPortValues(const DtString &functionGroup, const DtString &function, double value, bool repeat)=0
Override to set.
The DtRotaryWingPilotController class creates the rotary-wing-control port group needed to control ro...
Definition: rotaryWingPilotController.h:37
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
Will manage basic functionality of a joystick controller.
Definition: joystickControllerInterface.h:23
DtReal myRollOriGain
Feedback gain for the roll angular velocity control.
Definition: rotaryWingJoyFlightController.h:88

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)