VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
sensorGimbalActuator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 #pragma once
12 
14 #include "vrfcore/timer.h"
15 #include <vl/hostStructs.h>
17 
18 class DtSimManager;
21 class DtVrfBalGunPSR;
22 class DtIntegerInputPort;
23 class DtAnalogInputPort;
24 class DtAnalogOutputPort;
27 class DtVectorOutputPort;
28 
37  public DtBindableLuaComponent<DtSensorGimbalActuator>
38 {
39 
40 public:
41 
44  DtSensorGimbalActuator(const DtString& name,
45  DtVrfObject* owner,
46  DtSimManager* simManager,
47  DtComponentDescriptor* desc = 0,
48  DtReaderWriterRegistry* parentRegistry = 0);
49 
50 
52  virtual ~DtSensorGimbalActuator();
53 
54  virtual bool init();
55 
57  virtual void preFirstTickInit();
58 
61  virtual const char* type() const;
62 
64  virtual void tick();
65 
67 
68 
71  virtual bool gimbalLimitHit() const;
72 
74 
77  virtual void bindLuaFunctions(lua_State* L);
78  virtual void bindLuaGlobals(lua_State* L);
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 
92  virtual bool createPortGroups();
93 
95  virtual bool createPorts();
96 
98  virtual DtSensorGimbalActuatorPSR* createPSR();
99 
101  virtual void updatePorts();
102 
104  virtual void updateParts();
105 
106 protected:
107 
110 
113 
116 
117 protected:
119 
121 
122  DtArtPartType myGimbalAzimuthArtPart;
124 
127 
130 
137 
144 
151 
158 
165 
171 
179 
187 
195 
197 };
198 

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)