VR-Forces 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 
40  virtual ~DtRotaryWingMoveToControllerComponent() override;
41 
44  virtual void tick() override;
45 
48  virtual const char* type() const override;
49 
50 
54  static void moveToCallback(DtSimMessage * msg, void * usr);
55  static void moveToAltitudeCallback(DtSimMessage * msg, void * usr);
56 
59  virtual void processMoveToTask(DtSimMessage * msg);
60 
64  virtual void processMoveToAltitudeTask(DtSimMessage * msg);
65 
69  static DtSimComponent * creator(const DtString& name,
70  DtLocalObject* owner,
71  DtSimulationServices* simManager,
72  DtComponentDescriptor* desc = 0,
73  DtReaderWriterRegistry* parentRegistry = 0);
74 
75 protected:
77  virtual void registerTaskMsgCallbacks() override;
78 
82 
86 
90 
94  virtual bool setupControlPoint();
95 
99  virtual bool createWorkingControlPoint(const DtVector& localLocation);
100 
102  virtual void stop();
103 
108  virtual double bodyLengthFactor() const;
109 
112  virtual double atDistance();
113 
120  virtual void pilotProperties();
121 
124  virtual void handleContinueFlag();
125 
129  virtual void getDesiredPosition(DtVector& desiredPosition);
130 
135  virtual DtVector computeVelocityControl(DtVector& desiredPosition);
136 
138  virtual bool controlPointIsNearGround()const;
139  virtual void setControlPointIsNearGround(const bool isNear);
140 
141  virtual void processEstimatedTotCalculation() override;
142 
143  virtual void updateTaskVisualizations() override;
144 
145 protected:
146 
153 
156 
160 };
161 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
virtual void registerTaskMsgCallbacks()
double myLastDerivedControlSpeed
The last output velocity (speed) computed from the movement of the control point. ...
Definition: rotaryWingMoveToControllerComponent.h:155
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
virtual const char * type() const override=0
Returns a string identifies the class type of component. Type values are defined in compTypes...
Definition: readerWriterRegistry.h:39
const DtRotaryWingTaskController & operator=(const DtRotaryWingTaskController &orig)
assignment operator; not implemented
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
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:96
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
bool myControlPointIsNearGround
Cache the results of a test to see if the control point is near the ground. (If it is...
Definition: rotaryWingMoveToControllerComponent.h:159
virtual void updateTaskVisualizations() override
update visualizations
virtual void tick() override
This gives the thread of control to the component. The component is ticked once each simulation from ...
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:152
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)