k

Dependencies:   m3pi mbed

Fork of m3pi_HelloWorld by Chris Styles

Controller.cpp

Committer:
pietor
Date:
2017-04-19
Revision:
8:a6afbbc052e2

File content as of revision 8:a6afbbc052e2:

/**
    Controller.cpp
    Purpose:

    @author Pieter Berteloot
*/

#include "mbed.h"
#include "Controller.h"
#include "m3pi.h"

m3pi m3pi;

//constructor
Controller::Controller() {
        
    m3pi.locate(0,1);
};


void Controller::leftMotor(float speedLeft)
{
    
m3pi.left_motor(speedLeft); 

}

void Controller::rightMotor(float speedRight)
{
    
m3pi.right_motor(speedRight); 

}