VR-Forces 4.7 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrfmodel
rotaryWingMoveToControllerComponent.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2004 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
11
12
#pragma once
13
14
15
#include "
vrfmodel/rotaryWingTaskController.h
"
16
17
class
DtString
;
18
class
DtSimManager
;
19
class
DtSimMessage
;
20
21
26
#include "
vrfmodel/vrfmodelDefines.h
"
27
class
DT_DLL_vrfmodel
DtRotaryWingMoveToControllerComponent
:
public
DtRotaryWingTaskController
28
{
29
public
:
30
33
DtRotaryWingMoveToControllerComponent
(
const
DtString
& name,
34
DtVrfObject
* owner,
35
DtSimManager
* simManager,
36
DtComponentDescriptor
* desc = 0,
37
DtReaderWriterRegistry
* parentRegistry = 0);
38
40
virtual
~
DtRotaryWingMoveToControllerComponent
();
41
44
virtual
void
tick
();
45
48
virtual
const
char
*
type
()
const
;
49
50
54
static
void
moveToCallback(
DtSimMessage
* msg,
void
* usr);
55
static
void
moveToAltitudeCallback(
DtSimMessage
* msg,
void
* usr);
56
60
virtual
void
processMoveToTask(
DtSimMessage
* msg);
61
65
virtual
void
processMoveToAltitudeTask(
DtSimMessage
* msg);
66
70
static
DtSimComponent
* creator(
const
DtString
& name,
71
DtVrfObject
* owner,
72
DtSimManager
* simManager,
73
DtComponentDescriptor
* desc = 0,
74
DtReaderWriterRegistry
* parentRegistry = 0);
75
76
protected
:
78
virtual
void
registerTaskMsgCallbacks
();
79
82
DtRotaryWingMoveToControllerComponent
();
83
85
DtRotaryWingMoveToControllerComponent
(
86
const
DtRotaryWingMoveToControllerComponent
& orig);
87
89
const
DtRotaryWingMoveToControllerComponent
&
operator=
(
const
90
DtRotaryWingMoveToControllerComponent
& orig);
91
95
virtual
bool
setupControlPoint();
96
102
virtual
bool
createWorkingControlPoint(
const
DtVector
location);
103
105
virtual
void
stop();
106
107
virtual
double
atDistance();
108
115
116
virtual
void
pilotProperties();
117
119
virtual
void
getDesiredPosition(
DtVector
& desiredPosition);
120
125
virtual
DtVector
computeVelocityControl(
DtVector
& desiredPosition);
126
128
virtual
bool
controlPointIsNearGround()
const
;
129
virtual
void
setControlPointIsNearGround(
const
bool
isNear);
130
131
protected
:
132
135
DtVrfObject
*
myControlPoint
;
136
142
DtVector
myLastControlPosition
;
143
146
DtVrfObject
*
myWorkingControlPoint
;
147
150
bool
myControlPointIsNearGround
;
151
};
152
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)