VR-Forces 4.8 Class Documentation
 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 
15 #include <vlpi/disEnums.h>
16 
17 class DtString;
18 class DtSimManager;
21 class DtAnalogInputPort;
22 
30 {
31 
32 public:
33 
37  DtVrfObject* owner,
38  DtSimManager* simManager,
39  DtComponentDescriptor* desc = 0,
40  DtReaderWriterRegistry* parentRegistry = 0);
41 
46 
49  virtual bool init();
50 
53  virtual const char* type() const;
54 
56  virtual void tick();
57 
61  static DtSimComponent * creator(const DtString& name,
62  DtVrfObject* owner,
63  DtSimManager* simManager,
64  DtComponentDescriptor* desc = 0,
65  DtReaderWriterRegistry* parentRegistry = 0);
66 
67 protected:
68 
70  virtual bool createPorts();
71 
73  virtual void calculateAndApplyNewMaximums();
74 
76  virtual double calculateFuelConsumption();
77 
79  virtual void useFuel(double fuelUsed);
80 
81 private:
82 
85 
88 
91 
92 
93 protected:
96 
99 
102 
105 
107  double myWeightFuel;
108 
111 
113 
115 
122 
127 
129 };
130 
double myThrustSpecificFuelConsumption
thrust specific fuel consumption in liters per second per kilonewton
Definition: rotaryWingEncumberedFlightActuator.h:104
#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
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
This repository holds all information that is common to all the forms of local rotary wing entities w...
Definition: rotaryWingEntityStateRepository.h:25
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:42
Definition: readerWriterRegistry.h:39
End User Description: DtActuator is the base class for all actuator model components.
Definition: actuatorComponent.h:48
DtAnalogInputPort * myWeightPayloadInputPort
Input Port Name: weight-payload Input Port Description: Weight of payload.
Definition: rotaryWingEncumberedFlightActuator.h:126
virtual void tick()
This gives the thread of control to the component.
virtual bool createPorts()
Called by init.
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
DtRotaryWingEncumberedFlightActuator alters the behavior of the rotary-wing flight model by constrain...
Definition: rotaryWingEncumberedFlightActuator.h:29
DtAnalogInputPort * myWeightFuelInputPort
PortsInput Port Name: weight-fuel Input Port Description: Weight of fuel (for own consumption)...
Definition: rotaryWingEncumberedFlightActuator.h:121
Contains class declarations for DtAnalogInputPort, DtAnalogOutputPort, and DtAnalogPortData.
Definition: analogIOPort.h:25
DtRotaryWingEntityStateRepository * pMyRotaryWingEntityState
Definition: rotaryWingEncumberedFlightActuator.h:114
double myWeightPayload
payload weight in kilograms
Definition: rotaryWingEncumberedFlightActuator.h:110
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
double myLastKnownFuelPercent
last known fuel percent
Definition: rotaryWingEncumberedFlightActuator.h:101
bool myApplyEncumberanceFlag
true if a new value is waiting to be applied.
Definition: rotaryWingEncumberedFlightActuator.h:95
DtRotaryWingEncumberedFlightActuatorDescriptor * pMyEncumberedFlightDescriptor
Definition: rotaryWingEncumberedFlightActuator.h:112
double myWeightFuel
fuel weight in kilograms
Definition: rotaryWingEncumberedFlightActuator.h:107
double myLastKnownFuelAmount
last known fuel amount
Definition: rotaryWingEncumberedFlightActuator.h:98
virtual const char * type() const =0
Returns a string identifies the class type of component.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)