Dependencies:   Motordriver mbed-rtos mbed

Fork of MultiModalRobotSM by Hemanth Koralla

MultiModalRobot/MultiModalRobot.h

Committer:
baijun
Date:
2017-12-12
Revision:
21:21f72bd7f649
Parent:
20:e1a78ee68726

File content as of revision 21:21f72bd7f649:

#ifndef MULTIMODALROBOT_H
#define MULTIMODALROBOT_H

#include "motordriver.h"

class MultiModalRobot {
    private:
        Motor& leftWheel;
        Motor& rightWheel;
        int leftDir; //0 if stopped -1 if backwards +1 if forwards
        int rightDir;
    public:
        MultiModalRobot(Motor& left, Motor& right);   
        void driveWheels(float leftSpeed, float rightSpeed);
        void stop(float dutyCycle);    
    
};

#endif