Skip to content

Commit c15227b

Browse files
committed
Add brake pipe pressure to scripts
1 parent 142ab90 commit c15227b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Source/Orts.Simulation/Common/Scripting/BrakeController.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ internal void AttachToHost(ScriptedBrakeController host)
7575
/// </summary>
7676
public bool IsCabPowerSupplyOn() => LocomotivePowerSupply.CabPowerSupplyOn;
7777

78+
/// <summary>
79+
/// Brake pipe pressure
80+
/// </summary>
81+
public float BrakePipePressureBar() => Bar.FromPSI(Host.Locomotive.BrakeSystem.BrakeLine1PressurePSI);
82+
7883
/// <summary>
7984
/// Main reservoir pressure
8085
/// </summary>
@@ -135,7 +140,6 @@ public float MainReservoirPressureBar()
135140
/// Release rate of the equalizing reservoir
136141
/// </summary>
137142
public float MinReductionBar() => Bar.FromPSI(Host.MinReductionPSI);
138-
139143
/// <summary>
140144
/// Current value of the brake controller
141145
/// </summary>

0 commit comments

Comments
 (0)