Program to show how to drive the m3pi using RPC commands over the serial port

Dependencies:   mbed m3pi

Files at this revision

API Documentation at this revision

Comitter:
chris
Date:
Tue Nov 02 16:28:39 2010 +0000
Child:
1:8828d71a0cc2
Commit message:
Updated USB Serial port to 9600 default

Changed in this revision

RPCInterface.lib Show annotated file Show diff for this revision Revisions of this file
m3pi.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/RPCInterface.lib	Tue Nov 02 16:28:39 2010 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/MichaelW/code/RPCInterface/#08eeda3aae92
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/m3pi.lib	Tue Nov 02 16:28:39 2010 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/chris/code/m3pi/#c38d2f980494
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Nov 02 16:28:39 2010 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+#include "m3pi.h"
+#include "SerialRPCInterface.h"
+
+SerialRPCInterface Interface(USBTX, USBRX); // defaults to 9600
+m3pi pi(p8,p9,p10);
+
+int main() {
+
+    pi.locate(0,1);
+    pi.printf("USB RPC");
+
+    // do nothing, just wait for RPC comands over USB
+    while (1) {}
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Nov 02 16:28:39 2010 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/e2ac27c8e93e