BrakeHold (Shift-D) in Class 375/377
Posted: Wed Sep 17, 2014 1:31 am
How is this supposed to work?
You press the button and the TrainBrake is constantly capped at 43% (one notch). Great, but the Regulator is still applied if you have a CombinedThrottle in the backward position. You get to a point where both, regulator and brakes are applied and they are fighting each other.
What I would expect for this is a use where you drive on the throttle in the backward position with a Cruise Speed, you see a forward speed limit sign, you press BrakeHold temporarily to brake to the new speed without moving the throttle (in opposition to setting new cruise speed and letting the dynamic brake do the job). But for the duration of the pressing I'd imagine the Regulator/Power would get disabled.
It's actually a very easy fix in the LUA script.
My question though would be how it behaves in the real train?
Shouldn't the regulator be disabled for the duration?
You press the button and the TrainBrake is constantly capped at 43% (one notch). Great, but the Regulator is still applied if you have a CombinedThrottle in the backward position. You get to a point where both, regulator and brakes are applied and they are fighting each other.
What I would expect for this is a use where you drive on the throttle in the backward position with a Cruise Speed, you see a forward speed limit sign, you press BrakeHold temporarily to brake to the new speed without moving the throttle (in opposition to setting new cruise speed and letting the dynamic brake do the job). But for the duration of the pressing I'd imagine the Regulator/Power would get disabled.
It's actually a very easy fix in the LUA script.
My question though would be how it behaves in the real train?
Shouldn't the regulator be disabled for the duration?
Code: Select all
--- "Class 377 Simulation.lua.bak" 2014-09-16 01:25:32.981326600 +0200
+++ "Class 377 Simulation.lua" 2014-09-17 01:22:15.317274400 +0200
@@ -177,7 +179,7 @@
end
-- Regulator control.
- if DRA == 1 then
+ if DRA == 1 or BrakeHold == 1 then
gSetReg = 0
elseif CombinedLever == 1 then
gSetReg = 1
