Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Nucleo_CaitSith_Firmware by
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 }
Generated on Sat Jul 16 2022 17:03:40 by
1.7.2
