mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 00:49:19 +02:00
Add wiperList Default parameter (for default position)
This commit is contained in:
@@ -1387,6 +1387,7 @@ class TMoverParameters
|
|||||||
int FFEDListSize = 0;
|
int FFEDListSize = 0;
|
||||||
TWiperSchemeTable WiperList;
|
TWiperSchemeTable WiperList;
|
||||||
int WiperListSize;
|
int WiperListSize;
|
||||||
|
int WiperDefaultPos;
|
||||||
int modernWpierListSize;
|
int modernWpierListSize;
|
||||||
|
|
||||||
double Vadd = 1.0;
|
double Vadd = 1.0;
|
||||||
|
|||||||
@@ -11400,11 +11400,12 @@ void TMoverParameters::LoadFIZ_WiperList(std::string const &Input)
|
|||||||
{
|
{
|
||||||
extract_value(WiperListSize, "Size", Input, "");
|
extract_value(WiperListSize, "Size", Input, "");
|
||||||
extract_value(WiperAngle, "Angle", Input, "");
|
extract_value(WiperAngle, "Angle", Input, "");
|
||||||
|
extract_value(WiperDefaultPos, "Default", Input, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
void TMoverParameters::LoadFIZ_DimmerList(std::string const &Input)
|
void TMoverParameters::LoadFIZ_DimmerList(std::string const &Input)
|
||||||
{
|
{
|
||||||
extract_value(modernWpierListSize, "Size", Input, "");
|
//extract_value(modernWpierListSize, "Size", Input, "");
|
||||||
extract_value(modernDimmerCanCycle, "Cycle", Input, "");
|
extract_value(modernDimmerCanCycle, "Cycle", Input, "");
|
||||||
extract_value(modernDimmerDefaultPosition, "DefaultPos", Input, "");
|
extract_value(modernDimmerDefaultPosition, "DefaultPos", Input, "");
|
||||||
}
|
}
|
||||||
@@ -11806,6 +11807,10 @@ bool TMoverParameters::CheckLocomotiveParameters(bool ReadyFlag, int Dir)
|
|||||||
|
|
||||||
if( LightsPosNo > 0 )
|
if( LightsPosNo > 0 )
|
||||||
LightsPos = LightsDefPos;
|
LightsPos = LightsDefPos;
|
||||||
|
|
||||||
|
// set default wiper switch position
|
||||||
|
wiperSwitchPos = WiperDefaultPos;
|
||||||
|
|
||||||
if (CompressorListPosNo > 0)
|
if (CompressorListPosNo > 0)
|
||||||
CompressorListPos = CompressorListDefPos;
|
CompressorListPos = CompressorListDefPos;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user