Only imu output

Dependencies:   Servo mbed

Fork of FYDP_Final2 by Mark Vandermeulen

motors/motors.h

Committer:
tntmarket
Date:
2015-03-25
Revision:
5:d2e955a94940
Parent:
0:21019d94ad33

File content as of revision 5:d2e955a94940:

#ifndef MOTORS_H
#define MOTORS_H

#include "mbed.h"
#include "TB6612.h"

class Motors
{
    private:
        
    void stop(void const *args);
    
    public:    
    
    TB6612 * Left;
    TB6612 * Right;        
    DigitalOut enable;
    
    Motors(TB6612 * L, TB6612 * R, PinName STBY);
    
    void flip();                
    void reverse(bool m);   //reverse one of the motors (0=right, 1=left) 
};
#endif