VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
missileManeuverActComponent.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
15 #include <vlpi/disEnums.h>
18 
19 #include <matrix/vlVector.h>
20 
21 class DtString;
25 class DtBooleanInputPort;
26 class DtTaitBryan;
27 class DtMissileManeuverActPortIntf;
28 class DtMissileFlightPSR;
30 
37 {
38 
39 public:
40 
44  DtLocalObject* owner,
45  DtSimulationServices* simManager,
46  DtComponentDescriptor* desc = 0,
47  DtReaderWriterRegistry* parentRegistry = 0);
48 
50  virtual ~DtMissileManeuverActComponent() override;
51 
56  virtual bool init() override;
57 
60  virtual const char* type() const override;
61 
63  virtual void tick() override;
64 
67  virtual DtVector calculateAccelerationFromResistance();
68 
70  virtual void updateRepository(const DtVector & position, const DtVector &
71  velocity, const DtVector & acceleration, const DtTaitBryan & orientation);
72 
76  static DtSimComponent * creator(const DtString& name,
77  DtLocalObject* owner,
78  DtSimulationServices* simManager,
79  DtComponentDescriptor* desc = 0,
80  DtReaderWriterRegistry* parentRegistry = 0);
81 
82 protected:
83 
85  virtual bool createPortGroups() override;
86 
88  virtual bool createPorts() override;
89 
95  virtual bool createPSR();
96 
97 protected:
98 
101 
104 
108 
109 
110 protected:
111 
113 
116 
120 
127 
134 
141 
148 
155 
157 
161 
165 
168 };
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtConstrainedAnalogInputPort * myManeuverAccelXPort
Input Port Name: maneuver-accel-x Input Port Description: Input Port Range: -100000. to 100000. Input Port Default Value: Input Group Parent: missile-control.
Definition: missileManeuverActComponent.h:133
DtMissileStateRepository * myMissileState
Definition: missileManeuverActComponent.h:112
const DtActuatorComponent & operator=(const DtActuatorComponent &orig)
assignment operator
This repository holds all information that is common to all the forms of missile entities within the ...
Definition: missileStateRepository.h:33
Contains class declarations for DtConstrainedAnalogInputPort and DtConstrainedAnalogOutputPort.
Definition: constrainedAnalogIOPort.h:30
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
DtBooleanInputPort * mySelfDestructPort
Input Port Name: self-destruct Input Port Description: Input Port Range: Input Port Default Value: ...
Definition: missileManeuverActComponent.h:154
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&#39;s radio for convenience. Derived classes may have articulated parts that are configured from the DtActuatorComponentDescriptor&#39;s DtSimArtPartDescriptorList. For each articulated part in the list a DtArticulatedPartStateRepository will be created to store the data for the part such as it&#39;s location, rotation and so forth. These are created in the entity&#39;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&#39;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&#39;s object type.
Definition: actuatorComponent.h:47
class DtMissileFlightPSR:
Definition: missileFlightPSR.h:38
virtual bool init() override
Overridden to cache a pointer to the entity&#39;s radio in this class.
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
Contains class declarations for DtBooleanInputPort, DtBooleanOutputPort, and DtBooleanPortData.
Definition: boolIOPort.h:25
DtUpdateRepositoryOutputPortGroup * myUpdateRepositoryOutputPortGroup
Port group used to set what values should be set into the VRF state repository. All values are in loc...
Definition: missileManeuverActComponent.h:164
DtConstrainedAnalogInputPort * myThrustPort
Input Port Name: thrust Input Port Description: Input Port Range: 0. to 1. Input Port Default Value:...
Definition: missileManeuverActComponent.h:126
virtual bool createPorts()
Called by init. Derived classes should override this method to create all their input/output ports an...
DtConstrainedAnalogInputPort * myManeuverAccelYPort
Input Port Name: maneuver-accel-y Input Port Description: Input Port Range: -100000. to 100000. Input Port Default Value: Input Group Parent: missile-control.
Definition: missileManeuverActComponent.h:140
virtual bool createPortGroups()
Called by init. Derived classes should override this method to create all their input/output port gro...
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
DtInputPortGroup is a data port group of a data consumer. It may contain any number of DtInputPorts a...
Definition: inputPortGroup.h:35
DtMissileManeuverActComponent is a kinematics-based model of a missile system that converts steering ...
Definition: missileManeuverActComponent.h:36
DtConstrainedAnalogInputPort * myManeuverAccelZPort
Input Port Name: maneuver-accel-z Input Port Description: Input Port Range: -100000. to 100000. Input Port Default Value: Input Group Parent: missile-control.
Definition: missileManeuverActComponent.h:147
DtPlatformLocalObjectFacade myPlatformLocalObjectFacade
Member to allow for access to platform specific data.
Definition: missileManeuverActComponent.h:167
DtUpdateRepositoryOutputPortGroup is a data port group of a data consumer that contains methods and p...
Definition: updateRepositoryOutputPortGroup.h:31
virtual const char * type() const =0
Returns a string identifies the class type of component. Type values are defined in compTypes...
A locally simulated VRF object.
Definition: localObject.h:98
DtInputPortGroup * myMissileControlPortGroup
Input Port Group Name: missile-control Input Port Group Description:
Definition: missileManeuverActComponent.h:119
DtMissileFlightPSR * myProcessState
Container for state data associated with this component. This state is saved and restored as part of ...
Definition: missileManeuverActComponent.h:160

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)