mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-07 11:48:48 +00:00
pwm
This commit is contained in:
@@ -129,6 +129,7 @@ static void update_pwm (int rc_x, int rc_y) {
|
||||
}
|
||||
// -------------
|
||||
|
||||
/*
|
||||
// Turn Left
|
||||
if (x == 8190 && y == -8190) {
|
||||
m.motor1_rpm_pcm = 6172;
|
||||
@@ -197,6 +198,8 @@ static void update_pwm (int rc_x, int rc_y) {
|
||||
m.motor3_rpm_pcm = 0;
|
||||
m.motor4_rpm_pcm = 0;
|
||||
}
|
||||
*/
|
||||
|
||||
ledc_set_duty(MTR_MODE, MTR_FRONT_LEFT, m.motor1_rpm_pcm);
|
||||
ledc_update_duty(MTR_MODE, MTR_FRONT_LEFT);
|
||||
ledc_set_duty(MTR_MODE, MTR_FRONT_RIGHT, m.motor2_rpm_pcm);
|
||||
|
Reference in New Issue
Block a user