Closed javierbrk closed 1 week ago
Para probar: desactivar los timers comentando las líneas 240,244 y 254 bajar el periodo de rotacion en la línea 247 a 30s usando la siguiente línea
rotation:register(30000, tmr.ALARM_AUTO, rotate)
si todo sale bien y se activan los switches ... [34m[TRACE 2024-10-29 11:39:44 DST:0][0m : [R] rotation------------------------------- [34m[TRACE 2024-10-29 11:39:44 DST:0][0m : gpio reeds values up: 1 down: 0 [34m[TRACE 2024-10-29 11:39:44 DST:0][0m : rotating upppppp [34m[TRACE 2024-10-29 11:39:45 DST:0][0m : rotating turning onnnn [34m[TRACE 2024-10-29 11:39:45 DST:0][0m : [R] turn rotation on------------------------------- [34m[TRACE 2024-10-29 11:39:46 DST:0][0m : [R] rotation working pin activated 35 -0 [34m[TRACE 2024-10-29 11:39:46 DST:0][0m : turning offfffffff [34m[TRACE 2024-10-29 11:39:46 DST:0][0m : [R] noise, not able to enable rotation [34m[TRACE 2024-10-29 11:39:46 DST:0][0m : [R] noise, not able to enable rotation [34m[TRACE 2024-10-29 11:39:46 DST:0][0m : [R] noise, not able to enable rotation [34m[TRACE 2024-10-29 11:39:46 DST:0][0m : [R] noise, not able to enable rotation [34m[TRACE 2024-10-29 11:39:47 DST:0][0m : [R] rotation working rotation is active thanks to pin 34 level 1 [34m[TRACE 2024-10-29 11:39:50 DST:0][0m : turning offfffffff [34m[TRACE 2024-10-29 11:39:50 DST:0][0m : [R] rotation working :)
si el switch se queda en bajo [34m[TRACE 2024-10-29 11:40:14 DST:0][0m : [R] rotation------------------------------- [34m[TRACE 2024-10-29 11:40:14 DST:0][0m : gpio reeds values up: 0 down: 1 [34m[TRACE 2024-10-29 11:40:15 DST:0][0m : rotating downnn [34m[TRACE 2024-10-29 11:40:15 DST:0][0m : rotating turning onnnn [34m[TRACE 2024-10-29 11:40:15 DST:0][0m : [R] turn rotation on------------------------------- [34m[TRACE 2024-10-29 11:40:20 DST:0][0m : turning offfffffff [31m[ERROR 2024-10-29 11:40:20 DST:0][0m : [R] rotation error ----- sensors not activated after rotation [34m[TRACE 2024-10-29 11:48:57 DST:0][0m : [R] rotation------------------------------- [31m[ERROR 2024-10-29 11:48:58 DST:0][0m : [R] rotation disabed, sensors are not working [34m[TRACE 2024-10-29 11:49:27 DST:0][0m : [R] rotation------------------------------- [31m[ERROR 2024-10-29 11:49:28 DST:0][0m : [R] rotation disabed, sensors are not working
asociado al issue #97 si el switch se queda pegado al imán se desactiva el volteo.
ante cualquier imprevisto la rotacion se debe desahbililtar un reinicio del esp debereia volver a habilitarla
Para probar: desactivar los timers comentando las líneas 240,244 y 254 bajar el periodo de rotacion en la línea 247 a 30s usando la siguiente línea
rotation:register(30000, tmr.ALARM_AUTO, rotate)
si todo sale bien y se activan los switches ... [34m[TRACE 2024-10-29 11:39:44 DST:0][0m : [R] rotation------------------------------- [34m[TRACE 2024-10-29 11:39:44 DST:0][0m : gpio reeds values up: 1 down: 0 [34m[TRACE 2024-10-29 11:39:44 DST:0][0m : rotating upppppp [34m[TRACE 2024-10-29 11:39:45 DST:0][0m : rotating turning onnnn [34m[TRACE 2024-10-29 11:39:45 DST:0][0m : [R] turn rotation on------------------------------- [34m[TRACE 2024-10-29 11:39:46 DST:0][0m : [R] rotation working pin activated 35 -0 [34m[TRACE 2024-10-29 11:39:46 DST:0][0m : turning offfffffff [34m[TRACE 2024-10-29 11:39:46 DST:0][0m : [R] noise, not able to enable rotation [34m[TRACE 2024-10-29 11:39:46 DST:0][0m : [R] noise, not able to enable rotation [34m[TRACE 2024-10-29 11:39:46 DST:0][0m : [R] noise, not able to enable rotation [34m[TRACE 2024-10-29 11:39:46 DST:0][0m : [R] noise, not able to enable rotation [34m[TRACE 2024-10-29 11:39:47 DST:0][0m : [R] rotation working rotation is active thanks to pin 34 level 1 [34m[TRACE 2024-10-29 11:39:50 DST:0][0m : turning offfffffff [34m[TRACE 2024-10-29 11:39:50 DST:0][0m : [R] rotation working :)
si el switch se queda en bajo [34m[TRACE 2024-10-29 11:40:14 DST:0][0m : [R] rotation------------------------------- [34m[TRACE 2024-10-29 11:40:14 DST:0][0m : gpio reeds values up: 0 down: 1 [34m[TRACE 2024-10-29 11:40:15 DST:0][0m : rotating downnn [34m[TRACE 2024-10-29 11:40:15 DST:0][0m : rotating turning onnnn [34m[TRACE 2024-10-29 11:40:15 DST:0][0m : [R] turn rotation on------------------------------- [34m[TRACE 2024-10-29 11:40:20 DST:0][0m : turning offfffffff [31m[ERROR 2024-10-29 11:40:20 DST:0][0m : [R] rotation error ----- sensors not activated after rotation [34m[TRACE 2024-10-29 11:48:57 DST:0][0m : [R] rotation------------------------------- [31m[ERROR 2024-10-29 11:48:58 DST:0][0m : [R] rotation disabed, sensors are not working [34m[TRACE 2024-10-29 11:49:27 DST:0][0m : [R] rotation------------------------------- [31m[ERROR 2024-10-29 11:49:28 DST:0][0m : [R] rotation disabed, sensors are not working