mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-09-02 19:13:27 +00:00
ESP-IDF Robot Controls
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user