Skip to content

Commit 2ecc164

Browse files
committed
Save axle integrator status
1 parent 7f7dd99 commit 2ecc164

File tree

1 file changed

+4
-0
lines changed
  • Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/PowerTransmissions

1 file changed

+4
-0
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/PowerTransmissions/Axle.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,8 @@ public void Restore(BinaryReader inf)
677677
previousSlipSpeedMpS = inf.ReadSingle();
678678
AxleForceN = inf.ReadSingle();
679679
AxleSpeedMpS = inf.ReadSingle();
680+
NumOfSubstepsPS = inf.ReadInt32();
681+
integratorError = inf.ReadSingle();
680682
}
681683

682684
/// <summary>
@@ -689,6 +691,8 @@ public void Save(BinaryWriter outf)
689691
outf.Write(previousSlipSpeedMpS);
690692
outf.Write(AxleForceN);
691693
outf.Write(AxleSpeedMpS);
694+
outf.Write(NumOfSubstepsPS);
695+
outf.Write(integratorError);
692696
}
693697

694698
/// <summary>

0 commit comments

Comments
 (0)