You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The address sent from the command station is not correct with either the DCC-EX native or EX-Rail example the address 201 gives address 97 at the decoder and on up to address 210 gives address 106 at the decoder.
The ROTATE_DCC command works correctly as does the command at a serial prompt.
It is only the address that is set incorrectly.
The text was updated successfully, but these errors were encountered:
diff --git a/Turntables.cpp b/Turntables.cpp
index f75005c..bb9cd38 100644
--- a/Turntables.cpp
+++ b/Turntables.cpp
@@ -254,8 +254,8 @@ bool DCCTurntable::setPositionInternal(uint8_t position, uint8_t activity) {
int16_t value = getPositionValue(position);
if (position == 0 || !value) return false; // Return false if it's not a valid position
// Set position via device driver
This makes all the commands sent to the turntable be thrown. The turntable decoder should then be able to calculate which way to go (clockwise or anticlockwise).
I'm working on my DCC turntable decoder.
Decoder works fine and responds correctly.
However using the examples from here:
https://dcc-ex.com/ex-commandstation/accessories/turntables/dcc-turntables.html#defining-dcc-turntables-traversers
The address sent from the command station is not correct with either the DCC-EX native or EX-Rail example the address 201 gives address 97 at the decoder and on up to address 210 gives address 106 at the decoder.
The ROTATE_DCC command works correctly as does the command at a serial prompt.
It is only the address that is set incorrectly.
The text was updated successfully, but these errors were encountered: