VR-Forces 4.5 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrfmodel
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
"
15
#include "
vrfmodel/rotaryWingPilotController.h
"
16
#include "
vrfmodel/joystickControllerInterface.h
"
17
#include "
vrfutil/rwReal.h
"
18
19
class
DtString
;
20
class
DtSimManager
;
21
class
DtJoyDeviceControllerDescriptor
;
22
class
DtJoyDevice;
23
28
#include "
vrfmodel/vrfmodelDefines.h
"
29
class
DT_DLL_vrfmodel
DtRotaryWingJoyFlightController
:
public
DtRotaryWingPilotController
,
public
DtJoystickControllerInterface
30
{
31
32
public
:
33
36
DtRotaryWingJoyFlightController
(
const
DtString
& name,
37
DtVrfObject
* owner,
38
DtSimManager
* simManager,
39
DtComponentDescriptor
* desc = 0,
40
DtReaderWriterRegistry
* parentRegistry = 0);
41
43
virtual
~
DtRotaryWingJoyFlightController
();
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
74
DtRotaryWingJoyFlightController
();
75
77
DtRotaryWingJoyFlightController
(
78
const
DtRotaryWingJoyFlightController
& orig);
79
81
DtRotaryWingJoyFlightController
&
operator=
(
82
const
DtRotaryWingJoyFlightController
& orig);
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 Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)