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.
Revision 6:d66df9640147, committed 2021-04-30
- Comitter:
- ccpjboss
- Date:
- Fri Apr 30 12:47:31 2021 +0100
- Parent:
- 5:22ad3005bc11
- Commit message:
- delete com
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.hgignore Fri Apr 30 12:47:31 2021 +0100 @@ -0,0 +1,3 @@ +^BUILD$ +^.mbed$ +^mbed-os$
--- a/BufferedSerial.lib Fri Apr 30 12:23:33 2021 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -https://os.mbed.com/users/sam_grove/code/BufferedSerial/#7e5e866edd3d
--- a/Communication.cpp Fri Apr 30 12:23:33 2021 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,35 +0,0 @@ -#include "Communication.h" -#include "mbed.h" -#include "MessageBuilder.h" - -const char max_len = 30; -Serial *serial_object; -MessageBuilder bin_msg; - -void init_communication(Serial *serial_in) -{ - serial_object = serial_in; -} - -void write_bytes(char *ptr, unsigned char len) -{ - for(int i=0; i<len; i++) - { - serial_object->putc(ptr[i]); - } -} - -void send_odometry(int value1, int value2, int ticks_left, int ticks_right, float x, float y, float theta) -{ - bin_msg.reset(); - bin_msg.add('O'); - bin_msg.add(value1); - bin_msg.add(value2); - bin_msg.add(ticks_left); - bin_msg.add(ticks_right); - bin_msg.add(x); - bin_msg.add(y); - bin_msg.add(theta); - - write_bytes(bin_msg.message, bin_msg.length()); -} \ No newline at end of file
--- a/Communication.h Fri Apr 30 12:23:33 2021 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ -#ifndef COMMUNICATION_H -#define COMMUNICATION_H - -#include "mbed.h" - -void init_communication(Serial *serial_in); -void write_bytes(char *ptr, unsigned char len); -void send_odometry(int value1, int value2, int ticks_left, int ticks_right, float x, float y, float theta); - -#endif
--- a/mbed-os.lib Fri Apr 30 12:23:33 2021 +0100 +++ b/mbed-os.lib Fri Apr 30 12:47:31 2021 +0100 @@ -1,1 +1,1 @@ -https://github.com/ARMmbed/mbed-os#331473a70619afbef10832236bd6085bc5cf5f54 \ No newline at end of file +https://github.com/ARMmbed/mbed-os#9738b27c7df897c29e9769911d6794ba3e5b3f19 \ No newline at end of file