DCC-EX / CommandStation-EX

EX-CommandStation firmware from DCC-EX. Includes support for WiFi and a standalone WiThrottle server. A complete re-write of the original DCC++.
https://dcc-ex.github.io/
GNU General Public License v3.0
155 stars 107 forks source link

Sense turnout state #145

Open FrightRisk opened 3 years ago

FrightRisk commented 3 years ago

Use a switch or other sensor to sense the position of a turnout rather than just forcing it to a position it may be in. Turnout and sensor will have to be linked (like in JMRI)

FrightRisk commented 3 years ago

From Chris: "All these things either need surgery to the existing code or a hardware abstraction layer that allows the cs to be configured to weird and wonderful combinations of stuff without altering the base code. Using an input to sense A turnout state looks like an interesting possibility... but requires some code to logically connect the turnout object to the sensor object. Once that is done it would work for ANY kind of turnout hardware (dcc, servo etc) combined with any type of sensor hardware (direct pin, mcp23017 etc)"

FrightRisk commented 3 years ago

Idea submitted by Travis. We will review and see about the feasibility of doing this.