You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
822 B
46 lines
822 B
1 year ago
|
/**
|
||
|
* @file Zusi 3 Antrieb DLL Test
|
||
|
* @author Jonathan Pilborough / jonathanp
|
||
|
*/
|
||
|
|
||
|
#ifndef ANTRIEBMODEL_H
|
||
|
#define ANTRIEBMODEL_H
|
||
|
|
||
|
#include "antrieb.h"
|
||
|
|
||
|
class AntriebModel
|
||
|
{
|
||
|
public:
|
||
|
AntriebModel(int variant);
|
||
|
|
||
|
//Input
|
||
|
void Bedienung(AntriebsRenderModus antriebsRenderModus, ProtokollFst* prot, float sp);
|
||
|
|
||
|
void Berechnung(double dt, AntriebsRenderModus antriebsRenderModus, Mehrfachtraktionsdaten mehrfachtraktionsdaten);
|
||
|
|
||
|
void VorspanntraktionsdatenSetzen(float sp, float sollLeistungNormiert);
|
||
|
|
||
|
//Output
|
||
|
float LeseMaxAntriebskraft(float spAkt) const;
|
||
|
|
||
|
float LeseAntriebskraft() const;
|
||
|
|
||
|
float LeseFahrstufe() const;
|
||
|
|
||
|
private:
|
||
|
//Init
|
||
|
const int mVariant;
|
||
|
|
||
|
//State
|
||
|
bool mHauptschalterAus = false;
|
||
|
float mFahrstufe;
|
||
|
|
||
|
//Output
|
||
|
float mZugKraft;
|
||
|
|
||
|
//Const
|
||
|
int ZUGKRAFT_MAX = 150000;
|
||
|
int STUFEN = 40;
|
||
|
};
|
||
|
|
||
|
#endif
|