mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2026-01-25 04:35:14 +00:00
Motor Logic
This commit is contained in:
0
ESP-IDF_Robot/build/.ninja_lock
Normal file
0
ESP-IDF_Robot/build/.ninja_lock
Normal file
@@ -218,7 +218,7 @@ static void update_pwm (int rc_x, int rc_y) {
|
||||
static void update_motors_pwm (int pwm_motor_1, int pwm_motor_2) {
|
||||
|
||||
/* DEAD ZONE / STAND */
|
||||
if (abs(pwm_motor_1) < 300 && abs(pwm_motor_2) < 300)
|
||||
if (abs(pwm_motor_1) < 500 && abs(pwm_motor_2) < 500)
|
||||
{
|
||||
m.motor1_rpm_pcm = 0;
|
||||
m.motor2_rpm_pcm = 0;
|
||||
|
||||
Reference in New Issue
Block a user