2024-12-25 21:57:57 -06:00
|
|
|
#include "Motor_DC.h"
|
|
|
|
class Base_Robot
|
|
|
|
{
|
|
|
|
private:
|
2024-12-25 22:21:35 -06:00
|
|
|
|
|
|
|
|
2024-12-25 21:57:57 -06:00
|
|
|
public:
|
2024-12-25 22:21:35 -06:00
|
|
|
Motor_DC Motor_1;
|
|
|
|
Motor_DC Motor_2;
|
|
|
|
Base_Robot(int IN1,int IN2,int ENA, int IN3, int IN4,int ENB):
|
|
|
|
Motor_1(IN1,IN2,ENA), Motor_2(IN3,IN4,ENB){}
|
|
|
|
void Inicializar_Robot();
|
|
|
|
void Adelante(int Velocidad_1,int Velocidad_2);
|
|
|
|
void Atras(int Velocidad_1,int Velocidad_2);
|
|
|
|
void Stop();
|
2024-12-25 21:57:57 -06:00
|
|
|
};
|