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 m3pi by
Revision 3:c38d2f980494, committed 2010-11-01
- Comitter:
- chris
- Date:
- Mon Nov 01 23:30:09 2010 +0000
- Parent:
- 2:330eb028e85b
- Child:
- 4:54c673c71fc0
- Commit message:
- Added line_position and auto calibrate to the RPC function list
Changed in this revision
| m3pi.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/m3pi.cpp Mon Nov 01 16:18:55 2010 +0000
+++ b/m3pi.cpp Mon Nov 01 23:30:09 2010 +0000
@@ -193,7 +193,8 @@
{ "left_motor", rpc_method_caller<m3pi, float, &m3pi::left_motor> },
{ "right_motor", rpc_method_caller<m3pi, float, &m3pi::right_motor> },
{ "battery", rpc_method_caller<float, m3pi, &m3pi::battery> },
- { "sensors", rpc_method_caller<float, m3pi, &m3pi::line_position> },
+ { "line_position", rpc_method_caller<float, m3pi, &m3pi::line_position> },
+ { "sensor_auto_calibrate", rpc_method_caller<char, m3pi, &m3pi::sensor_auto_calibrate> },
RPC_METHOD_SUPER(Base)
