mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-10-01 01:14:49 +00:00
ESP-IDF RC Motors Controls
This commit is contained in:
0
ESP-IDF_Robot/build/.ninja_lock
Normal file
0
ESP-IDF_Robot/build/.ninja_lock
Normal file
@@ -1 +1 @@
|
|||||||
d91ef6c33dc78cf96e5842dbe0306a0e9a7c6df4
|
a0ba0146a84aa699a66776554556f7893459dfc9
|
||||||
|
@@ -89,8 +89,8 @@ static void rc_get_raw_data() {
|
|||||||
}
|
}
|
||||||
else if ((y < 0 && y > -200) && (x > 1000)) {
|
else if ((y < 0 && y > -200) && (x > 1000)) {
|
||||||
ESP_LOGW("RC", "RIGHT");
|
ESP_LOGW("RC", "RIGHT");
|
||||||
m.motor1_rpm_pcm = x;
|
m.motor1_rpm_pcm = 0;
|
||||||
m.motor2_rpm_pcm = 0;
|
m.motor2_rpm_pcm = x;
|
||||||
m.motor3_rpm_pcm = 0;
|
m.motor3_rpm_pcm = 0;
|
||||||
m.motor4_rpm_pcm = 0;
|
m.motor4_rpm_pcm = 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user