Motor

Dependents:   balance_all

motor.h

Committer:
ckalintra
Date:
2018-05-16
Revision:
0:8a7754ecb574

File content as of revision 0:8a7754ecb574:

#ifndef MOTOR_H
#define MOTOR_H

#include "mbed.h"

extern DigitalOut dir1, dir2, dir3, dir4;
extern PwmOut pwm1, pwm2;
extern Serial pc;
class MOTOR {
public:
    void balance(float speed);//counter the falling of the robot
    void forward();//go forward
    void backward();//go backward
    void left();//turn left
    void right();//turn right
    void stop();//stop the motors
protected:
    

};

#endif