BrakeHold (Shift-D) in Class 375/377

General discussion about Train Simulator, your thoughts, questions, news and views!

Moderator: Moderators

Locked
User avatar
Havner
Been on the forums for a while
Posts: 293
Joined: Thu Sep 11, 2014 1:32 am

BrakeHold (Shift-D) in Class 375/377

Post by Havner »

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?

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

User avatar
DaveDewhurst
Very Active Forum Member
Posts: 1994
Joined: Wed Nov 28, 2007 10:21 am
Location: Birkenhead
Contact:

Re: BrakeHold (Shift-D) in Class 375/377

Post by DaveDewhurst »

I thought it was for hill starts,
ie you hold the brake hold whilst getting up power to move so the train doesn't roll backwards

Dave
JasVick
Been on the forums for a while
Posts: 241
Joined: Wed Jun 25, 2008 9:22 am

Re: BrakeHold (Shift-D) in Class 375/377

Post by JasVick »

Indeed, you achieve what is effectively a brake step one which should be sufficient to hold a stationary train and prevent it from rolling. Once traction is achieved the driver then releases the button and obtains normal acceleration.
coolhand101
Very Active Forum Member
Posts: 1252
Joined: Tue Mar 06, 2007 2:20 pm

Re: BrakeHold (Shift-D) in Class 375/377

Post by coolhand101 »

Also, the brakes will automatically release and not work above 6 mph.

Thanks
User avatar
Havner
Been on the forums for a while
Posts: 293
Joined: Thu Sep 11, 2014 1:32 am

Re: BrakeHold (Shift-D) in Class 375/377

Post by Havner »

Thanks for clarifying. So it is supposed to apply both power and brake at the same time.
coolhand101 wrote:Also, the brakes will automatically release and not work above 6 mph.
This is not implemented, but again, very easy to do in lua.
User avatar
Havner
Been on the forums for a while
Posts: 293
Joined: Thu Sep 11, 2014 1:32 am

Re: BrakeHold (Shift-D) in Class 375/377

Post by Havner »

Thanks guys again. Fixed it.

I also made it non toggle (you need to hold it) by both keys and mouse (InputRemapper and Engine properties).

Nice video BTW.

Code: Select all

--- "Class 377 Simulation.lua.bak"      2014-09-16 01:25:32.981326600 +0200
+++ "Class 377 Simulation.lua"  2014-09-17 19:33:58.405180700 +0200
@@ -119,6 +121,7 @@
                BrakeHold = Call( "*:GetControlValue", "BrakeHold", 0 )
                TargetSpeed = Call( "*:GetControlValue", "TargetSpeed", 0 )
                CurrentSpeed = Call( "*:GetControlValue", "SpeedometerMPH", 0 )
+               if CurrentSpeed > 6 then BrakeHold = 0 end
                SpeedSet = Call( "*:GetControlValue", "SetTargetSpeed", 0 )
                WheelSlip = Call( "*:GetControlValue", "Wheelslip", 0 )
                DoorsOpen = Call( "*:GetControlValue", "DoorsOpenCloseRight", 0 ) + Call( "*:GetControlValue", "DoorsOpenCloseLeft", 0 )
Locked

Return to “[TS] General Discussion”