VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rotaryWingEncumberedFlightActuator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2016 VT MAK, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
16 #include <vlpi/disEnums.h>
17 
18 class DtString;
22 class DtAnalogInputPort;
23 
31 {
32 
33 public:
34 
38  DtLocalObject* owner,
39  DtSimulationServices* simManager,
40  DtComponentDescriptor* desc = 0,
41  DtReaderWriterRegistry* parentRegistry = 0);
42 
47 
50  virtual bool init();
51 
54  virtual const char* type() const;
55 
57  virtual void tick();
58 
62  static DtSimComponent * creator(const DtString& name,
63  DtLocalObject* owner,
64  DtSimulationServices* simManager,
65  DtComponentDescriptor* desc = 0,
66  DtReaderWriterRegistry* parentRegistry = 0);
67 
68 protected:
69 
71  virtual bool createPorts();
72 
74  virtual void calculateAndApplyNewMaximums();
75 
77  virtual double calculateFuelConsumption();
78 
80  virtual void useFuel(double fuelUsed);
81 
82 private:
83 
86 
89 
92 
93 
94 protected:
97 
100 
103 
106 
108  double myWeightFuel;
109 
112 
114 
116 
123 
128 
130 
132 };
133 
double myThrustSpecificFuelConsumption
thrust specific fuel consumption in liters per second per kilonewton
Definition: rotaryWingEncumberedFlightActuator.h:105
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtRotaryWingEncumberedFlightActuatorDescriptor is used by DtRotaryWingEncumberedFlightActuator.
Definition: rotaryWingEncumberedFlightActuatorDescriptor.h:19
This repository holds all information that is common to all the forms of local rotary wing entities w...
Definition: rotaryWingEntityStateRepository.h:27
const DtActuatorComponent & operator=(const DtActuatorComponent &orig)
assignment operator
virtual bool init()
Overridden to cache a pointer to the entity&#39;s radio in this class.
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
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 DtObjectType 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
DtAnalogInputPort * myWeightPayloadInputPort
Input Port Name: weight-payload Input Port Description: Weight of payload. Input Port Default Value: ...
Definition: rotaryWingEncumberedFlightActuator.h:127
DtPlatformLocalObjectFacade myPlatformLocalObjectFacade
Definition: rotaryWingEncumberedFlightActuator.h:131
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...
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:90
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
DtRotaryWingEncumberedFlightActuator alters the behavior of the rotary-wing flight model by constrain...
Definition: rotaryWingEncumberedFlightActuator.h:30
DtAnalogInputPort * myWeightFuelInputPort
PortsInput Port Name: weight-fuel Input Port Description: Weight of fuel (for own consumption)...
Definition: rotaryWingEncumberedFlightActuator.h:122
Contains class declarations for DtAnalogInputPort, DtAnalogOutputPort, and DtAnalogPortData.
Definition: analogIOPort.h:25
DtRotaryWingEntityStateRepository * pMyRotaryWingEntityState
Definition: rotaryWingEncumberedFlightActuator.h:115
double myWeightPayload
payload weight in kilograms
Definition: rotaryWingEncumberedFlightActuator.h:111
double myLastKnownFuelPercent
last known fuel percent
Definition: rotaryWingEncumberedFlightActuator.h:102
bool myApplyEncumberanceFlag
true if a new value is waiting to be applied.
Definition: rotaryWingEncumberedFlightActuator.h:96
DtRotaryWingEncumberedFlightActuatorDescriptor * pMyEncumberedFlightDescriptor
Definition: rotaryWingEncumberedFlightActuator.h:113
double myWeightFuel
fuel weight in kilograms
Definition: rotaryWingEncumberedFlightActuator.h:108
double myLastKnownFuelAmount
last known fuel amount
Definition: rotaryWingEncumberedFlightActuator.h:99
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. 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

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)