16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-20 06:49:19 +02:00

Fix for speed control unit for TRAXX

This commit is contained in:
Królik Uszasty
2019-10-27 00:05:43 +02:00
parent 3f8989726c
commit 572cb01b83
2 changed files with 2 additions and 1 deletions

View File

@@ -688,7 +688,7 @@ struct speed_control {
bool BrakeIntervention = false;
bool BrakeInterventionBraking = false;
bool BrakeInterventionUnbraking = false;
bool Standby = true;
bool Standby = false;
bool Parking = false;
double InitialPower = 1.0;
double FullPowerVelocity = -1;

View File

@@ -5554,6 +5554,7 @@ double TMoverParameters::TractionForce( double dt ) {
//tempomat
if (ScndCtrlPosNo == 4 && SpeedCtrlTypeTime)
{
SpeedCtrlUnit.IsActive = SpeedCtrlValue > 0;
switch (ScndCtrlPos) {
case 0:
NewSpeed = 0;