VR-Forces 4.3 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"
16 #include "vrfutil/rwReal.h"
17 
18 class DtString;
19 class DtSimManager;
21 class DtJoyDevice;
22 
29 {
30 
31 public:
32 
36  DtVrfObject* owner,
37  DtSimManager* simManager,
38  DtComponentDescriptor* desc = 0,
39  DtReaderWriterRegistry* parentRegistry = 0);
40 
43 
44  virtual bool init();
45 
47  virtual void tick();
48 
51  virtual DtString type() const;
52 
54  static void setJoyDeviceSwitchCallbacks(DtSimMessage * msg, void * usrData);
55 
57  virtual void processSetJoyDeviceSwitch(DtSimMessage * msg);
58 
60  virtual void calcAndSetPortValues();
61 
62  virtual bool joystickEnabled() const;
63 
67  static DtSimComponent * creator(const DtString& name,
68  DtVrfObject* owner,
69  DtSimManager* simManager,
70  DtComponentDescriptor* desc = 0,
71  DtReaderWriterRegistry* parentRegistry = 0);
72 
73 protected:
74 
77  virtual void calculateGains(const DtReal manuverConst, const DtReal riseTime,
78  DtReal & velGain, DtReal & oriGain);
79 
81  virtual void initializeJoyDevice();
82 
84  virtual void setRadio(DtSimRadio * radio);
85 
86 protected:
87 
90 
94 
98 
99 
100 protected:
101 
102  DtJoyDevice * myJoyDevice;
105 
106  DtReal myPitchVelGain;
107  DtReal myPitchOriGain;
108  DtReal myRollVelGain;
109  DtReal myRollOriGain;
110  DtReal myYawVelGain;
111  DtReal myYawOriGain;
112 
114 };
115 

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)