17 #include <matrix/vlVector.h>
53 virtual const char*
type()
const;
55 virtual double distanceToTarget()
const;
60 virtual double approximateThrust(
double speed)
const;
84 virtual void calculateSteering(
const DtVector &relativeVelocity,
88 double& maneuverAccelXOut,
89 double& maneuverAccelYOut,
90 double& maneuverAccelZOut) = 0;
96 virtual void calculateSteeringToPoint(
const DtVector &relativeVelocity,
99 double& maneuverAccelXOut,
100 double& maneuverAccelYOut,
101 double& maneuverAccelZOut);
108 virtual void calculateSteeringUsingPropNav(
const DtVector &relativeVelocity,
112 double& maneuverAccelXOut,
113 double& maneuverAccelYOut,
114 double& maneuverAccelZOut);
118 virtual bool createMissileControlPortGroup();
119 virtual bool createThrustPort();
120 virtual bool createManeuverAccelXPort();
121 virtual bool createManeuverAccelYPort();
122 virtual bool createManeuverAccelZPort();
123 virtual bool createSelfDestructPort();
146 virtual void calculateTargetErrorOffset();
155 virtual void lookupAndCacheProcessSR();
162 virtual void addRangeItems();
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtVector myTargetErrorOffset
Definition: missileControllerComponent.h:227
Instances of DtBooleanOutputPort are output ports through which data producers can send boolean data...
Definition: boolIOPort.h:45
DtMissileFlightPSR * myProcessState
Pointer to a process state repository used to store state data associated with this component...
Definition: missileControllerComponent.h:234
DtConstrainedAnalogOutputPort * myManeuverAccelXPort
Output Port Name: maneuver-accel-x Output Port Description: Output Port Range: -100000. to 100000. Output Port Default Value: Output Group Parent: missile-control.
Definition: missileControllerComponent.h:202
This repository holds all information that is common to all the forms of missile entities within the ...
Definition: missileStateRepository.h:33
This class provides a base class for all controllers that are capable of executing a DtSimTask...
Definition: singleTaskControllerComponent.h:20
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
double myDistanceToTarget
Definition: missileControllerComponent.h:181
Definition: readerWriterRegistry.h:39
virtual const char * type() const =0
Returns a string identifies the class type of component. Type values are defined in compTypes...
DtOutputPortGroup is a data port group of a data provider. It may contain any number of DtOutputPorts...
Definition: outputPortGroup.h:34
virtual bool init()
Calls setRadio()
DtConstrainedAnalogOutputPort is a version of DtAnalogOutputPort which will constrain any outgoing va...
Definition: constrainedAnalogIOPort.h:57
DtMissileStateRepository * myMissileState
Definition: missileControllerComponent.h:179
class DtMissileFlightPSR:
Definition: missileFlightPSR.h:37
DtMissileLocalObjectFacade myMissileLocalObjectFacade
Definition: missileControllerComponent.h:236
DtMissileControllerComponent is a controller that contains all of the functionality common to all mis...
Definition: missileControllerComponent.h:33
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...
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:90
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
DtConstrainedAnalogOutputPort * myManeuverAccelYPort
Output Port Name: maneuver-accel-y Output Port Description: Output Port Range: -100000. to 100000. Output Port Default Value: Output Group Parent: missile-control.
Definition: missileControllerComponent.h:209
DtOutputPortGroup * myMissileControlPortGroup
Output Port Group Name: missile-control Output Port Group Description:
Definition: missileControllerComponent.h:188
DtConstrainedAnalogOutputPort * myManeuverAccelZPort
Output Port Name: maneuver-accel-z Output Port Description: Output Port Range: -100000. to 100000. Output Port Default Value: Output Group Parent: missile-control.
Definition: missileControllerComponent.h:216
virtual bool postAddComponentsInit()
Calls enableTaskTypes()
DtBooleanOutputPort * mySelfDestructPort
Output Port Name: self-destruct Output Port Description: Output Port Range: Output Port Default Val...
Definition: missileControllerComponent.h:223
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86
DtConstrainedAnalogOutputPort * myThrustPort
Output Port Name: thrust Output Port Description: Output Port Range: Output Port Default Value: Ou...
Definition: missileControllerComponent.h:195