mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 16:19:19 +02:00
Configurable velocity when mirrors close
This commit is contained in:
committed by
tmj-fstate
parent
b94e537a8b
commit
954b908890
@@ -3899,7 +3899,7 @@ bool TDynamicObject::Update(double dt, double dt1)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// mirrors
|
// mirrors
|
||||||
if( MoverParameters->Vel > 5.0 ) {
|
if( MoverParameters->Vel > MoverParameters->MirrorVelClose ) {
|
||||||
// automatically fold mirrors when above velocity threshold
|
// automatically fold mirrors when above velocity threshold
|
||||||
if( dMirrorMoveL > 0.0 ) {
|
if( dMirrorMoveL > 0.0 ) {
|
||||||
dMirrorMoveL = std::max(
|
dMirrorMoveL = std::max(
|
||||||
|
|||||||
@@ -1312,6 +1312,7 @@ public:
|
|||||||
int PlatformOpenMethod { 2 }; /*sposob animacji stopnia*/
|
int PlatformOpenMethod { 2 }; /*sposob animacji stopnia*/
|
||||||
#endif
|
#endif
|
||||||
double MirrorMaxShift { 90.0 };
|
double MirrorMaxShift { 90.0 };
|
||||||
|
double MirrorVelClose { 5.0 };
|
||||||
bool ScndS = false; /*Czy jest bocznikowanie na szeregowej*/
|
bool ScndS = false; /*Czy jest bocznikowanie na szeregowej*/
|
||||||
bool SpeedCtrl = false; /*czy jest tempomat*/
|
bool SpeedCtrl = false; /*czy jest tempomat*/
|
||||||
speed_control SpeedCtrlUnit; /*parametry tempomatu*/
|
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
|
if( platformopenmethod == "Shift" ) { Doors.step_type = 1; } // przesuw
|
||||||
|
|
||||||
extract_value( MirrorMaxShift, "MirrorMaxShift", line, "" );
|
extract_value( MirrorMaxShift, "MirrorMaxShift", line, "" );
|
||||||
|
extract_value( MirrorVelClose, "MirrorVelClose", line, "");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void TMoverParameters::LoadFIZ_BuffCoupl( std::string const &line, int const Index ) {
|
void TMoverParameters::LoadFIZ_BuffCoupl( std::string const &line, int const Index ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user