Yosuke Kirihata / Mbed 2 deprecated Nucleo_roomba

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Data.cpp Source File

Data.cpp

00001 #include <mbed.h>
00002 #include "Data.h"
00003 
00004 /**
00005  * 
00006  */
00007 Data::Data() {
00008 }
00009 
00010 Data::~Data() {
00011 
00012 }
00013 
00014 
00015 /**
00016  *
00017  */
00018 
00019 //LENGHT = 2;
00020 
00021 SendData::SendData(int left, int right) {
00022     wheelVelocity[0] = left;
00023     wheelVelocity[1] = right;
00024 }
00025 
00026 int get(int index) {
00027     int result = -1;
00028             
00029 //    if (0 <= index && index < 2) {
00030 //        result = wheelVelocity[index];
00031 //    }
00032     return result;
00033 }
00034