ismail
8527ebea83
Fix imbalanced tilt counts.
...
Fixed the tilt count logic that causes an imbalance in tilting within the same run frame but opposite direction.
Fixes #1057 .
2025-07-22 09:58:59 +03:00
ismail
f31eae649f
Add a shell utility for running tests.
2025-07-21 18:47:41 +03:00
ismail
a143484748
Break down tests into categories.
...
Break down tests into categories to improve maintainability and test granularity. This makes it easier to execute unit tests in CI/CD pipelines.
Closes #1054 .
2025-07-21 15:37:49 +03:00
ismail
a9a8169710
Add test cases for ID_ALL channel id.
...
Add test cases to test all relevant functions that support operating with the `RELAY_CHN_ID_ALL` channel id.
Closes #1052 .
2025-07-16 11:42:44 +03:00
ismail
74f4341c1d
Add test cases for direction flip.
...
Closes #1051 .
2025-07-15 16:14:19 +03:00
ismail
a587036093
Add tests for init error handling.
...
Added tests for covering initialization error handling cases like; NULL pointer, invalid GPIO count etc.
This changed implied removing the `relay_chn_create` from the Unity's `setUp` function and place it in each testcase.
Refs #1050 , #1030 .
2025-07-15 12:23:21 +03:00
ismail
82312ba7c3
Add NULL handling for the gpio_num pointer.
...
Fixes #1050 .
2025-07-15 12:17:46 +03:00
ismail
db62a7b5b2
Fix listener memory allocation bug.
...
- Replaced the buggy, oldschool, plain pointer based list approach with more robust FreeRTOS linked list implementation for the listener API. Fixes #1049 .
- Added relevant test cases. Refs #1030 .
2025-07-14 18:49:47 +03:00
ismail
1ee70be715
Fix invalid ID test loops.
2025-07-14 18:49:47 +03:00
ismail
f1cb928341
Add missing destroy function.
...
The component allocates resources (timers, event loop) in relay_chn_create but never frees them. This is a resource leak.
Hence, a destroy function added to free the resources gracefully.
Fixes #1048 .
2025-07-14 11:37:14 +03:00
ismail
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
ismail
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
ismail
9b2274ed7c
Add default configs for unit tests.
2025-07-11 17:35:50 +03:00
kozmotronik
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
kozmotronik
82168f34eb
Delete this ghost file appeared out of nowhere.
2025-07-07 20:25:45 +03:00
ismail
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
ismail
bacbe03e12
Update the manifest file with the latest information.
2025-07-07 09:50:36 +03:00
ismail
be09cb883a
Correct the installation description.
...
Fixes #1027
2025-07-07 09:39:29 +03:00
ismail
925fd5de74
Update descriptions about the inertia timing.
...
Fixes #1027
2025-07-07 09:27:28 +03:00
ismail
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
ismail
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
kozmotronik
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
ismail
ed5b86e863
Fix CMakeLists.txt definitions and test cases.
2025-07-03 18:58:09 +03:00
ismail
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
ismail
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
ismail
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
ismail
7afe6144bd
Set dev branch's upstream.
2025-03-24 09:31:33 +03:00
ismail
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
ismail
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
ismail
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
ismail
f230477cad
Fix error handling in the init function.
2025-03-21 16:42:06 +03:00
ismail
e19bd09389
Update gitignore as per esp-idf gitignore.
2025-03-21 16:41:22 +03:00
ismail
11786b7a06
Remove unnecessary unity functions.
2025-03-04 09:49:04 +03:00
ismail
7c18ddcc04
Fix declarations as per the documents.
2025-03-04 09:48:24 +03:00
ismail
e8303a9418
Fix test directory structure.
2025-03-03 16:20:29 +03:00
ismail
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
ismail
5fe76bb738
Merge pull request #2 from kozmotronik/improve-tilt-algorithm
...
Improve tilt algorithm
2025-03-03 11:53:43 +03:00
ismail
46dd0db939
Fix unclosed code fence.
2025-03-03 10:26:52 +03:00
ismail
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
ismail
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
ismail
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
ismail
b7a23f3633
Add missing docs for the tilting interface.
2025-02-22 10:59:02 +03:00
ismail
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