46 virtual bool init()
override;
48 virtual void tick()
override;
51 virtual const char*
type()
const override = 0;
60 virtual void setDesiredPosition(
const DtVector& pos);
61 virtual void setContinueMovement(
const bool continueAtEnd);
62 virtual void setDesiredVelocity(
const DtVector& vel);
63 virtual void setDesiredAcceleration(
const DtVector& accel);
64 virtual void setDesiredHeading(
double heading);
65 virtual void setPositionSelector(
double sel);
66 virtual void setVelocitySelector(
double sel);
67 virtual void setAccelerationSelector(
double sel);
68 virtual void setHeadingSelector(
double sel);
69 virtual void setAggressiveness(
double agg);
70 virtual void setPowerDown(
bool powerDown);
98 virtual bool createGuidancePortGroup();
99 virtual bool createDesiredPositionPort();
100 virtual bool createDesiredVelocityPort();
101 virtual bool createDesiredAccelerationPort();
102 virtual bool createDesiredHeadingPort();
103 virtual bool createPositionSelectorPort();
104 virtual bool createContinueMovementPort();
105 virtual bool createVelocitySelectorPort();
106 virtual bool createAccelerationSelectorPort();
107 virtual bool createHeadingSelectorPort();
108 virtual bool createAggressivenessPort();
109 virtual bool createPowerDownPort();
119 virtual void lookupAndCacheProcessSR();
126 virtual void processEstimatedTotCalculation();
241 const double DtEstimatedTotCalcInterval = 5.0;
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
This repository holds all information that is common to all the forms of local rotary wing entities w...
Definition: rotaryWingEntityStateRepository.h:27
virtual bool postAddComponentsInit() override
Calls enableTaskTypes()
double myEstimatedTotValue
the tot value
Definition: rotaryWingTaskController.h:246
DtVectorOutputPort * myDesiredVelocityPort
Output Port Name: desired-velocity Output Port Description: The desired velocity of the entity Output...
Definition: rotaryWingTaskController.h:166
bool myEstimatedTotCalcEnabled
enabled flag for the tot calculations
Definition: rotaryWingTaskController.h:244
DtBooleanOutputPort * myContinueMovementPort
Input Port Name: continue-movement Input Port Description: Indicates that when flying to a position...
Definition: rotaryWingTaskController.h:192
DtAnalogOutputPort * myHeadingSelectorPort
Output Port Name: heading-selector Output Port Description: Determines whether the desired-heading po...
Definition: rotaryWingTaskController.h:213
virtual const char * type() const override=0
Returns a string identifies the class type of component. Type values are defined in compTypes...
Instances of DtBooleanOutputPort are output ports through which data producers can send boolean data...
Definition: boolIOPort.h:45
DtPlatformLocalObjectFacade myPlatformLocalObjectFacade
Definition: rotaryWingTaskController.h:252
DtAnalogOutputPort * myVelocitySelectorPort
Output Port Name: velocity-selector Output Port Description: Determines whether the desired-velocity ...
Definition: rotaryWingTaskController.h:199
This class provides a base class for all controllers that are capable of executing a DtSimTask...
Definition: singleTaskControllerComponent.h:22
Definition: rotaryWingFlightPSR.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
DtVector myEstimatedTotTextPos
tot text position
Definition: rotaryWingTaskController.h:250
Definition: readerWriterRegistry.h:39
DtOutputPortGroup is a data port group of a data provider. It may contain any number of DtOutputPorts...
Definition: outputPortGroup.h:34
DtVectorOutputPort * myDesiredAccelerationPort
Output Port Name: desired-acceleration Output Port Description: The desired acceleration of the entit...
Definition: rotaryWingTaskController.h:172
DtRotaryWingEntityStateRepository * myRotaryWingEntityState
Definition: rotaryWingTaskController.h:146
DtVectorOutputPort * myDesiredPositionPort
Output Port Name: desired-position Output Port Description: The desired position of the entity...
Definition: rotaryWingTaskController.h:160
virtual void updateTaskVisualizations()
Called to update task visualizations after every tick. Implemented by subclasses. ...
Definition: simComponent.h:443
virtual bool init() override
Calls setRadio()
DtOutputPortGroup * myGuidancePortGroup
Output Port Group Name: guidance Output Port Group Description: Group of input ports that define the ...
Definition: rotaryWingTaskController.h:154
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 void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
virtual bool createPorts()
Called by init. Derived classes should override this method to create all their input/output ports an...
The DtRotaryWingTaskController class creates the rotary-wing-control port group needed to control rot...
Definition: rotaryWingTaskController.h:31
DtAnalogOutputPort * myAccelerationSelectorPort
Output Port Name: acceleration-selector Output Port Description: Determines whether the desired-avvel...
Definition: rotaryWingTaskController.h:206
virtual bool createPortGroups()
Called by init. Derived classes should override this method to create all their input/output port gro...
DtAnalogOutputPort * myDesiredHeadingPort
Output Port Name: desired-heading Output Port Description: Output Port Range: -1. to 1. Output Group Parent: guidance.
Definition: rotaryWingTaskController.h:178
DtRotaryWingFlightPSR * myProcessState
Pointer to a process state repository used to store state data associated with this component...
Definition: rotaryWingTaskController.h:238
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:96
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
DtBooleanOutputPort * myPowerDownPort
Output Port Name: power-down Output Port Description: Determines whether the control values will all ...
Definition: rotaryWingTaskController.h:230
virtual void clearTask() override
If component is currently tasked, calls clearPendingSubtasks(), sets the tasked flag to false...
double myEstimatedTotLastCalcTime
used for tot calculation intervals
Definition: rotaryWingTaskController.h:248
DtAnalogOutputPort * myPositionSelectorPort
Output Port Name: position-selector Output Port Description: Determines whether the desired-position ...
Definition: rotaryWingTaskController.h:185
A locally simulated VRF object.
Definition: localObject.h:98
DtAnalogOutputPort * myAggressivenessPort
Output Port Name: aggressiveness Output Port Description: How aggressively the autopilot will move th...
Definition: rotaryWingTaskController.h:220