VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
fixedWingTakeoffController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2005 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 
13 #pragma once
14 
17 
18 class DtString;
19 class DtSimManager;
20 class DtTaskMessage;
23 class DtLocalVertex;
25 
48 {
49 public:
50 
54  DtVrfObject* owner,
55  DtSimManager* simManager,
56  DtComponentDescriptor* desc = 0,
57  DtReaderWriterRegistry* parentRegistry = 0);
58 
61 
63  virtual bool init();
64 
65  virtual bool postAddComponentsInit();
66 
69  virtual const char* type() const;
70 
74  static DtSimComponent * creator(const DtString& name,
75  DtVrfObject* owner,
76  DtSimManager* simManager,
77  DtComponentDescriptor* desc = 0,
78  DtReaderWriterRegistry* parentRegistry = 0);
79 
80 protected:
82  virtual void registerTaskMsgCallbacks();
83 
85  virtual void tick();
86 
88  virtual void clearTask();
89 
91 protected:
92 
98  virtual bool createPSR();
99 
101  DtFixedWingFlightPSR* lookupFixedWingFlightPSR();
102 
105  static void taskCompleteReportCallback(DtSimMessage * msg, void * usr);
106  virtual void processTaskComplete(DtSimMessage * msg);
107 
110  virtual void processTakeoffTask(DtSimMessage* msg);
111  static void takeoffTaskCallback(DtSimMessage* msg, void* usr);
112 
115  static void deleteVrfObjectCallback(const DtVrfObject* msg, void * usr);
116  virtual void processDeleteVrfObjectCallback(const DtVrfObject* obj);
117 
121 
122 protected:
123 
126  virtual void movingAlongTakeoffRoute();
127 
129  virtual void calculateVertexAndRotation(const DtLocalVector& start, const DtLocalVector& end,
130  const DtVector& distance, DtVector& vertex, DtDcm& rotationDcm) const;
131 
134  virtual double turningPointDistance() const;
135 
137  virtual void startTakeoff();
138 
140  virtual void flyingTowardsTakeoffPoint();
141 
143  virtual void flyTowardsTakeoffPoint();
144 
146  virtual void setCruiseSpeed();
147 
148 private:
149 
152 
155  orig);
156 
160 
161 protected:
162 
166 
170 };
171 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
virtual bool postAddComponentsInit()
Called after all components have been created, initialized and added to the component manager...
Definition: simComponent.h:144
DtFixedWingTakeoffDescriptor * myFixedWingTakeoffDescriptor
Definition: fixedWingTakeoffController.h:167
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
class DtVrfFixedWingLandingPSR:
Definition: vrfFixedWingTakeoffPSR.h:23
DtFixedWingEntityStateRepository * myFixedWingEntityState
Definition: fixedWingTakeoffController.h:169
virtual void registerTaskMsgCallbacks()
This class provides a base class for all controllers that are capable of executing a DtSimTask...
Definition: singleTaskControllerComponent.h:20
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
Definition: readerWriterRegistry.h:39
virtual const char * type() const =0
Returns a string identifies the class type of component.
virtual bool init()
Calls setRadio()
virtual void clearTask()
If component is currently tasked, calls clearPendingSubtasks(), sets the tasked flag to false...
class DtFixedWingFlightPSR:
Definition: fixedWingFlightPSR.h:38
DT_DLL_VRVCORE double distance(const makVrv::DtCoordinateSystem &, const DtVector &from, const DtVector &to)
Returns the distance from the two points.
Definition: localVector.h:25
File: simMsg.h.
Definition: simMessage.h:35
This repository holds all information that is common to all the forms of local fixed wing entities wi...
Definition: fixedWingEntityStateRepository.h:37
virtual void tick()
This gives the thread of control to the component.
DtFixedWingTakeoffController is a controller that models take-off behavior for fixed-wing entities...
Definition: fixedWingTakeoffController.h:47
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
DtTakeoffControllerState
Definition: vrfFixedWingTakeoffPSR.h:26
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
DtVrfFixedWingTakeoffPSR * myProcessState
Container for state data associated with this component.
Definition: fixedWingTakeoffController.h:165
DtFixedWingFlightPSR * myFixedWingFlightPSR
Definition: fixedWingTakeoffController.h:168
A DtTaskMsg is a DtRadioMsg with a pointer to a task.
Definition: taskMessage.h:19
This descriptor will define parameters that will be used to create an approach vector to a landing st...
Definition: fixedWingTakeoffDescriptor.h:27

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)