a90649a4d3
Clean and add more tests.
...
Clean the unnecessary codes and logging macros to keep the test output cleaner.
Add fail tests for the `get_state*` functions.
2025-07-11 18:32:28 +03:00
b239b50abe
Fix invalid channel ID handling.
...
Fix the issue where get_state* functions do not handle when id is RELAY_CHN_ID_ALL.
Fixes #1037 .
2025-07-11 18:28:59 +03:00
9b2274ed7c
Add default configs for unit tests.
2025-07-11 17:35:50 +03:00
5a38956146
Restructure the project tree.
...
Restructured the project tree to align with Espressif's project tree pattern and practice. Also updated the affected cmake files.
Fixes: #1033
2025-07-07 22:57:02 +03:00
82168f34eb
Delete this ghost file appeared out of nowhere.
2025-07-07 20:25:45 +03:00
2165e9d571
Merge pull request 'release-0.4.0' ( !28 ) from release-0.4.0 into main
...
Reviewed-on: KozmotronikTech/relay_chn_component#28
2025-07-07 14:45:01 +03:00
0ebe1c791e
Merge pull request 'fix/134-testing-issues' ( !27 ) from fix/134-testing-issues into dev
...
Reviewed-on: KozmotronikTech/relay_chn_component#27
0.4.0
2025-07-07 14:31:27 +03:00
bacbe03e12
Update the manifest file with the latest information.
2025-07-07 09:50:36 +03:00
be09cb883a
Correct the installation description.
...
Fixes #1027
2025-07-07 09:39:29 +03:00
925fd5de74
Update descriptions about the inertia timing.
...
Fixes #1027
2025-07-07 09:27:28 +03:00
2e3e92bb63
Fix testing issues and add more tests.
...
Fixes #134 .
Fix unit testing issues. Add more tests to cover more code.
2025-07-04 17:55:33 +03:00
c4482b8d49
Fix unhandled tilt to run mode transitions.
...
Fixes #1028 .
This commit add unhandled logic to the relay_chn_issue_cmd function to handle transitions from tilt mode to run mode.
2025-07-04 17:31:31 +03:00
41c292cc89
Restructure the project tree for unit testing
...
Restructure the whole project tree so that the component can be unit tested. Also update some cmake files to update the modified paths, update test cases etc.
2025-07-04 00:38:57 +03:00
ed5b86e863
Fix CMakeLists.txt definitions and test cases.
2025-07-03 18:58:09 +03:00
c0c7fbf3df
Merge pull request 'Fix error handling issues.' ( !26 ) from release-0.3.2 into main
...
Reviewed-on: https://dev.kozmotronik.com.tr/gitea/KozmotronikTech/relay_chn/pulls/26
v0.3.2
0.3.2
2025-04-03 10:21:37 +03:00
a1c66d51c7
Merge pull request 'Fix error handling issues.' from fix/172-fix-error-handling into dev
...
Reviewed-on: https://dev.kozmotronik.com.tr/gitea/KozmotronikTech/relay_chn/pulls/25
2025-04-02 14:39:49 +03:00
421dea7d69
Merge pull request 'fix/172-fix-error-handling' ( !24 ) from fix/172-fix-error-handling into fix/134-testing-issues
...
Reviewed-on: https://dev.kozmotronik.com.tr/gitea/KozmotronikTech/relay_chn/pulls/24
2025-04-02 14:38:32 +03:00
99d753238b
Fix error handling issues.
...
Fix error handling so that the value in ret variable does not become corrupt.
2025-04-02 14:05:48 +03:00
7afe6144bd
Set dev branch's upstream.
2025-03-24 09:31:33 +03:00
4f39308f13
Merge pull request 'fix/162-fix-error-handling' from fix/162-fix-error-handling into fix/134-testing-issues
...
Reviewed-on: https://dev.kozmotronik.com.tr/gitea/KozmotronikTech/relay_chn/pulls/23
2025-03-21 17:30:13 +03:00
fb425edc4b
Merge pull request 'release-0.3.1' from release-0.3.1 into main
...
Reviewed-on: https://dev.kozmotronik.com.tr/gitea/KozmotronikTech/relay_chn/pulls/22
v0.3.1
2025-03-21 17:06:05 +03:00
805df016fe
Merge pull request 'fix/162-fix-error-handling' from fix/162-fix-error-handling into dev
...
Reviewed-on: https://dev.kozmotronik.com.tr/gitea/KozmotronikTech/relay_chn/pulls/21
2025-03-21 16:44:34 +03:00
f230477cad
Fix error handling in the init function.
2025-03-21 16:42:06 +03:00
e19bd09389
Update gitignore as per esp-idf gitignore.
2025-03-21 16:41:22 +03:00
11786b7a06
Remove unnecessary unity functions.
2025-03-04 09:49:04 +03:00
7c18ddcc04
Fix declarations as per the documents.
2025-03-04 09:48:24 +03:00
e8303a9418
Fix test directory structure.
2025-03-03 16:20:29 +03:00
496755ed56
Merge pull request #3 from kozmotronik/release-0.3.0
...
Release 0.3.0
v0.3.0
2025-03-03 13:58:25 +03:00
5fe76bb738
Merge pull request #2 from kozmotronik/improve-tilt-algorithm
...
Improve tilt algorithm
2025-03-03 11:53:43 +03:00
46dd0db939
Fix unclosed code fence.
2025-03-03 10:26:52 +03:00
46f7c28829
refactor: Add reverse tilting capability with limit.
...
This commit adds reverse tilting capability using tilt counters.
Normally tilting action is based on the last run command of the channel
and reverse tilting was not possible before this implementation.
Reverse tilting means when TILT_REVERSE command is issued while the
last run was forward. In this case the channel will not tilt unless it has tilted
forward (TILT_FORWARD) before. If the channel has tilted forward before,
the forward tilt is counted. This tilt count is the limit for reverse tilting.
So when reverse tilting, the channel automatically will issue the TILT_STOP
command as soon as the tilt count value has reached.
2025-02-27 16:51:01 +03:00
0e68c1f627
refactor: Improve tilting code structure and organization.
...
Improves the code structure by reorganizing functions, minimizing
the interaction with the relay channel driving API and independizing
the tilting codes as much as possible from the plain channel driving
API for more reliable operation.
With this change the tilting API;
* has its own events and event handler
* does not depend on the channel's state change listener
* does not interfere with channel driver API
* has its own tilt command issuing logic
* has its own timing management
2025-02-26 17:06:10 +03:00
Kozmotronik
9ff243c673
Merge pull request 'fix-v0.2.1' ( #19 ) from fix-v0.2.1 into dev
...
Reviewed-on: https://kozmotronik.nohost.me/gitea/KozmotronikTech/relay_chn/pulls/19
2025-02-24 13:03:47 +03:00
330c996b7b
Fix sensitivity setting and getting bugs.
...
"relay_chn_tilt_sensitivity_set" and "relay_chn_tilt_sensitivity_get"
functions wasn't capable of dealing with "RELAY_CHN_ID_ALL"
channel ID. Hence it was causing load access system errors. This
commit fixes this bug and matures the sensitivity setter and getter.
2025-02-24 10:39:35 +03:00
Kozmotronik
4b8b6fd636
Merge pull request 'release-v0.2.1' ( #15 ) from release-v0.2.1 into main
...
Reviewed-on: https://kozmotronik.nohost.me/gitea/KozmotronikTech/relay_chn/pulls/15
v0.2.1
2025-02-22 11:22:28 +03:00
Kozmotronik
8d96914a38
Merge pull request 'fix-update-documentation' ( #14 ) from fix-update-documentation into dev
...
Reviewed-on: https://kozmotronik.nohost.me/gitea/KozmotronikTech/relay_chn/pulls/14
2025-02-22 11:13:25 +03:00
b7a23f3633
Add missing docs for the tilting interface.
2025-02-22 10:59:02 +03:00
df935a593b
Update Readme and add some tilting feature details.
2025-02-22 10:24:39 +03:00
Kozmotronik
f72fe6b1f0
Merge pull request 'Fix movement transition issue.' ( #12 ) from movement-transition-patch into dev
...
Reviewed-on: https://kozmotronik.nohost.me/gitea/KozmotronikTech/relay_chn/pulls/12
2025-02-22 09:01:06 +03:00
Kozmotronik
e54e28020c
Fix movement transition issue.
...
When transitioning the movements directly the channel should be stopped first.
2025-02-22 08:48:22 +03:00
Kozmotronik
f5481f79e7
Merge pull request 'dev' ( #7 ) from dev into main
...
Reviewed-on: https://kozmotronik.nohost.me/gitea/KozmotronikTech/relay_chn/pulls/7
v0.2.0
2025-02-21 14:38:48 +03:00
Kozmotronik
7d3f08b56b
Merge pull request 'Add tilt feature, fix bugs, improve code.' ( #6 ) from feature-tilt into dev
...
Reviewed-on: https://kozmotronik.nohost.me/gitea/KozmotronikTech/relay_chn/pulls/6
2025-02-21 12:46:10 +03:00
a694938224
Add tilt feature, fix bugs, improve code.
...
* Add tilt feature.
* Fix the following bugs:
* warning: comparison is always true due to limited range of data type.
* Remove unnecessary esp_timer checks.
* The scheduled FREE command disrupts the current command.
* Fatal pin mapping issue.
* Make code optimizations and improvements:
* Optimize event loop queue size depending on channel count.
* Change the channels' starting state to FREE.
* Remove the unnecessary relay_chn_invalidate_inertia_timer function.
* Change the relay_chn_start_inertia_timer function as relay_chn_start_esp_timer_once and modify the function so that it be a generic esp timer start function.
* Optimize the if statement that checks the last run cmd in the relay_chn_execute_stop.
2025-02-21 12:43:00 +03:00
dcb5453522
Resolve unseen conflicts.
v0.1.0
2025-02-14 17:01:22 +03:00
feb1f4ac81
Update docs for the state_listener_manager API.
2025-02-14 15:12:37 +03:00
069363205a
Rename inertia timer to distinguish timers.
...
Rename timer member and relevant functions for the purpose they used,
in order to distinguish between timers.
2025-02-14 15:00:02 +03:00
d4fdff949a
Rename inertia timer to distinguish timers.
2025-02-14 14:50:35 +03:00
dc2dcfec7d
Add support for addressing all relay channels.
2025-02-12 16:50:00 +03:00
8517993358
Update file name according to the extension guide.
2025-02-12 08:56:51 +03:00
e21bfb5b26
Update the root gitignore to ignore the build and unity-app.
2025-02-12 08:44:38 +03:00