VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfmodel
rotWingJoyCtl.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
"
15
#include "
vrfmodel/rotWngPltCtl.h
"
16
#include "
vrfutil/rwReal.h
"
17
18
class
DtString
;
19
class
DtSimManager
;
20
class
DtRotaryWingJoyDeviceControllerDescriptor
;
21
class
DtJoyDevice;
22
27
#include "
vrfmodel/vrfmodelDefines.h
"
28
class
DT_DLL_vrfmodel
DtRotaryWingJoyFlightController
:
public
DtRotaryWingPilotController
29
{
30
31
public
:
32
35
DtRotaryWingJoyFlightController
(
const
DtString
& name,
36
DtVrfObject
* owner,
37
DtSimManager
* simManager,
38
DtComponentDescriptor
* desc = 0,
39
DtReaderWriterRegistry
* parentRegistry = 0);
40
42
virtual
~
DtRotaryWingJoyFlightController
();
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
89
DtRotaryWingJoyFlightController
();
90
92
DtRotaryWingJoyFlightController
(
93
const
DtRotaryWingJoyFlightController
& orig);
94
96
DtRotaryWingJoyFlightController
&
operator=
(
97
const
DtRotaryWingJoyFlightController
& orig);
98
99
100
protected
:
101
102
DtJoyDevice *
myJoyDevice
;
103
const
DtRotaryWingJoyDeviceControllerDescriptor
*
myJoyDeviceControllerDescriptor
;
104
bool
myJoyDeviceInitialized
;
105
106
DtReal
myPitchVelGain
;
107
DtReal
myPitchOriGain
;
108
DtReal
myRollVelGain
;
109
DtReal
myRollOriGain
;
110
DtReal
myYawVelGain
;
111
DtReal
myYawOriGain
;
112
113
bool
myJoystickEnabled
;
114
};
115
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)