开云体育

Locked Re: Making VSD Files and Config - Volume question #vsdecoder


 

Phil,

JMRI now includes a solution that is intended for JMRI Test Release 4.19.2.

A daily build package is available here:
(package 3584 or higher).

If you want to preclude the STOP at a speed > 0, please declare <action>STOP_AT_ZERO</action>.

Klaus


Am 01.12.2019 um 19:30 schrieb Klaus Killinger:

Am 01.12.2019 um 14:24 schrieb Phil in gorgeous Young Harris via Groups.Io:
If I understand this right, you want to be able to start/stop the engine
by a throttle function key, e.g. F8. You can do this in config.xml:
<trigger name="ENGINE_STARTSTOP" type="THROTTLE">
<event-name>F8</event-name>
<target-name>ENGINE</target-name>
<action>NOTHING</action>
</trigger>
This must be declared in the tag sound-event name="ENGINE".
Klaus, thanks for this snippet-it works.? I have no idea how the program links this to the Start/Stop action though, and if there is any way to preclude the action if the speed is not zero.
There is no link. When I implemented ENGINE_STARTSTOP, I didn't see a simple solution with config.xml. So I programmed a mechanism for function keys.
I have to think about a solution precluding the STOP action at speed > 0. I tend towards a yes-no-option. So there's no solution at the moment.

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