* 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.
29 lines
1.1 KiB
Plaintext
29 lines
1.1 KiB
Plaintext
menu "Relay Channel Driver Configuration"
|
|
|
|
config RELAY_CHN_OPPOSITE_INERTIA_MS
|
|
int "Inertia time before it runs opposite direction (ms)"
|
|
range 200 1500
|
|
default 800
|
|
help
|
|
Time to wait after changing the direction of the output before
|
|
starting the output. This is useful for the motors or some other
|
|
mechanical actuators to allow them to stop and settle before
|
|
changing the direction.
|
|
|
|
config RELAY_CHN_COUNT
|
|
int "Number of relay channels"
|
|
range 1 8
|
|
default 1
|
|
help
|
|
Number of relay channels between 1 and 8.
|
|
|
|
config RELAY_CHN_ENABLE_TILTING
|
|
bool "Enable tilting on relay channels"
|
|
default n
|
|
help
|
|
This option controls enabling tilting on channels. Tilting makes
|
|
a channel move with a specific pattern moving with small steps
|
|
at a time. Tilting is specifically designed for controlling some
|
|
types of curtains that need to be adjusted to let enter specific
|
|
amount of day light.
|
|
endmenu |