Configurable velocity when mirrors close

This commit is contained in:
Królik Uszasty
2020-10-15 21:16:05 +02:00
parent b38f39afc2
commit 0db644a9b1
3 changed files with 4 additions and 1 deletions

View File

@@ -3899,7 +3899,7 @@ bool TDynamicObject::Update(double dt, double dt1)
}
// mirrors
if( MoverParameters->Vel > 5.0 ) {
if( MoverParameters->Vel > MoverParameters->MirrorVelClose ) {
// automatically fold mirrors when above velocity threshold
if( dMirrorMoveL > 0.0 ) {
dMirrorMoveL = std::max(

View File

@@ -1312,6 +1312,7 @@ public:
int PlatformOpenMethod { 2 }; /*sposob animacji stopnia*/
#endif
double MirrorMaxShift { 90.0 };
double MirrorVelClose { 5.0 };
bool ScndS = false; /*Czy jest bocznikowanie na szeregowej*/
bool SpeedCtrl = false; /*czy jest tempomat*/
speed_control SpeedCtrlUnit; /*parametry tempomatu*/

View File

@@ -9871,6 +9871,8 @@ void TMoverParameters::LoadFIZ_Doors( std::string const &line ) {
if( platformopenmethod == "Shift" ) { Doors.step_type = 1; } // przesuw
extract_value( MirrorMaxShift, "MirrorMaxShift", line, "" );
extract_value( MirrorVelClose, "MirrorVelClose", line, "");
}
void TMoverParameters::LoadFIZ_BuffCoupl( std::string const &line, int const Index ) {