Yosuke Kirihata / Mbed 2 deprecated Nucleo_roomba

Dependencies:   mbed

Data.cpp

Committer:
YosukeK
Date:
2015-02-14
Revision:
2:144ca2f5d850

File content as of revision 2:144ca2f5d850:

#include <mbed.h>
#include "Data.h"

/**
 * 
 */
Data::Data() {
}

Data::~Data() {

}


/**
 *
 */

//LENGHT = 2;

SendData::SendData(int left, int right) {
    wheelVelocity[0] = left;
    wheelVelocity[1] = right;
}

int get(int index) {
    int result = -1;
            
//    if (0 <= index && index < 2) {
//        result = wheelVelocity[index];
//    }
    return result;
}