mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-16 22:55:31 +00:00
ESP-IDF Robot Controls
This commit is contained in:
@@ -21,6 +21,8 @@ static int rescale_raw_val (int raw) {
|
|||||||
|
|
||||||
int s;
|
int s;
|
||||||
s = 4*raw - 8940;
|
s = 4*raw - 8940;
|
||||||
|
if (s < 0)
|
||||||
|
s = 0;
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user