55 virtual bool init()
override;
62 virtual const char*
type()
const override;
65 virtual void tick()
override;
72 virtual bool searchLightLimitHit()
const;
102 virtual void updatePorts();
105 virtual void updateParts(
double azRate,
double elRate);
double myMaxAzimuth
Definition: searchLightActuator.h:132
Instances of DtOrientationOutputPort are output ports through which data producers can send a DtTaitB...
Definition: orientationIOPort.h:51
DtSearchLightActuatorDescriptor; a descriptor for the DtSearchLightActuator component.
Definition: searchLightActuatorDescriptor.h:24
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtBooleanInputPort * myPowerOnPort
Input Port Name: power-on Input Port Description: Specifies whether the laser light is powered on...
Definition: searchLightActuator.h:166
const DtActuatorComponent & operator=(const DtActuatorComponent &orig)
assignment operator
DtBooleanOutputPort * myOrientationAchievedOutputPort
Output Port Name: orientation-achieved Output Port Description: Specifies whether the search light wa...
Definition: searchLightActuator.h:217
Instances of DtBooleanOutputPort are output ports through which data producers can send boolean data...
Definition: boolIOPort.h:45
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
double myMaxElevationRate
Definition: searchLightActuator.h:133
virtual void bindLuaFunctions(lua_State *)=0
Override to bind lua functions.
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
DtArtPartType mySearchLightElevationArtPart
Definition: searchLightActuator.h:124
bool myNeedToRetrieveSearchLightLimits
Definition: searchLightActuator.h:129
DtOutputPortGroup is a data port group of a data provider. It may contain any number of DtOutputPorts...
Definition: outputPortGroup.h:34
DtOutputPortGroup * mySearchLightLimitsOutputPortGroup
Output Port Group Name: search-light-limits Output Port Group Description: Allows the actuator to com...
Definition: searchLightActuator.h:222
Definition: bindableLuaComponent.h:56
DtSearchLightActuatorDescriptor * mySearchLightDescriptor
Definition: searchLightActuator.h:119
End User Description: DtActuator is the base class for all actuator model components. Developer Description: The DtActuator base class caches a pointer to the entity's radio for convenience. Derived classes may have articulated parts that are configured from the DtActuatorComponentDescriptor's DtSimArtPartDescriptorList. For each articulated part in the list a DtArticulatedPartStateRepository will be created to store the data for the part such as it's location, rotation and so forth. These are created in the entity's DtVrfObjectStateRepository createParts() function. This call creates all the attached parts for all the actuators. These articulated state repositories are managed by the DtAttachmentManager. They are cached by their partType which is the DIS Enumeration describing the part from the disEnums.h file and was specified in the actuator's DtActuatorComponentDescriptor as descriped above. The partType is used as the category of the DtEntityType used to look up articulated parts in the DtAttachementManager. When an actuator needs access to a particular articulated part it looks it up by the part's object type.
Definition: actuatorComponent.h:47
double myLastReceivedAzimuth
Last commanded azimuth and elevation received from the controller. Used to detect when new angles hav...
Definition: searchLightActuator.h:140
Instances of DtAnalogOutputPort are input ports through which data producers can send real numbers...
Definition: analogIOPort.h:45
Instances of DtVectorOutputPort are output ports through which data producers can send a DtVector...
Definition: vectorIOPort.h:52
virtual bool init() override
Overridden to cache a pointer to the entity's radio in this class.
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation frame...
DtAnalogInputPort * myOrderedElevationPort
Input Port Name: ordered-elevation Input Port Description: Elevation at which to attempt to aim the s...
Definition: searchLightActuator.h:152
DtIntegerInputPort * myAzimuthRotationRatePercentagePort
Input Port Name: azimuth-rotation-rate-percentage Input Port Description: Percentage of maximum rotat...
Definition: searchLightActuator.h:187
DtArtPartType mySearchLightAzimuthArtPart
Definition: searchLightActuator.h:123
bool myRotation360
Cache for the condition for 360 rotation.
Definition: searchLightActuator.h:127
virtual bool createPorts()
Called by init. Derived classes should override this method to create all their input/output ports an...
virtual bool createPortGroups()
Called by init. Derived classes should override this method to create all their input/output port gro...
DtOrientationOutputPort * myOrientationOutputPort
Output Port Name: orientation Input Port Description: Outputs the orientation of the sensor relative ...
Definition: searchLightActuator.h:201
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:97
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
DtOutputPortGroup * mySearchLightOutputPortGroup
Output Port Group Name: search-light-offset Output Port Group Description: Allows an external control...
Definition: searchLightActuator.h:193
DtIntegerInputPort * myRotationRatePercentagePort
Input Port Name: rotation-rate-percentage Input Port Description: Percentage of maximum rotation rate...
Definition: searchLightActuator.h:173
DtSearchLightActuatorPSR * myProcessState
Definition: searchLightActuator.h:121
double myMaxAzimuthRate
Definition: searchLightActuator.h:130
DtSearchLightActuatorPSR is a process state repository which holds state variables for the DtSearchLi...
Definition: searchLightActuatorPSR.h:19
DtAnalogOutputPort * myMaxAzimuthOutputPort
Output Port Name: max-azimuth Output Port Description: The maximum azimuth at which the search light ...
Definition: searchLightActuator.h:234
DtAnalogOutputPort * myMinAzimuthOutputPort
Output Port Name: min-azimuth Output Port Description: The minimum azimuth at which the search light ...
Definition: searchLightActuator.h:228
DtAnalogOutputPort * myMinElevationOutputPort
Output Port Name: min-elevation Output Port Description: The minimum elevation at which the search li...
Definition: searchLightActuator.h:240
DtIntegerInputPort * myElevationRotationRatePercentagePort
Input Port Name: elevation-rotation-rate-percentage Input Port Description: Percentage of maximum rot...
Definition: searchLightActuator.h:180
double myMinElevation
Definition: searchLightActuator.h:134
virtual void bindLuaGlobals(lua_State *)=0
Override to bind lua globals.
DtVectorOutputPort * myPositionOutputPort
Input Port Name: position Input Port Description: Outputs the position of the sensor in body coordina...
Definition: searchLightActuator.h:209
DtAnalogOutputPort * myMaxElevationOutputPort
Output Port Name: max-elevation Output Port Description: The maximum elevation at which the search li...
Definition: searchLightActuator.h:246
DtAnalogInputPort * myOrderedAzimuthPort
Input Port Name: ordered-azimuth Input Port Description: Azimuth at which to attempt to aim the searc...
Definition: searchLightActuator.h:159
double myLastReceivedElevation
Last commanded azimuth and elevation received from the controller. Used to detect when new angles hav...
Definition: searchLightActuator.h:141
Class DtVrfBalGunPSR: Used to hold checkpointable state for the processes associated with ballistic g...
Definition: vrfBalGunPSR.h:36
DtSearchLightActuator provides a model of a search light.
Definition: searchLightActuator.h:37
double myMaxElevation
Definition: searchLightActuator.h:135
virtual const char * type() const =0
Returns a string identifies the class type of component. Type values are defined in compTypes...
double myMinAzimuth
Definition: searchLightActuator.h:131
A locally simulated VRF object.
Definition: localObject.h:98
DtPlatformLocalObjectFacade myPlatformLocalObjectFacade
Member to allow for access to platform specific data.
Definition: searchLightActuator.h:251