Yosuke Kirihata / Mbed 2 deprecated Nucleo_roomba

Dependencies:   mbed

Committer:
YosukeK
Date:
Sat Feb 14 11:32:14 2015 +0000
Revision:
2:144ca2f5d850
????????????????????

Who changed what in which revision?

UserRevisionLine numberNew contents of line
YosukeK 2:144ca2f5d850 1 #include <mbed.h>
YosukeK 2:144ca2f5d850 2 #include "Data.h"
YosukeK 2:144ca2f5d850 3
YosukeK 2:144ca2f5d850 4 /**
YosukeK 2:144ca2f5d850 5 *
YosukeK 2:144ca2f5d850 6 */
YosukeK 2:144ca2f5d850 7 Data::Data() {
YosukeK 2:144ca2f5d850 8 }
YosukeK 2:144ca2f5d850 9
YosukeK 2:144ca2f5d850 10 Data::~Data() {
YosukeK 2:144ca2f5d850 11
YosukeK 2:144ca2f5d850 12 }
YosukeK 2:144ca2f5d850 13
YosukeK 2:144ca2f5d850 14
YosukeK 2:144ca2f5d850 15 /**
YosukeK 2:144ca2f5d850 16 *
YosukeK 2:144ca2f5d850 17 */
YosukeK 2:144ca2f5d850 18
YosukeK 2:144ca2f5d850 19 //LENGHT = 2;
YosukeK 2:144ca2f5d850 20
YosukeK 2:144ca2f5d850 21 SendData::SendData(int left, int right) {
YosukeK 2:144ca2f5d850 22 wheelVelocity[0] = left;
YosukeK 2:144ca2f5d850 23 wheelVelocity[1] = right;
YosukeK 2:144ca2f5d850 24 }
YosukeK 2:144ca2f5d850 25
YosukeK 2:144ca2f5d850 26 int get(int index) {
YosukeK 2:144ca2f5d850 27 int result = -1;
YosukeK 2:144ca2f5d850 28
YosukeK 2:144ca2f5d850 29 // if (0 <= index && index < 2) {
YosukeK 2:144ca2f5d850 30 // result = wheelVelocity[index];
YosukeK 2:144ca2f5d850 31 // }
YosukeK 2:144ca2f5d850 32 return result;
YosukeK 2:144ca2f5d850 33 }
YosukeK 2:144ca2f5d850 34