Avionics
Dropship Simulator
Connector.cpp
Go to the documentation of this file.
1
#include "
Connector.h
"
2
3
namespace
Systems
4
{
5
void
Connector::FrameMove
(
double
fTime,
Logger
*
logger
)
6
{
7
// all we do is flow from dependency (component or connector) to this one
8
capacityPressureEtc
=
dependsOn
->
capacityPressureEtc
;
9
11
/*if (propogatedLoad != dependsOn->propogatedLoad)
12
{
13
char msg[199];
14
sprintf_s(msg, 199, "Propogating load from connector %s to dependency %s: %f (was %f)", guidStr.c_str(), dependsOn->guidStr.c_str(), propogatedLoad, dependsOn->propogatedLoad);
15
logger->Log(msg);
16
}*/
17
dependsOn
->
propogatedLoad
=
propogatedLoad
;
18
19
// analyze fault and potentially leak, interrupt, etc
20
23
}
24
}
Systems::BaseComponent::propogatedLoad
float propogatedLoad
propogated demand
Definition:
BaseComponent.h:26
Logger
Definition:
Logger.h:5
Systems
These have to be in this order.
Definition:
BaseComponent.h:12
Systems::Connector::FrameMove
void FrameMove(double fTime, Logger *logger)
Definition:
Connector.cpp:5
logger
Logger logger
Definition:
Avionics.cpp:17
Systems::BaseComponent::capacityPressureEtc
float capacityPressureEtc
propogated supply
Definition:
BaseComponent.h:24
Connector.h
Systems::Connector::dependsOn
BaseComponent * dependsOn
Definition:
Connector.h:12
Connector.cpp
Generated on Sat Feb 13 2021 09:30:41 for Avionics by
1.8.14