Replies: 5 comments 1 reply
-
By I struggle to think like that, mainly because I don't have a turnout decoder so no way to test but if it works for you than ok |
Beta Was this translation helpful? Give feedback.
-
Extended first post with table for investigating output control behavior in different systems, see also #56 (comment) |
Beta Was this translation helpful? Give feedback.
-
For signal control using aspects e.g. DCCext is also an option, did some tests with it lately. That made me think, the OutputController should be refactored, it should support different types of outputs:
Each output channel will have a single output type. |
Beta Was this translation helpful? Give feedback.
-
Implemented in #95 |
Beta Was this translation helpful? Give feedback.
-
Currently in Traintastic an
Output
is a single output, but not all digital system do support that, e.g. in the Z21 protocol (see #56) the outputs can't be controlled individually.For implementing #21 it is required to know if an output is a pair or individual.
If the user enters e.g. turnout address
8
it should use: individual outputs 15 and 16 or output pair 8.I'd suggest to add a
outputType(uint32_t channel)
method to theOutputController
and aoutputType()
method toOutput
.The method can return an enum
OutputType
with values:Unknown
,Single
,Pair
.Update 2023-11-04:
Investigate how outputs and adressing works on different systems, see also #21.
Beta Was this translation helpful? Give feedback.
All reactions