Add tilt feature, fix bugs, improve code. #6

Merged
kozmotronik merged 1 commits from feature-tilt into dev 2025-02-21 10:46:11 +01:00
Owner
  • 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.

This PR fixes #1, #3, #4, #5 and it closes #2.

* 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. This PR fixes #1, #3, #4, #5 and it closes #2.
kozmotronik added 1 commit 2025-02-21 10:45:19 +01:00
* 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.
kozmotronik added this to the ESP Relay Channel Controller Component project 2025-02-21 10:45:19 +01:00
kozmotronik merged commit 7d3f08b56b into dev 2025-02-21 10:46:11 +01:00
kozmotronik moved this to Done in ESP Relay Channel Controller Component on 2025-02-21 12:52:34 +01:00
Sign in to join this conversation.