mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
Configurable velocity when mirrors close
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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*/
|
||||
|
||||
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user