You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trace.TraceInformation("Rigid Wheelbase of CarID {0} set to {1} for number of axles {2}",CarID,FormatStrings.FormatVeryShortDistanceDisplay(RigidWheelBaseM,IsMetric),Axles);
850
+
}
851
+
847
852
}
848
853
elseif(Bogies==2)
849
854
{
@@ -862,9 +867,15 @@ public virtual void Update(float elapsedClockSeconds)
862
867
{
863
868
RigidWheelBaseM=3.6576f;// Assume a standard 6 wheel bogie (3 axle) wagon - wheel base - 12' 2" (3.6576m)
Trace.TraceInformation("Rigid Wheelbase of CarID {0} set to {1} for number of axles {2}",CarID,FormatStrings.FormatVeryShortDistanceDisplay(RigidWheelBaseM,IsMetric),BogieSize);
874
+
}
875
+
865
876
}
866
877
}
867
-
if(WagonType==WagonTypes.Engine)// if car is a locomotive and either a diesel or electric then determine wheelbase
878
+
elseif(WagonType==WagonTypes.Engine)// if car is a locomotive and either a diesel or electric then determine wheelbase
868
879
{
869
880
if(EngineType!=EngineTypes.Steam)// Assume that it is a diesel or electric locomotive
870
881
{
@@ -876,6 +887,11 @@ public virtual void Update(float elapsedClockSeconds)
876
887
{
877
888
RigidWheelBaseM=3.5052f;// Assume a standard 6 wheel bogie (3 axle) locomotive - wheel base - 11' 6" (3.5052m)
Trace.TraceInformation("Rigid Wheelbase of CarID {0} set to {1} for number of axles {2}",CarID,FormatStrings.FormatVeryShortDistanceDisplay(RigidWheelBaseM,IsMetric),BogieSize);
894
+
}
879
895
}
880
896
else// assume steam locomotive
881
897
{
@@ -889,6 +905,11 @@ public virtual void Update(float elapsedClockSeconds)
889
905
// Wheelbase = 1.25 x (Loco Drive Axles - 1.0) x Drive Wheel diameter
Trace.TraceInformation("Rigid Wheelbase of CarID {0} set to {1} for number of axles {2}",CarID,FormatStrings.FormatVeryShortDistanceDisplay(RigidWheelBaseM,IsMetric),LocoNumDrvAxles);
0 commit comments