mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
Add WBL85, EC160 pantograph types
This commit is contained in:
@@ -469,6 +469,13 @@ struct TBoilerType {
|
||||
//}
|
||||
};
|
||||
/*rodzaj odbieraka pradu*/
|
||||
enum TPantType
|
||||
{
|
||||
AKP_4E,
|
||||
DSAx,
|
||||
EC160_200,
|
||||
WBL85
|
||||
};
|
||||
struct TCurrentCollector {
|
||||
long CollectorsNo; //musi być tu, bo inaczej się kopie
|
||||
double MinH; double MaxH; //zakres ruchu pantografu, nigdzie nie używany
|
||||
|
||||
@@ -11341,6 +11341,17 @@ void TMoverParameters::LoadFIZ_PowerParamsDecode( TPowerParameters &Powerparamet
|
||||
auto &collectorparameters = Powerparameters.CollectorParameters;
|
||||
|
||||
collectorparameters = TCurrentCollector { 0, 0, 0, 0, 0, 0, false, 0, 0, 0, false, 0 };
|
||||
|
||||
std::string PantType = "";
|
||||
extract_value(PantType, "PantType", Line, "");
|
||||
if (PantType == "AKP_4E")
|
||||
collectorparameters.PantographType = TPantType::AKP_4E;
|
||||
if (PantType._Starts_with("DSA")) // zakladam ze wszystkie pantografy DSA sa takie same
|
||||
collectorparameters.PantographType = TPantType::DSAx;
|
||||
if (PantType == "EC160" || PantType == "EC200")
|
||||
collectorparameters.PantographType = TPantType::EC160_200;
|
||||
if (PantType == "WBL85")
|
||||
collectorparameters.PantographType = TPantType::WBL85;
|
||||
|
||||
extract_value( collectorparameters.CollectorsNo, "CollectorsNo", Line, "" );
|
||||
extract_value( collectorparameters.MinH, "MinH", Line, "" );
|
||||
|
||||
Reference in New Issue
Block a user