Avionics
Dropship Simulator
TempSensor.cpp
Go to the documentation of this file.
1 #include "../../Component.h"
2 
3 namespace Systems
4 {
5  void TempSensor::FrameMove(double fTime)
6  {
7  //double elapsed = (fTime - lastTimeProcessed) / 60 / 60;
8  lastTimeProcessed = fTime;
9 
10  // right now we just show what we read
11  // but sensor failures can cause erratic readings, delayed readings, no signal, erroneously high, erroneously low, etc...
13 
14  //serviceLifeRemaining -= elapsed * setState;
15  //temperature += fTime * setState;
16  }
17 }
These have to be in this order.
Definition: BaseComponent.h:12
double lastTimeProcessed
these don't get stored anywhere
Definition: Component.h:55
void FrameMove(double fTime) override
this is a generic unimplemented component framemove, eventually make a pure virtual function...
Definition: TempSensor.cpp:5