From f5f7184965a2374b91bcda049d3ff7b93ca2436b Mon Sep 17 00:00:00 2001 From: LailaTheElf Date: Thu, 3 Jul 2025 20:56:43 +0200 Subject: [PATCH] minor notes update --- rx_esp32/src/commands.c | 1 + rx_esp32/src/servos.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/rx_esp32/src/commands.c b/rx_esp32/src/commands.c index 9289f06..91c3e5b 100644 --- a/rx_esp32/src/commands.c +++ b/rx_esp32/src/commands.c @@ -68,6 +68,7 @@ int cmd_contrl(char* line, void* cli) return out; } +// servotrim:0 410;614;819 int cmd_servotrim(char* line, void* cli) { uint8_t ch; diff --git a/rx_esp32/src/servos.c b/rx_esp32/src/servos.c index 8f84e5b..8388a06 100644 --- a/rx_esp32/src/servos.c +++ b/rx_esp32/src/servos.c @@ -14,7 +14,7 @@ #define SERVO_DUTY_MIN ( 410) // 2**13 * (1000/20000) // 1000us of the 20ms #define SERVO_DUTY_MAX ( 819) // 2**13 * (2000/20000) // 2000us of the 20ms // #define SERVO_DUTY_MAX (1024) // 2**13 * (2500/20000) // 2500us of the 20ms -#define SERVO_DUTY_MID ( 614) // 2**13 * (1500/20000) // 2500us of the 20ms +#define SERVO_DUTY_MID ( 614) // 2**13 * (1500/20000) // 1500us of the 20ms #define SERVO_DUTY_DIFF (SERVO_DUTY_MAX - SERVO_DUTY_MIN)