Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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. #365

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

kotl
Copy link

@kotl kotl commented Nov 7, 2023

No description provided.

…hat require reverse of polarity and short power application, easily configurable through 2-pin controlled Motor H-Bridge.
@kotl kotl marked this pull request as ready for review November 7, 2023 03:00
@Asbelos
Copy link
Contributor

Asbelos commented Nov 7, 2023

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.

@kotl
Copy link
Author

kotl commented Nov 8, 2023

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

@kotl
Copy link
Author

kotl commented Nov 12, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants