16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 10:29:19 +02:00

ai direction change logic enhamcement, minor bug fixes

This commit is contained in:
tmj-fstate
2020-05-23 23:19:04 +02:00
parent 10dabd66c3
commit 679741f22f
13 changed files with 218 additions and 134 deletions

View File

@@ -1310,8 +1310,7 @@ double TMoverParameters::ComputeMovement(double dt, double dt1, const TTrackShap
compute_movement_( dt );
// security system
if (!DebugModeFlag)
SecuritySystemCheck(dt1);
SecuritySystemCheck(dt1);
return d;
};
@@ -2907,6 +2906,11 @@ void TMoverParameters::SecuritySystemCheck(double dt)
RadiostopSwitch(false);
// SecuritySystem.Status = 0; //deaktywacja czuwaka
}
// automatic reset in debug mode
if( DebugModeFlag ) {
SSReset();
}
}
// *************************************************************************************************
@@ -7132,6 +7136,7 @@ void TMoverParameters::CheckSpeedCtrl(double dt)
eimicSpeedCtrl = 1;
eimicSpeedCtrlIntegral = 0;
SpeedCtrlUnit.Parking = false;
SendCtrlToNext( "SpeedCtrlUnit.Parking", SpeedCtrlUnit.Parking, CabActive );
}
}