@@ -1072,25 +1072,34 @@ void TextPageForceInfo(TableData table)
10721072 {
10731073 if ( mstsLocomotive . AdvancedAdhesionModel )
10741074 {
1075-
1076-
10771075 TableAddLine ( table , Viewer . Catalog . GetString ( "(Advanced adhesion model)" ) ) ;
1078- TableAddLabelValue ( table , Viewer . Catalog . GetString ( "Wheel slip" ) , "{0:F0}% ({1:F0}%/{2})" , mstsLocomotive . LocomotiveAxles . SlipSpeedPercent , mstsLocomotive . LocomotiveAxles . SlipDerivationPercentpS , FormatStrings . s ) ;
1079- TableAddLabelValue ( table , Viewer . Catalog . GetString ( "Conditions" ) , "{0:F0}%" , mstsLocomotive . AdhesionConditions * 100.0f ) ;
1080- TableAddLabelValue ( table , Viewer . Catalog . GetString ( "Axle drive force" ) , "{0} ({1})" , FormatStrings . FormatForce ( mstsLocomotive . TractiveForceN , mstsLocomotive . IsMetric ) ,
1081- FormatStrings . FormatPower ( mstsLocomotive . TractiveForceN * mstsLocomotive . AbsTractionSpeedMpS , mstsLocomotive . IsMetric , false , false ) ) ;
1082- TableAddLabelValue ( table , Viewer . Catalog . GetString ( "Axle brake force" ) , "{0}" , FormatStrings . FormatForce ( mstsLocomotive . BrakeRetardForceN , mstsLocomotive . IsMetric ) ) ;
1083- TableAddLabelValue ( table , Viewer . Catalog . GetString ( "Number of substeps" ) , "{0:F0}" , mstsLocomotive . LocomotiveAxles . NumOfSubstepsPS ) ;
1084- TableAddLabelValue ( table , Viewer . Catalog . GetString ( "Axle out force" ) , "{0} ({1})" ,
1085- FormatStrings . FormatForce ( mstsLocomotive . LocomotiveAxles . AxleForceN , mstsLocomotive . IsMetric ) ,
1086- FormatStrings . FormatPower ( mstsLocomotive . LocomotiveAxles . AxleForceN * mstsLocomotive . AbsTractionSpeedMpS , mstsLocomotive . IsMetric , false , false ) ) ;
1087- TableAddLabelValue ( table , Viewer . Catalog . GetString ( "Comp Axle out force" ) , "{0} ({1})" ,
1088- FormatStrings . FormatForce ( mstsLocomotive . LocomotiveAxles . CompensatedForceN , mstsLocomotive . IsMetric ) ,
1089- FormatStrings . FormatPower ( mstsLocomotive . LocomotiveAxles . CompensatedForceN * mstsLocomotive . AbsTractionSpeedMpS , mstsLocomotive . IsMetric , false , false ) ) ;
1090- TableAddLabelValue ( table , Viewer . Catalog . GetString ( "Wheel Speed" ) , "{0} ({1})" ,
1091- FormatStrings . FormatSpeedDisplay ( ( HUDEngineType == TrainCar . EngineTypes . Steam && ( HUDSteamEngineType == TrainCar . SteamEngineTypes . Compound || HUDSteamEngineType == TrainCar . SteamEngineTypes . Simple || HUDSteamEngineType == TrainCar . SteamEngineTypes . Unknown ) ) ? mstsLocomotive . WheelSpeedSlipMpS : mstsLocomotive . AbsWheelSpeedMpS , mstsLocomotive . IsMetric ) ,
1092- FormatStrings . FormatSpeedDisplay ( mstsLocomotive . LocomotiveAxles . SlipSpeedMpS , mstsLocomotive . IsMetric )
1093- ) ;
1076+ int row0 = table . CurrentRow ;
1077+ TableSetCell ( table , table . CurrentRow ++ , table . CurrentLabelColumn , Viewer . Catalog . GetString ( "Wheel slip" ) ) ;
1078+ TableSetCell ( table , table . CurrentRow ++ , table . CurrentLabelColumn , Viewer . Catalog . GetString ( "Conditions" ) ) ;
1079+ TableSetCell ( table , table . CurrentRow ++ , table . CurrentLabelColumn , Viewer . Catalog . GetString ( "Axle drive force" ) ) ;
1080+ TableSetCell ( table , table . CurrentRow ++ , table . CurrentLabelColumn , Viewer . Catalog . GetString ( "Axle brake force" ) ) ;
1081+ TableSetCell ( table , table . CurrentRow ++ , table . CurrentLabelColumn , Viewer . Catalog . GetString ( "Number of substeps" ) ) ;
1082+ TableSetCell ( table , table . CurrentRow ++ , table . CurrentLabelColumn , Viewer . Catalog . GetString ( "Axle out force" ) ) ;
1083+ TableSetCell ( table , table . CurrentRow ++ , table . CurrentLabelColumn , Viewer . Catalog . GetString ( "Comp Axle out force" ) ) ;
1084+ TableSetCell ( table , table . CurrentRow ++ , table . CurrentLabelColumn , Viewer . Catalog . GetString ( "Wheel speed" ) ) ;
1085+ for ( int i = 0 ; i < mstsLocomotive . LocomotiveAxles . Count ; i ++ )
1086+ {
1087+ table . CurrentRow = row0 ;
1088+ var axle = mstsLocomotive . LocomotiveAxles [ i ] ;
1089+ TableSetCell ( table , table . CurrentRow ++ , table . CurrentValueColumn + 2 * i , "{0:F0}% ({1:F0}%/{2})" , axle . SlipSpeedPercent , axle . SlipDerivationPercentpS , FormatStrings . s ) ;
1090+ TableSetCell ( table , table . CurrentRow ++ , table . CurrentValueColumn + 2 * i , "{0:F0}%" , mstsLocomotive . AdhesionConditions * 100.0f ) ;
1091+ TableSetCell ( table , table . CurrentRow ++ , table . CurrentValueColumn + 2 * i , "{0} ({1})" , FormatStrings . FormatForce ( axle . DriveForceN , mstsLocomotive . IsMetric ) ,
1092+ FormatStrings . FormatPower ( axle . DriveForceN * mstsLocomotive . AbsTractionSpeedMpS , mstsLocomotive . IsMetric , false , false ) ) ;
1093+ TableSetCell ( table , table . CurrentRow ++ , table . CurrentValueColumn + 2 * i , "{0}" , FormatStrings . FormatForce ( axle . BrakeRetardForceN , mstsLocomotive . IsMetric ) ) ;
1094+ TableSetCell ( table , table . CurrentRow ++ , table . CurrentValueColumn + 2 * i , "{0:F0}" , axle . NumOfSubstepsPS ) ;
1095+ TableSetCell ( table , table . CurrentRow ++ , table . CurrentValueColumn + 2 * i , "{0} ({1})" ,
1096+ FormatStrings . FormatForce ( axle . AxleForceN , mstsLocomotive . IsMetric ) ,
1097+ FormatStrings . FormatPower ( axle . AxleForceN * mstsLocomotive . AbsTractionSpeedMpS , mstsLocomotive . IsMetric , false , false ) ) ;
1098+ TableSetCell ( table , table . CurrentRow ++ , table . CurrentValueColumn + 2 * i , "{0} ({1})" ,
1099+ FormatStrings . FormatForce ( axle . CompensatedAxleForceN , mstsLocomotive . IsMetric ) ,
1100+ FormatStrings . FormatPower ( axle . CompensatedAxleForceN * mstsLocomotive . AbsTractionSpeedMpS , mstsLocomotive . IsMetric , false , false ) ) ;
1101+ TableSetCell ( table , table . CurrentRow ++ , table . CurrentValueColumn + 2 * i , "{0} ({1})" , FormatStrings . FormatSpeedDisplay ( axle . AxleSpeedMpS , mstsLocomotive . IsMetric ) , FormatStrings . FormatSpeedDisplay ( axle . SlipSpeedMpS , mstsLocomotive . IsMetric ) ) ;
1102+ }
10941103 if ( HUDEngineType == TrainCar . EngineTypes . Steam && ( HUDSteamEngineType == TrainCar . SteamEngineTypes . Compound || HUDSteamEngineType == TrainCar . SteamEngineTypes . Simple || HUDSteamEngineType == TrainCar . SteamEngineTypes . Unknown ) ) TableAddLabelValue ( table , Viewer . Catalog . GetString ( "Wheel ang. pos." ) , "{0}º" , ( int ) ( mstsLocomotive . LocomotiveAxles [ 0 ] . AxlePositionRad * 180 / Math . PI + 180 ) ) ;
10951104 TableAddLabelValue ( table , Viewer . Catalog . GetString ( "Loco Adhesion" ) , "{0:F0}%" , mstsLocomotive . LocomotiveCoefficientFrictionHUD * 100.0f ) ;
10961105 TableAddLabelValue ( table , Viewer . Catalog . GetString ( "Wagon Adhesion" ) , "{0:F0}%" , mstsLocomotive . WagonCoefficientFrictionHUD * 100.0f ) ;
0 commit comments