Avionics
Dropship Simulator
Igniter.cpp
Go to the documentation of this file.
1
#include "../../Component.h"
2
3
namespace
Systems
4
{
5
void
Igniter::FrameMove
(
double
fTime)
6
{
7
// double elapsed = (fTime - lastTimeProcessed);
8
9
// evaluate supply voltage
10
// float supplyVoltage = 96.0f; // not hooked up yet EvaluateDependency(System::Electrical);
11
//if (supplyVoltage >= pickupPressure) // has a signal
12
//{
13
// currentState = 1.0f;
14
//}
15
//else if (supplyVoltage < dropoutPressure)
16
//{
17
// currentState = 0.0f;
18
//}
19
20
// my initial idea was to set the frequency of currentState based on damage/operational life, faults
21
currentState
=
setState
;
22
24
//serviceLifeRemaining -= fTime / 60.0 / 60.0*setState;
25
//temperature += fTime * setState;
26
27
28
currentLoad
=
loadDraw
*
setState
;
29
30
PropogateLoad
(
System::Electrical
);
31
}
32
}
Systems::Component::currentState
float currentState
Definition:
Component.h:52
Systems::Igniter::FrameMove
void FrameMove(double fTime) override
this is a generic unimplemented component framemove, eventually make a pure virtual function...
Definition:
Igniter.cpp:5
Systems::Component::setState
float setState
Definition:
Component.h:51
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::Electrical
Definition:
Enumerations.h:13
Systems
Propulsion
Igniter.cpp
Generated on Sat Feb 13 2021 09:30:43 for Avionics by
1.8.14