From 0c643db7fbeaccb87a884236e3ef00fc8c918e87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20Mu=C3=B1oz?= Date: Wed, 25 Dec 2024 23:13:43 -0500 Subject: [PATCH] Modificacion para usar Puente H L298N en vez del integrado L293D --- robot_arduino/Robot_Seguidor/Motor_DC.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/robot_arduino/Robot_Seguidor/Motor_DC.h b/robot_arduino/Robot_Seguidor/Motor_DC.h index b323cd1..8003bbd 100644 --- a/robot_arduino/Robot_Seguidor/Motor_DC.h +++ b/robot_arduino/Robot_Seguidor/Motor_DC.h @@ -2,12 +2,12 @@ class Motor_DC { private: - int A; - int B; - int Pwm; + int IN1; + int IN2; + int ENA; public: - Motor_DC(int a,int b,int pwm): A(a), B(b),Pwm(pwm){}//Constructor + Motor_DC(int in1,int in2,int ena): IN1(in1), IN2(in2),ENA(ena){}//Constructor void Inicializar_Motor(); void Adelante(int Velocidad); void Atras(int Velocidad);