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.
Dependencies: Command CommandPool GenCMD LSM9DS0 Mode Motor PinDetect Xbee mbed
Fork of VR_Robot by
Diff: main.cpp
- Revision:
- 2:d77f669c7feb
- Parent:
- 0:526a865b9b03
- Child:
- 5:c1b3251ba5d5
--- a/main.cpp Sat Nov 21 17:22:37 2015 +0000
+++ b/main.cpp Sun Nov 22 01:05:12 2015 +0000
@@ -1,33 +1,18 @@
+#pragma once
#include "mbed.h"
#include "CommandPool.h"
-
-/* draft code
-
- Serial med1(ptx,prx); // used for read data from another mbed
-
- Command* cmd;
-
- char cmd_buffer[20]; // data buffer
- CommandPool pool;
-
- void callBack() // when cmd_buffer obtained something, update cmd
- {
- cmd = pool.getCommand(cmd_buffer);
- }
-
-*/
-
+#include "Xbee.h"
Command* cmd;
CommandPool pool;
-char CMD = LED;
-Serial pc(USBTX,USBRX);
+char CMD = MOVE_FORWARD;
+
int main()
{
/* draft of main code*/
pool.init();
-
+
while(1)
{
//if(med1.readable())
