VR-Forces Developer's Guide
 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;
20 class DtTaskMessage;
23 class DtLocalVertex;
25 
48 {
49 public:
50 
54  DtLocalObject* owner,
55  DtSimulationServices* simManager,
56  DtComponentDescriptor* desc = 0,
57  DtReaderWriterRegistry* parentRegistry = 0);
58 
60  virtual ~DtFixedWingTakeoffController() override;
61 
63  virtual bool init() override;
64 
65  virtual bool postAddComponentsInit() override;
66 
69  virtual const char* type() const override;
70 
74  static DtSimComponent * creator(const DtString& name,
75  DtLocalObject* owner,
76  DtSimulationServices* simManager,
77  DtComponentDescriptor* desc = 0,
78  DtReaderWriterRegistry* parentRegistry = 0);
79 
80 protected:
82  virtual void registerTaskMsgCallbacks() override;
83 
85  virtual void tick() override;
86 
88  virtual void clearTask() override;
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 
116 
117 protected:
118 
121  virtual void movingAlongTakeoffRoute();
122 
124  virtual void calculateVertexAndRotation(const DtLocalVector& start, const DtLocalVector& end,
125  const DtVector& distance, DtVector& vertex, DtDcm& rotationDcm) const;
126 
129  virtual double turningPointDistance() const;
130 
132  virtual void startTakeoff();
133 
135  virtual void flyingTowardsTakeoffPoint();
136 
138  virtual void flyTowardsTakeoffPoint();
139 
141  virtual void setCruiseSpeed();
142 
143  virtual void preFirstTickInit() override;
144 
145 private:
146 
149 
152  orig);
153 
157 
158 protected:
159 
163 
167 };
168 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtFixedWingTakeoffDescriptor * myFixedWingTakeoffDescriptor
Definition: fixedWingTakeoffController.h:164
class DtVrfFixedWingLandingPSR:
Definition: vrfFixedWingTakeoffPSR.h:24
virtual bool postAddComponentsInit() override
Calls enableTaskTypes()
virtual const char * type() const override=0
Returns a string identifies the class type of component. Type values are defined in compTypes...
DtFixedWingEntityStateRepository * myFixedWingEntityState
Definition: fixedWingTakeoffController.h:166
virtual void registerTaskMsgCallbacks()
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
This class provides a base class for all controllers that are capable of executing a DtSimTask...
Definition: singleTaskControllerComponent.h:22
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
virtual bool init() override
Calls setRadio()
class DtFixedWingFlightPSR:
Definition: fixedWingFlightPSR.h:41
DT_DLL_VRVCORE double distance(const makVrv::DtCoordinateSystem &, const DtVector &from, const DtVector &to)
Returns the distance from the two points. Coordinates are in local database coordinates The coordinat...
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:41
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
DtFixedWingTakeoffController is a controller that models take-off behavior for fixed-wing entities...
Definition: fixedWingTakeoffController.h:47
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
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
virtual void clearTask() override
If component is currently tasked, calls clearPendingSubtasks(), sets the tasked flag to false...
DtTakeoffControllerState
Definition: vrfFixedWingTakeoffPSR.h:27
DtVrfFixedWingTakeoffPSR * myProcessState
Container for state data associated with this component. This state is saved and restored as part of ...
Definition: fixedWingTakeoffController.h:162
DtFixedWingFlightPSR * myFixedWingFlightPSR
Definition: fixedWingTakeoffController.h:165
A DtTaskMsg is a DtRadioMsg with a pointer to a task. The type of the taskMsg is just the type of the...
Definition: taskMessage.h:21
This descriptor will define parameters that will be used to create an approach vector to a landing st...
Definition: fixedWingTakeoffDescriptor.h:27
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)