@@ -417,21 +417,17 @@ public string GetStatus()
417
417
foreach ( var eng in DEList )
418
418
result . AppendFormat ( "\t {0}" , Simulator . Catalog . GetParticularString ( "Engine" , GetStringAttribute . GetPrettyName ( eng . State ) ) ) ;
419
419
420
- result . AppendFormat ( "\t {0}\t {1}" , Simulator . Catalog . GetParticularString ( "HUD" , "Power" ) , FormatStrings . FormatPower ( MaxOutputPowerW , Locomotive . IsMetric , false , false ) ) ;
421
-
422
420
if ( Locomotive . DieselTransmissionType == MSTSDieselLocomotive . DieselTransmissionTypes . Mechanic )
423
421
{
424
-
422
+ result . AppendFormat ( " \t {0} \t {1}" , Simulator . Catalog . GetParticularString ( "HUD" , "Power" ) , Simulator . Catalog . GetString ( " " ) ) ; // Leave maximum power out
425
423
foreach ( var eng in DEList )
426
424
{
427
- // Power(Watts) = Torque(Nm) * rpm / 9.54.
428
- var tempPowerDisplay = eng . GearBox . torqueCurveMultiplier * eng . DieselTorqueTab [ eng . RealRPM ] * eng . RealRPM / 9.54f ;
429
- tempPowerDisplay = MathHelper . Clamp ( tempPowerDisplay , 0 , MaxOutputPowerW ) ; // Clamp throttle setting within bounds
430
- result . AppendFormat ( "\t {0}" , FormatStrings . FormatPower ( tempPowerDisplay , Locomotive . IsMetric , false , false ) ) ;
425
+ result . AppendFormat ( "\t {0}" , FormatStrings . FormatPower ( eng . CurrentDieselOutputPowerW , Locomotive . IsMetric , false , false ) ) ;
431
426
}
432
427
}
433
428
else
434
429
{
430
+ result . AppendFormat ( "\t {0}\t {1}" , Simulator . Catalog . GetParticularString ( "HUD" , "Power" ) , FormatStrings . FormatPower ( MaxOutputPowerW , Locomotive . IsMetric , false , false ) ) ;
435
431
foreach ( var eng in DEList )
436
432
result . AppendFormat ( "\t {0}" , FormatStrings . FormatPower ( eng . CurrentDieselOutputPowerW , Locomotive . IsMetric , false , false ) ) ;
437
433
}
@@ -1434,7 +1430,9 @@ public void Update(float elapsedClockSeconds)
1434
1430
// so set output power based upon throttle demanded power
1435
1431
if ( HasGearBox && Locomotive . DieselTransmissionType == MSTSDieselLocomotive . DieselTransmissionTypes . Mechanic )
1436
1432
{
1437
- CurrentDieselOutputPowerW = ( ThrottleRPMTab [ demandedThrottlePercent ] - IdleRPM ) / ( MaxRPM - IdleRPM ) * MaximumDieselPowerW * ( 1 - Locomotive . PowerReduction ) ;
1433
+ // Power(Watts) = Torque(Nm) * rpm / 9.54.
1434
+ CurrentDieselOutputPowerW = GearBox . torqueCurveMultiplier * DieselTorqueTab [ RealRPM ] * RealRPM / 9.54f ;
1435
+ CurrentDieselOutputPowerW = MathHelper . Clamp ( CurrentDieselOutputPowerW , 0 , MaximumDieselPowerW ) ; // Clamp throttle setting within bounds
1438
1436
}
1439
1437
1440
1438
if ( Locomotive . DieselEngines . NumOfActiveEngines > 0 )
0 commit comments