mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-10-01 23:21:52 +00:00
RC
This commit is contained in:
@@ -87,7 +87,7 @@ static void update_pwm (int x, int y) {
|
|||||||
y = y_sum / sample;
|
y = y_sum / sample;
|
||||||
s++;*/
|
s++;*/
|
||||||
|
|
||||||
if ((x > 0 && x < 500) && (y > 500)) {
|
if ((x > 500) && (y > 0 && y < 500)) {
|
||||||
ESP_LOGW("ESP-NOW", "FORWARD");
|
ESP_LOGW("ESP-NOW", "FORWARD");
|
||||||
// Both sides rotate in forward direction.
|
// Both sides rotate in forward direction.
|
||||||
m.motor1_rpm_pcm = y; // left, forward
|
m.motor1_rpm_pcm = y; // left, forward
|
||||||
|
Reference in New Issue
Block a user