VR-Forces 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 
47  virtual ~DtRotaryWingFlightCommandController() override;
48 
49  virtual bool init() override;
50 
51  virtual void tick() override;
52 
55  virtual const char* type() const override;
56 
57  virtual bool beginProcessingTask(const DtTaskMessage& task, DtSimTaskStatePtr taskState) override;
58 
61  virtual bool showCurrentTaskInGui() const override;
62 
65 
66  static void taskNotiyCallback(const DtSimTask & task, const DtSimComponent &notifier, void* usr);
67  virtual void processTaskNotify(const DtSimTask & task, const DtSimComponent &notifier);
69 
73  static DtSimComponent * creator(const DtString& name,
74  DtLocalObject* owner,
75  DtSimulationServices* simManager,
76  DtComponentDescriptor* desc = 0,
77  DtReaderWriterRegistry* parentRegistry = 0);
78 
79 protected:
81  virtual void registerTaskMsgCallbacks() override;
82 
86 
90 
94 
96  virtual void pilotProperties();
97 
98  virtual void clearTask() override;
99 
100  virtual DtRotaryWingFlightCommandControllerPSR* createPSR();
101 
104  virtual void processSkipTask(DtSimMessage*);
105  static void skipTaskCallback(DtSimMessage * msg, void * usr);
106 
110  virtual void resetTurnDirection();
111 
113 
114  virtual void processSetLocationCallback();
116 
117 protected:
119 
121 
125 
127  double myNorthAngle;
128 
129  boost::signals2::scoped_connection mySetLocationCompleteConnection;
130 };
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtTime myNextMagNorthUpdateTime
Definition: rotaryWingFlightCommandController.h:126
bool myResetTurnDirection
Default is false. On beginProcessed it'll become true and will turn to false again if the direct dire...
Definition: rotaryWingFlightCommandController.h:124
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 const char * type() const override=0
Returns a string identifies the class type of component. Type values are defined in compTypes...
virtual bool init() override
Overridden to initialize myRotaryWingEntityState.
Definition: readerWriterRegistry.h:39
std::shared_ptr< DtSimTaskState > DtSimTaskStatePtr
Definition: taskAndTaskStateDefines.h:18
virtual bool showCurrentTaskInGui() const
virtual bool beginProcessingTask(const DtTaskMessage &task, DtSimTaskStatePtr taskState) override
Called by the task manager when this controller should start executing the specified task...
bool mySkippingTask
Definition: rotaryWingFlightCommandController.h:120
const DtRotaryWingTaskController & operator=(const DtRotaryWingTaskController &orig)
assignment operator; not implemented
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 void clearTask() override
Overridden to deactivate the port group when this controller completes a 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:96
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
DtSimTask is an abstract base class from which real tasks can derive. It manages the read/write capab...
Definition: simTask.h:30
virtual void tick() override
This gives the thread of control to the component. The component is ticked once each simulation from ...
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:118
double myNorthAngle
Definition: rotaryWingFlightCommandController.h:127
boost::signals2::scoped_connection mySetLocationCompleteConnection
Definition: rotaryWingFlightCommandController.h:129
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)