VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rotaryWingFlightCommandController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
7 
8 
9 #pragma once
10 
13 
14 class DtString;
16 class DtSimMessage;
18 
35 {
36 public:
37 
41  DtLocalObject* owner,
42  DtSimulationServices* simManager,
43  DtComponentDescriptor* desc = 0,
44  DtReaderWriterRegistry* parentRegistry = 0);
45 
48 
49  virtual bool init();
50 
51  virtual void tick();
52 
55  virtual const char* type() const;
56 
57  virtual bool beginProcessingTask(const DtTaskMessage& task,
58  DtSimTaskStatePtr taskState);
59 
62  virtual bool showCurrentTaskInGui() const;
63 
66 
67  static void taskNotiyCallback(const DtSimTask & task, const DtSimComponent &notifier, void* usr);
68  virtual void processTaskNotify(const DtSimTask & task, const DtSimComponent &notifier);
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();
83 
87 
91 
95 
97  virtual void pilotProperties();
98 
99  virtual void clearTask();
100 
101  virtual DtRotaryWingFlightCommandControllerPSR* createPSR();
102 
105  virtual void processSkipTask(DtSimMessage*);
106  static void skipTaskCallback(DtSimMessage * msg, void * usr);
107 
111  virtual void resetTurnDirection();
112 
114 
115  virtual void processSetLocationCallback();
117 
118 protected:
120 
122 
126 
128  double myNorthAngle;
129 
130  boost::signals2::scoped_connection mySetLocationCompleteConnection;
131 };
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtTime myNextMagNorthUpdateTime
Definition: rotaryWingFlightCommandController.h:127
bool myResetTurnDirection
Default is false. On beginProcessed it'll become true and will turn to false again if the direct dire...
Definition: rotaryWingFlightCommandController.h:125
virtual void registerTaskMsgCallbacks()
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 void clearTask()
Overridden to deactivate the port group when this controller completes a task.
Definition: readerWriterRegistry.h:39
virtual bool showCurrentTaskInGui() const
DtBoost::shared_ptr< DtSimTaskState > DtSimTaskStatePtr
Definition: taskAndTaskStateDefines.h:18
bool mySkippingTask
Definition: rotaryWingFlightCommandController.h:121
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 ...
A controller with carries out the &quot;Flight Command&quot; tasks DtFlyHeadingTask, DtFlyAltitudeTask and DtFl...
Definition: rotaryWingFlightCommandController.h:34
File: simMsg.h.
Definition: simMessage.h:35
virtual bool beginProcessingTask(const DtTaskMessage &task, DtSimTaskStatePtr taskState)
Called by the task manager when this controller should start executing the specified task...
The DtRotaryWingTaskController class creates the rotary-wing-control port group needed to control rot...
Definition: rotaryWingTaskController.h:31
Process State Repository for the DtRotaryWingFlightCommandController component.
Definition: rotaryWingFlightCommandControllerPSR.h:17
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
virtual bool init()
Overridden to initialize myRotaryWingEntityState.
DtSimTask is an abstract base class from which real tasks can derive. It manages the read/write capab...
Definition: simTask.h:30
virtual const char * type() const =0
Returns a string identifies the class type of component. Type values are defined in compTypes...
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
DtRotaryWingFlightCommandControllerPSR * myProcessState
Definition: rotaryWingFlightCommandController.h:119
double myNorthAngle
Definition: rotaryWingFlightCommandController.h:128
boost::signals2::scoped_connection mySetLocationCompleteConnection
Definition: rotaryWingFlightCommandController.h:130
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)