Jump to content

Recommended Posts

Posted

I know this can be done, but not how.   I want to read the current speed of a locomotive and store it as a variable, then later set the locomotive speed back to that speed after stopping.     also,  I have some steep grades on my layout, and the locomotive slows down.  is there a way to keep the actual speed constant?

Posted

Hi Curt84328,

1) ... the current speed see wiki...

"6. Variables" -> Objektname._CurrentSpeed: Returns the current actual speed of the object in mm / s back (if it is the object is a locomotive, otherwise 0 is returned)

2) ...take this to "off"

Geschwindigkeit.jpg

EASY

Posted

try out the zipped file from here

you must store the current speed into a local variable by the signal. The _trigger event is for the moment to store the speed , so you can later assign the speed from the signal variable to the loco.

To get constant speed in steep grades you must deaktivate the automatic speed adjustment in the properties window.

regards,

Henry

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...