ESP-IDF Robot Controls

This commit is contained in:
2024-12-28 19:29:01 -05:00
parent 7edd07b6ac
commit 417887464d

View File

@@ -4,8 +4,10 @@
// Interpolate value (x) based on raw reading, min/max limits. // Interpolate value (x) based on raw reading, min/max limits.
/* /*
Joystick scale: 4096 2048 0 Joystick scale: 4096 2048 0
PWM scale: 8191 4096 0 PWM scale: 8191 4096 0
PWM Output: +8191 0 -8191
*/ */
static int interpolate_raw_val (int raw) { static int interpolate_raw_val (int raw) {
int x; int x;