mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-10 10:03:24 +00:00
ESP-IDF RC Motors Controls
This commit is contained in:
@@ -75,7 +75,7 @@ static void rc_get_raw_data() {
|
||||
int y = rescale_raw_val(adc_raw[0][1]);
|
||||
if ((x > 0 && x < 500) && (y > 500)) {
|
||||
ESP_LOGW("RC", "FORWARD");
|
||||
set_motor_pcm(m.motor1_rpm_pcm, y);
|
||||
set_motor_pcm(&m.motor1_rpm_pcm, y);
|
||||
m.motor1_rpm_pcm = y;
|
||||
m.motor2_rpm_pcm = y;
|
||||
m.motor3_rpm_pcm = 0;
|
||||
|
Reference in New Issue
Block a user