Skip to content

Commit 46bf8a6

Browse files
committed
Get circuit breaker closing authorization
1 parent 3d90668 commit 46bf8a6

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

Source/Orts.Simulation/Common/Scripting/PowerSupply/DieselPowerSupply.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ public float DieselEngineMinRpm
8484
/// Driver's closing authorization of the traction cut-off relay
8585
/// </summary>
8686
public bool TractionCutOffRelayDriverClosingAuthorization() => TractionCutOffRelay.DriverClosingAuthorization;
87+
88+
/// <summary>
89+
/// Closing authorization of the traction cut-off relay
90+
/// </summary>
91+
public bool TractionCutOffRelayClosingAuthorization() => TractionCutOffRelay.ClosingAuthorization;
8792

8893
/// <summary>
8994
/// Sends an event to all diesel engines

Source/Orts.Simulation/Common/Scripting/PowerSupply/DualModePowerSupply.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ public abstract class DualModePowerSupply : LocomotivePowerSupply
7979
/// </summary>
8080
protected bool CircuitBreakerDriverClosingAuthorization => CircuitBreaker.DriverClosingAuthorization;
8181

82+
/// <summary>
83+
/// Closing authorization of the circuit breaker
84+
/// </summary>
85+
protected bool CircuitBreakerClosingAuthorization => CircuitBreaker.ClosingAuthorization;
86+
8287
/// <summary>
8388
/// Voltage of the pantograph
8489
/// </summary>
@@ -127,6 +132,11 @@ protected float FilterVoltageV
127132
/// </summary>
128133
protected bool TractionCutOffRelayDriverClosingAuthorization => TractionCutOffRelay.DriverClosingAuthorization;
129134

135+
/// <summary>
136+
/// Closing authorization of the traction cut-off relay
137+
/// </summary>
138+
protected bool TractionCutOffRelayClosingAuthorization() => TractionCutOffRelay.ClosingAuthorization;
139+
130140
/// <summary>
131141
/// Current mode of the power supply
132142
/// </summary>

Source/Orts.Simulation/Common/Scripting/PowerSupply/ElectricPowerSupply.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ public abstract class ElectricPowerSupply : LocomotivePowerSupply
8080
/// </summary>
8181
protected bool CircuitBreakerDriverClosingAuthorization() => CircuitBreaker.DriverClosingAuthorization;
8282

83+
/// <summary>
84+
/// Closing authorization of the circuit breaker
85+
/// </summary>
86+
protected bool CircuitBreakerClosingAuthorization() => CircuitBreaker.ClosingAuthorization;
87+
8388
/// <summary>
8489
/// Voltage of the pantograph
8590
/// </summary>

0 commit comments

Comments
 (0)