VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
fixedWingFlightCommandController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2011 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
13 
14 class DtString;
15 class DtSimManager;
16 class DtConstrainedAnalogPort;
17 class boolPort;
18 class DtSimMessage;
19 
36 {
37 
38 public:
39 
43  DtVrfObject* owner,
44  DtSimManager* simManager,
45  DtComponentDescriptor* desc = 0,
46  DtReaderWriterRegistry* parentRegistry = 0);
47 
50 
51  virtual bool init();
52 
53  virtual bool beginProcessingTask(const DtTaskMessage& task,
54  DtSimTaskStatePtr taskState);
55 
56  virtual void tick();
57 
60  virtual const char* type() const;
61 
64  virtual bool showCurrentTaskInGui() const;
65 
68 
69  static void taskNotifyCallback(const DtSimTask & task, const DtSimComponent &notifier, void* usr);
70  virtual void processTaskNotify(const DtSimTask & task, const DtSimComponent &notifier);
72 
73 
75 
76  static void setLocationCallback(const DtVrfObject* obj, void* usr);
77  virtual void processSetLocationCallback();
79 
83  static DtSimComponent * creator(const DtString& name,
84  DtVrfObject* owner,
85  DtSimManager* simManager,
86  DtComponentDescriptor* desc = 0,
87  DtReaderWriterRegistry* parentRegistry = 0);
88 
89 protected:
90  virtual void clearTask();
91 
95  virtual void resetTurnDirection();
96 
97 private:
98 
101 
105 
109 
110 protected:
113  double myNorthAngle;};
114 
bool myResetTurnDirection
Definition: fixedWingFlightCommandController.h:111
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
virtual void clearTask()
Overridden to deactivate the port group when this controller completes a task.
DtTime myNextMagNorthUpdateTime
Definition: fixedWingFlightCommandController.h:112
virtual void tick()
Only gets actuator values the first time it's called.
double myNorthAngle
Definition: fixedWingFlightCommandController.h:113
virtual bool init()
Initializes myFixedWingEntityState.
User Description: A controller which carries out the "Flight Command" tasks DtFlyHeadingTask, DtFlyAltitudeTask and DtFlyHeadingAndAltitudeTask for fixed wing aircraft.
Definition: fixedWingFlightCommandController.h:35
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 bool showCurrentTaskInGui() const
DtFixedWingPilotController is a controller that models the capabilities of a fixed-wing pilot...
Definition: fixedWingPilotController.h:46
DtBoost::shared_ptr< DtSimTaskState > DtSimTaskStatePtr
Definition: taskAndTaskStateDefines.h:18
const DtFixedWingPilotController & operator=(const DtFixedWingPilotController &orig)
assignment operator; not implemented
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...
virtual const char * type() const
Returns a string identifies the class type of component.
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
static DtSimComponent * creator(const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
DtSimTask is an abstract base class from which real tasks can derive.
Definition: simTask.h:31
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
A DtTaskMsg is a DtRadioMsg with a pointer to a task.
Definition: taskMessage.h:19

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)