mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-11-05 08:04:50 +00:00
PWM
This commit is contained in:
@@ -116,6 +116,10 @@ static void update_pwm (int rc_x, int rc_y) {
|
|||||||
//set_motor_direction();
|
//set_motor_direction();
|
||||||
//set_motor_speed();
|
//set_motor_speed();
|
||||||
// Pass PWM values to the proper DC motors depending on the joystick y-axis position
|
// Pass PWM values to the proper DC motors depending on the joystick y-axis position
|
||||||
|
// Forward
|
||||||
|
if (y_val > y_centered) {}
|
||||||
|
// Reverse
|
||||||
|
if (y_val < y_centered) {}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user