From fcf9fbfebe4d4d7980eee8130d72918e9fb6735f Mon Sep 17 00:00:00 2001 From: Alexander Bobkov Date: Sat, 28 Dec 2024 19:09:35 -0500 Subject: [PATCH] ESP-IDF Robot Controls --- ESP-IDF_Robot/main/motor_controls.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ESP-IDF_Robot/main/motor_controls.h b/ESP-IDF_Robot/main/motor_controls.h index 7ba9b30b3..7a195630b 100644 --- a/ESP-IDF_Robot/main/motor_controls.h +++ b/ESP-IDF_Robot/main/motor_controls.h @@ -2,6 +2,12 @@ #define MOTOR_CONTROLSC_H // Interpolate value (x) based on raw reading, min/max limits. +/* + + 8191 4095 + 0 + 0 -4095 +*/ static int interpolate_raw_measure (int min, int max, int raw) { int x;