mirror of
				https://github.com/alexandrebobkov/ESP-Nodes.git
				synced 2025-11-04 15:14:10 +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