VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
16 
17 class DtString;
19 class DtSimMessage;
20 
21 
28 {
29 public:
30 
34  DtLocalObject* owner,
35  DtSimulationServices* simManager,
36  DtComponentDescriptor* desc = 0,
37  DtReaderWriterRegistry* parentRegistry = 0);
38 
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  DtLocalObject* owner,
72  DtSimulationServices* simManager,
73  DtComponentDescriptor* desc = 0,
74  DtReaderWriterRegistry* parentRegistry = 0);
75 
76 protected:
78  virtual void registerTaskMsgCallbacks();
79 
83 
87 
91 
95  virtual bool setupControlPoint();
96 
102  virtual bool createWorkingControlPoint(const DtVector location);
103 
105  virtual void stop();
106 
111  virtual double bodyLengthFactor() const;
112 
115  virtual double atDistance();
116 
123  virtual void pilotProperties();
124 
127  virtual void handleContinueFlag();
128 
130  virtual void getDesiredPosition(DtVector& desiredPosition);
131 
136  virtual DtVector computeVelocityControl(DtVector& desiredPosition);
137 
139  virtual bool controlPointIsNearGround()const;
140  virtual void setControlPointIsNearGround(const bool isNear);
141 
142  virtual void processEstimatedTotCalculation();
143 
145 
146 protected:
147 
151 
158 
162 
166 };
167 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
virtual void registerTaskMsgCallbacks()
virtual void updateTaskVisualizations()
update visualizations
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
const DtRotaryWingTaskController & operator=(const DtRotaryWingTaskController &orig)
assignment operator; not implemented
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
File: simMsg.h.
Definition: simMessage.h:35
virtual void processEstimatedTotCalculation()
calculate estimated tot
DtRotaryWingMoveToControllerComponent is a controller used to model the movement of a helicopter alon...
Definition: rotaryWingMoveToControllerComponent.h:27
DtLocalObject * myWorkingControlPoint
Locally allocated waypoint - we set myControlPoint to point to it. Used to create a waypoint when mov...
Definition: rotaryWingMoveToControllerComponent.h:161
The DtRotaryWingTaskController class creates the rotary-wing-control port group needed to control rot...
Definition: rotaryWingTaskController.h:31
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:90
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
bool myControlPointIsNearGround
Cache the results of a test to see if the control point is near the ground. (If it is...
Definition: rotaryWingMoveToControllerComponent.h:165
virtual const char * type() const =0
Returns a string identifies the class type of component. Type values are defined in compTypes...
DtVector myLastControlPosition
This is set to the position of the control point last tick. In the case where the control point is mo...
Definition: rotaryWingMoveToControllerComponent.h:157
DtSimObjectReference myControlPoint
This is looked up once per tick - assumed unchanging while we have control.
Definition: rotaryWingMoveToControllerComponent.h:150
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)