Avionics
Dropship Simulator
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 
25 
27  //serviceLifeRemaining -= fTime / 60.0 / 60.0*setState;
28  //temperature += fTime * setState;
29 
30 
32 
34  }
35 }
void FrameMove(double fTime) override
this is a generic unimplemented component framemove, eventually make a pure virtual function...
Definition: Starter.cpp:5
These have to be in this order.
Definition: BaseComponent.h:12
void PropogateLoad(System system)
Definition: Component.cpp:52
double lastTimeProcessed
these don&#39;t get stored anywhere
Definition: Component.h:55