Yosuke Kirihata / Mbed 2 deprecated Nucleo_CaitSith_Firmware_added_delayServo

Dependencies:   mbed

Fork of Nucleo_CaitSith_Firmware by Yosuke Kirihata

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 SendData::SendData() {
00020 
00021 }
00022 
00023 SendData::SendData(int left, int right) {
00024     wheelVelocity[0] = left;
00025     wheelVelocity[1] = right;
00026 }
00027 
00028 int SendData::get(int index) {
00029     int result = -1;
00030             
00031     if (0 <= index && index < 2) {
00032         result = wheelVelocity[index];
00033     }
00034     return result;
00035 }