ismail created pull request KozmotronikTech/relay_chn#38

ismail
Thu, 11 Sep 2025 15:41:21 +0200

38#feat/1104-add-examples#

Summary

This pull request introduces new example applications for single-channel and multi-channel relay usage, along with multiple bug fixes and enhancements to improve stability and usability of the relay channel module.
The primary goals are:

To provide working examples that showcase relay channel features (run limits, tilting, channel selection).

To fix identified issues in channel state handling, tilt operations, and STOP command behavior.

To improve developer usability by adding a state-to-string API function.

TICKET-1104

Changes

Added a single channel example with run limit and tilting features. (Closes #1105)

Added a multi channel example with run limit, tilting, and channel selection. (Closes #1111)

Added a state-to-string public API function (relay_chn_state_to_str). (Closes #1108)

Fixed unwanted reverse tilts by introducing a helper function. (Fixes #1109)

Fixed tilting opposite direction while running, preventing unintended STOPs. (Fixes #1110)

Fixed STOP command issuing when idle, making STOP context-aware. (Closes #1107)

Fixed channel validity check in tilt_stop for multi mode. (Fixes #1114)

Fixed a misspelled config parameter.

Ignored session-specific settings files to keep the repository clean.

Related Issues

#1104 - Add examples for relay channels

#1105 - Single channel example with run limit and tilting

#1107 - Fix STOP command issuing when idle

#1108 - Add state-to-string API function

#1109 - Prevent unwanted reverse tilts

#1110 - Fix opposite direction tilting when running

#1111 - Multi channel example with run limit and tilting

#1114 - Fix channel validity check in tilt_stop