mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-19 06:55:48 +00:00
ESP-IDF Robot Controls
This commit is contained in:
@@ -2,6 +2,12 @@
|
|||||||
#define MOTOR_CONTROLSC_H
|
#define MOTOR_CONTROLSC_H
|
||||||
|
|
||||||
// Interpolate value (x) based on raw reading, min/max limits.
|
// 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) {
|
static int interpolate_raw_measure (int min, int max, int raw) {
|
||||||
int x;
|
int x;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user