VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 "vrfutil/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 

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)