Avionics
Dropship Simulator
Main Page
Related Pages
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
h
i
m
n
o
p
r
s
t
u
w
Variables
Enumerations
+
Enumerator
a
b
c
d
e
f
h
i
m
n
o
p
r
s
u
w
+
Classes
Class List
Class Hierarchy
+
Class Members
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
~
+
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
+
Enumerator
a
b
c
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Related Functions
+
Files
File List
+
File Members
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
Functions
Variables
Enumerations
Enumerator
+
Macros
b
c
d
e
h
i
n
p
s
w
x
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Starter.cpp
Go to the documentation of this file.
1
#include "../../Component.h"
2
3
namespace
Systems
4
{
5
void
Starter::FrameMove
(
double
fTime)
6
{
7
// double elapsed = (fTime - lastTimeProcessed) / 60 / 60;
8
lastTimeProcessed
= fTime;
9
10
// evaluate supply voltage
11
// float supplyVoltage = 96.0f; // not hooked up yet EvaluateDependency(System::Electrical);
12
//if (supplyVoltage >= pickupPressure) // has a signal
13
//{
14
// currentState = 1.0f;
15
//}
16
//else if (supplyVoltage < dropoutPressure)
17
//{
18
// currentState = 0.0f;
19
//}
20
24
currentState
=
setState
;
25
27
//serviceLifeRemaining -= fTime / 60.0 / 60.0*setState;
28
//temperature += fTime * setState;
29
30
31
currentLoad
=
loadDraw
*
setState
;
32
33
PropogateLoad
(
System::Electrical
);
34
}
35
}
Systems::Component::currentState
float currentState
Definition:
Component.h:52
Systems::Component::setState
float setState
Definition:
Component.h:51
Systems::Starter::FrameMove
void FrameMove(double fTime) override
this is a generic unimplemented component framemove, eventually make a pure virtual function...
Definition:
Starter.cpp:5
Systems
These have to be in this order.
Definition:
BaseComponent.h:12
Systems::Component::currentLoad
float currentLoad
Definition:
Component.h:56
Systems::Component::PropogateLoad
void PropogateLoad(System system)
Definition:
Component.cpp:52
Systems::Component::loadDraw
float loadDraw
Definition:
Component.h:39
Systems::Component::lastTimeProcessed
double lastTimeProcessed
these don't get stored anywhere
Definition:
Component.h:55
Systems::Electrical
Definition:
Enumerations.h:13
Systems
Propulsion
Starter.cpp
Generated on Sat Feb 13 2021 09:30:43 for Avionics by
1.8.14