CommandStation-EX icon indicating copy to clipboard operation
CommandStation-EX copied to clipboard

Add support for HBRIDGE Turnouts, allowing control of Kato turnouts that require reverse of polarity and short power application, easily configurable through 2-pin controlled Motor H-Bridge.

Open kotl opened this issue 2 years ago • 3 comments

kotl avatar Nov 07 '23 02:11 kotl

You have introduced a delay statement during turnout throw/close. This has a direct impact on loop times and can cause loss of sensor data, prog track results or throttle control. Thus is why we do this in exrail which has non blocking delays.

Asbelos avatar Nov 07 '23 10:11 Asbelos

Thanks, let me work around delay problem and try to get it right.

kotl avatar Nov 08 '23 03:11 kotl

I added new IO class that schedules delayed pin bounce. Tested this with real track with and without HAL and everything works great.

kotl avatar Nov 12 '23 02:11 kotl