Avionics
Dropship Simulator
Systems::Battery Class Reference

#include <Component.h>

Inheritance diagram for Systems::Battery:
[legend]
Collaboration diagram for Systems::Battery:
[legend]

Public Member Functions

 Battery (Logger *prmLogger)
 
void FrameMove (double fTime) override
 this is a generic unimplemented component framemove, eventually make a pure virtual function? More...
 
- Public Member Functions inherited from Systems::Component
 Component (Logger *prmLogger)
 
virtual ~Component ()
 
float EvaluateDependency (System system)
 
void PropogateLoad (System system)
 

Additional Inherited Members

- Public Attributes inherited from Systems::Component
GUID attachedTo
 
ComponentattachedToComponent = nullptr
 
std::string name
 
std::vector< Dependencydependencies
 
float averageServiceLife = 0.0f
 Average service life in hours. More...
 
float serviceLifeCycleHit = 0.0f
 Power-on service life cycle hit. More...
 
float weight = 0.0f
 
float cost = 0.0f
 
float pickupPressure = 0.0f
 Minimum pressure/voltage to activate. More...
 
float dropoutPressure = 0.0f
 Minimum pressure/voltage to keep active. More...
 
float maxPressure = 0.0f
 
float loadDraw = 0.0f
 
float minTemp = 0.0f
 
float maxTemp = 0.0f
 
float maxCapacity = 0.0f
 
std::string make
 
std::string model
 
std::string description
 
float temperature = 0.0f
 componentInfo More...
 
float serviceLifeRemaining = 0.0f
 
float setState = -999.0f
 
float currentState = -999.0f
 
double lastTimeProcessed = 0
 these don't get stored anywhere More...
 
float currentLoad = 0
 
- Public Attributes inherited from Systems::BaseComponent
GUID guid
 
std::string guidStr
 
System system
 
D3DXVECTOR3 location
 
float capacityPressureEtc
 propogated supply More...
 
float propogatedLoad
 propogated demand More...
 
int hpPhysical
 
int hpEnergy
 
float hpPhysicalRemaining
 
float hpEnergyRemaining
 
Fault fault = Fault::NoSignal
 
- Protected Attributes inherited from Systems::Component
Loggerlogger = nullptr
 

Detailed Description

battery has currentCapacity (currentState?) in amphours, maxCapacity (for recharging)

See also
http://www.electricautosports.com/node/445

Definition at line 114 of file Component.h.

Constructor & Destructor Documentation

◆ Battery()

Systems::Battery::Battery ( Logger prmLogger)
inline

Definition at line 117 of file Component.h.

Member Function Documentation

◆ FrameMove()

void Systems::Battery::FrameMove ( double  fTime)
overridevirtual

this is a generic unimplemented component framemove, eventually make a pure virtual function?

RE: capacityPressureEtc - capacity is a really bad name because the battery IS capacity and is reflected in currentState/setState since we shouldn't be reading capacity directly (need quantity sensor) we should be using setState to reflect voltage

10A load, 6 hours to charge at loadDraw of 10

update currentState if DATA connection is OK (could also be done with a quantity sensor attached) we could get voltage downstream off the battery direct bus, we could get amperage there too but we want to show charge/discharge?
temp would be on the battery itself

this is to expose it on the bus methods... for a bus bar this makes sense because currentState is unused...

Reimplemented from Systems::Component.

Definition at line 5 of file Battery.cpp.

Here is the call graph for this function:

The documentation for this class was generated from the following files: