VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rotaryWingPilotController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1999-2003 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
15 
16 #pragma once
17 
21 #include <matrix/LibMatrix.h>
22 
23 class DtString;
28 class DtOutputPortGroup;
29 class DtInputPortGroup;
30 class DtVectorInputPort;
31 class DtAnalogInputPort;
32 class DtBooleanInputPort;
33 
39 {
40 
41 public:
42 
46  DtLocalObject* owner,
47  DtSimulationServices* simManager,
48  DtComponentDescriptor* desc = 0,
49  DtReaderWriterRegistry* parentRegistry = 0);
50 
52  virtual ~DtRotaryWingPilotController() override;
53 
55  virtual bool init() override;
56 
58  virtual void tick() override;
59 
62  virtual const char* type() const override;
63 
66  virtual bool createGuidancePortGroup();
67  virtual bool createDesiredPositionPort();
68  virtual bool createContinueMovementPort();
69  virtual bool createDesiredVelocityPort();
70  virtual bool createDesiredAccelerationPort();
71  virtual bool createDesiredHeadingPort();
72  virtual bool createPositionSelectorPort();
73  virtual bool createVelocitySelectorPort();
74  virtual bool createAccelerationSelectorPort();
75  virtual bool createHeadingSelectorPort();
76  virtual bool createPowerDownPort();
78 
81  virtual bool createAggressivenessPort();
82  virtual DtAnalogInputPort *aggressivenessPort();
84 
85 
88  virtual DtVectorInputPort *desiredPositionPort();
89  virtual DtBooleanInputPort *continueMovementPort();
90  virtual DtVectorInputPort *desiredVelocityPort();
91  virtual DtVectorInputPort *desiredAccelerationPort();
92  virtual DtAnalogInputPort *desiredHeadingPort();
93  virtual DtAnalogInputPort *positionSelectorPort();
94  virtual DtAnalogInputPort *velocitySelectorPort();
95  virtual DtAnalogInputPort *accelerationSelectorPort();
96  virtual DtAnalogInputPort *headingSelectorPort();
97  virtual DtBooleanInputPort* powerDownPort();
99 
103  virtual bool createRotaryWingControlPortGroup();
104  virtual bool createThrottlePort();
105  virtual bool createCollectivePort();
106  virtual bool createCyclicPort();
107  virtual bool createPedalPort();
109 
110  virtual DtConstrainedAnalogOutputPort * throttlePort();
111  virtual DtConstrainedAnalogOutputPort * collectivePort();
112  virtual DtConstrainedDualAxisAnalogOutputPort * cyclicPort();
113  virtual DtConstrainedAnalogOutputPort * pedalPort();
114 
118  static DtSimComponent * creator(const DtString& name,
119  DtLocalObject* owner,
120  DtSimulationServices* simManager,
121  DtComponentDescriptor* desc = 0,
122  DtReaderWriterRegistry* parentRegistry = 0);
123 
124 protected:
125 
127  virtual bool createPortGroups() override;
128 
130  virtual bool createPorts() override;
131 
133  virtual void setStateFromPorts();
134 
135 protected:
136 
139 
142  orig);
143 
147 
148 
149 protected:
150 
152 
154 
155 
159 
166 
173 
180 
187 
192 
198 
204 
210 
216 
223 
230 
237 
244 
251 
258 
268 
270 
273 };
DtRotaryWingEntityStateRepository * myRotaryWingEntityState
Definition: rotaryWingPilotController.h:151
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtConstrainedAnalogOutputPort * myThrottlePort
Output Port Name: throttle Output Port Description: The position of the throttle control. Output Port Range: 0. to 1. Output Port Default Value: Output Group Parent: rotary-wing-control.
Definition: rotaryWingPilotController.h:165
DtAnalogInputPort * myDesiredHeadingPort
Input Port Name: desired-heading Input Port Description: Input Port Range: -1. to 1...
Definition: rotaryWingPilotController.h:215
DtAnalogInputPort * myHeadingSelectorPort
Input Port Name: heading-selector Input Port Description: Determines whether the desired-heading port...
Definition: rotaryWingPilotController.h:250
This repository holds all information that is common to all the forms of local rotary wing entities w...
Definition: rotaryWingEntityStateRepository.h:27
Instances of DtConstrainedDualAxisAnalogOutputPort are output ports through which data producers can ...
Definition: constrainedDualAxisAnalogIOPort.h:61
const DtControllerComponent & operator=(const DtControllerComponent &orig)
assignment operator
DtVectorInputPort * myDesiredPositionPort
Input Port Name: desired-position Input Port Description: The desired position of the entity...
Definition: rotaryWingPilotController.h:197
DtVectorInputPort * myDesiredAccelerationPort
Input Port Name: desired-acceleration Input Port Description: The desired acceleration of the entity ...
Definition: rotaryWingPilotController.h:209
DtAnalogInputPort * myAggressivenessPort
Input Port Name: aggressiveness Input Port Description: How aggressively the autopilot will move the ...
Definition: rotaryWingPilotController.h:257
DtConstrainedAnalogOutputPort * myPedalPort
Output Port Name: pedal Output Port Description: The position of the pedal controls. Output Port Range: -1. to 1. Output Port Default Value: Output Group Parent: rotary-wing-control.
Definition: rotaryWingPilotController.h:186
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
virtual const char * type() const override=0
This returns a string from compTypes.h, and identifies the type of component.
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
DtAnalogInputPort * myPositionSelectorPort
Input Port Name: position-selector Input Port Description: Determines whether the desired-position po...
Definition: rotaryWingPilotController.h:222
DtConstrainedAnalogOutputPort is a version of DtAnalogOutputPort which will constrain any outgoing va...
Definition: constrainedAnalogIOPort.h:57
Contains class declarations for DtVectorInputPort, DtVectorOutputPort, and DtVectorPortData.
Definition: vectorIOPort.h:27
virtual bool init() override
Calls setRadio()
DtConstrainedAnalogOutputPort * myCollectivePort
Output Port Name: collective Output Port Description: The position of the collective control...
Definition: rotaryWingPilotController.h:172
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation frame...
Contains class declarations for DtBooleanInputPort, DtBooleanOutputPort, and DtBooleanPortData.
Definition: boolIOPort.h:25
DtAnalogInputPort * myAccelerationSelectorPort
Input Port Name: acceleration-selector Input Port Description: Determines whether the desired-acceler...
Definition: rotaryWingPilotController.h:243
DtAnalogInputPort * myVelocitySelectorPort
Input Port Name: velocity-selector Input Port Description: Determines whether the desired-velocity po...
Definition: rotaryWingPilotController.h:236
virtual bool createPorts()
Called by init. Derived classes should override this method to create all their input/output ports an...
End User Description: DtControllerComponent is the base class for all controllers components...
Definition: controllerComponent.h:31
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:97
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
DtVector myNormalizedBodyVelocity
Definition: rotaryWingPilotController.h:271
DtBooleanInputPort * myPowerDownPort
Input Port Name: power-down Input Port Description: Determines whether the control values will all be...
Definition: rotaryWingPilotController.h:267
DtInputPortGroup is a data port group of a data consumer. It may contain any number of DtInputPorts a...
Definition: inputPortGroup.h:35
Contains class declarations for DtAnalogInputPort, DtAnalogOutputPort, and DtAnalogPortData.
Definition: analogIOPort.h:25
The DtRotaryWingPilotController class creates the rotary-wing-control port group needed to control ro...
Definition: rotaryWingPilotController.h:38
DtPlatformLocalObjectFacade myPlatformLocalObjectFacade
Definition: rotaryWingPilotController.h:272
DtBooleanInputPort * myContinueMovementPort
Input Port Name: continue-movement Input Port Description: Indicates that when flying to a position...
Definition: rotaryWingPilotController.h:229
DtInputPortGroup * myGuidancePortGroup
Input Port Group Name: guidance Input Port Group Description: Group of input ports that define the de...
Definition: rotaryWingPilotController.h:191
DtOutputPortGroup * myRotaryWingControlPortGroup
Output Port Group Name: rotary-wing-control Output Port Group Description:
Definition: rotaryWingPilotController.h:158
DtVectorInputPort * myDesiredVelocityPort
Input Port Name: desired-velocity Input Port Description: The desired velocity of the entity Input Po...
Definition: rotaryWingPilotController.h:203
DtConstrainedDualAxisAnalogOutputPort * myCyclicPort
Output Port Name: cyclic Output Port Description: The position of the collective control in X and Y...
Definition: rotaryWingPilotController.h:179
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)