From ad2d28c9ba46a4d49c1efcfdf88f75acf28ff10f Mon Sep 17 00:00:00 2001 From: Rune Harlyk Date: Sun, 23 Mar 2025 16:25:46 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=92=EF=B8=8F=20Enables=20bigger=20range?= =?UTF-8?q?=20of=20motion=20for=20servo=20controller?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- esp32/lib/ESP32-sveltekit/peripherals/servo_controller.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esp32/lib/ESP32-sveltekit/peripherals/servo_controller.h b/esp32/lib/ESP32-sveltekit/peripherals/servo_controller.h index e80f2f8..930e01c 100644 --- a/esp32/lib/ESP32-sveltekit/peripherals/servo_controller.h +++ b/esp32/lib/ESP32-sveltekit/peripherals/servo_controller.h @@ -103,7 +103,7 @@ class ServoController : public StatefulService { auto &servo = state().servos[i]; float angle = servo.direction * angles[i] + servo.centerAngle; uint16_t pwm = angle * servo.conversion + servo.centerPwm; - if (pwm < 125 || pwm > 600) { + if (pwm < 105 || pwm > 600) { ESP_LOGE("ServoController", "Servo %d, Invalid PWM value %d", i, pwm); continue; }