Replies: 6 comments 16 replies
-
I think we should implement some kind of speed profile (maybe with CSV export) which maps every speed step to the corresponding locomotive speed. Possible scenario:
Now you have both locomotives running at same speed and automatically adjusting when changing speed with a throttle. We could also set a speed limit to the max speed of slower locomotive in the train composition. |
Beta Was this translation helpful? Give feedback.
-
This video (minute 2:09) shows Tarvisio Boscoverde station (Italy/Austria border) in which there is an electric power line change and every train must change locomotive. Theese trains (with 2 locomotives and no wagons) are temporary and last only the time needed for shunting operation. |
Beta Was this translation helpful? Give feedback.
-
Hi, the multiple traction feature seems cool! As for the speed profile I think we should distinguish between:
I think the first one is not really useful because we already interpolate values to match multiple engines and the acceleration logic is inside the server. When changing decoder speed we should then change the whole Train speed, but in case the Engine is added to multiple trains, how do we choose the "active" train? |
Beta Was this translation helpful? Give feedback.
-
Hello, Currently a "free" match approach is used.
Issues:
New approach Precompute all matches! We now have restricted allowed steps for each member locomotive. New issues A case like this might happen:
A similar case can happen when accelerating with lower delta then nearest allowed step. Special cases:
Free rotation throttles This is not an issue with throttles which keep last set step (like MultiMaus, free rotation potentiometer). Step by step throttles
Here the problem is that throttle movements are relative to current speed so you only do a "-1" to current step. Possible solution
However this my not work well with free rotation throttles.
Until now everything is good.
We need to detect if user is controlling trains using a free-rotation throttle or a step-by-step throttle. Speed Mapping How do we store Locomotive speed mapping? This file should contain an array/map like this:
There might be gaps which then get interpolated. We should encourage measuring each step 1-126 to get more accuracy when matching different locomotives. The file should also contain some basic info about locomotive acceleration and deceleration rates. The file might also contain locomotive address to double check it's loaded for the right decoder. Traintastic could show a warning if addresses mismatch. Now the issue is how do we handle different speed step scales, like Marklin Motorola and other non-DCC? |
Beta Was this translation helpful? Give feedback.
-
Don't know if I wrote this before but in desperate cases we can emulate a specific speed by duty cycling lower-bound and higher-bound steps. For example:
Continuously changing speed might damage decoders and/or command station so this it not a really good solution. |
Beta Was this translation helpful? Give feedback.
-
Some results from my initial tests with z21 show that this feature is possible.
This last problem is not important when locomotive are coupled together and difference is lower than a threshold. Speed differences will be absorbed by the coupling itself. However when using a train like: Unfortunately my homemade wagon to measure speed is not very accurate so I cannot test trains with wagons inbetween This is the speedometer wagon which uses a small magnet tied to rear axle and an hall sensor connected to ESP8266 which will send data over WiFi to PC. Here you can see my quick program to register speed values and filtering with a moving average. It really needs improvements tough... |
Beta Was this translation helpful? Give feedback.
-
Hi, this is a side aspect of Train and Rail Vehicles discussion.
I find multiple traction very interesting and challenging!
Many command stations have built-in support for it, sometimes called "consisting" but is often limited in number and not easily modifiable.
There is also DCC cv 19 which can be combined with POM (Programming On Main) to dynamically switch composition.
The most interesting case is multiple traction with locomotives of different type which have different traction characteristics.
Beta Was this translation helpful? Give feedback.
All reactions