¿ªÔÆÌåÓý

Locked Re: Precise position of trains and maneuvers automation


 

³§¨¦²ú²¹²õ³Ù¾±±ð²Ô,

Am 06.09.2024 um 14:31 schrieb S¨¦bastien Gendre:
I have difficulties to understand what a "sound-follows-loco in VSD" is.
(Sorry, english is not my main language).
VSD is the "Virtual Sound Decoder" application in JMRI. VSD provides a way for those who do not have sound-equipped locomotives (or who are not satisfied with the hardware sound decoder options in smaller scales) to enjoy throttle-controlled locomotive sounds from their computer speakers.

My goal with VSD was to change the sound position accordingly to the locomotive position. JMRI's 3D audio capability (OpenAL 3D sound based) allows to send the sound to a position on the model railroad layout. I called this "sound-follows-loco".
(my native language is german).


Does the "LayoutEditor-Train Simulator Proof of Concept" is only a
simulation of train??
Yes, but the implementation of the concept in VSD can drive real model railroad locomotives.


By position, do you detect/calculate the exact position AND occupation
of the train?? Like where it begin and where it end on the track and where
the couplings are on the train??
I only calculate the position of the locomotive within a track segment of the layout. The length of the train is not known.


How do you precede to detect/calculate the train position??
A detection device is not necessary. But VSD also supports locomotive tracking hardware, which is recommended.
VSD assumes that the starting position is the center of a track segment. When the locomotive moves, the position is calculated. VSD knows through the layout the starting and ending point of the track segment, the angle and the distance. JMRI provides the locomotive speed and the traveling direction.

Klaus

Join [email protected] to automatically receive all group messages.