From 417887464dbe5c6898f0fa9c2027a6d1ef81088e Mon Sep 17 00:00:00 2001 From: Alexander Bobkov Date: Sat, 28 Dec 2024 19:29:01 -0500 Subject: [PATCH] ESP-IDF Robot Controls --- ESP-IDF_Robot/main/motor_controls.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ESP-IDF_Robot/main/motor_controls.h b/ESP-IDF_Robot/main/motor_controls.h index 344984822..1ed10d54b 100644 --- a/ESP-IDF_Robot/main/motor_controls.h +++ b/ESP-IDF_Robot/main/motor_controls.h @@ -4,8 +4,10 @@ // Interpolate value (x) based on raw reading, min/max limits. /* - Joystick scale: 4096 2048 0 - PWM scale: 8191 4096 0 + Joystick scale: 4096 2048 0 + PWM scale: 8191 4096 0 + + PWM Output: +8191 0 -8191 */ static int interpolate_raw_val (int raw) { int x;