]> git.tdb.fi Git - r2c2.git/commit
Use current monitoring to detect failed turnouts
authorMikko Rasa <tdb@tdb.fi>
Tue, 1 Apr 2014 18:35:31 +0000 (21:35 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 1 Apr 2014 18:35:31 +0000 (21:35 +0300)
commit5bc94d60a17039dfd5d46caaa292d3667fa87fb3
tree77f378003e735150f7ab0e4e3cbf4fb6747edcc1
parentf7238194310b77f21385286150295b284127b887
Use current monitoring to detect failed turnouts

The turnout solenoid takes quite a bit of current, which is easy to
detect.  If there's no current spike after activating a solenoid, it
may have a broken microswitch that prevents operation.
source/libr2c2/arducontrol.cpp
source/libr2c2/arducontrol.h