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.
Dependents: newlib PID Robot WarehouseBot1 ... more
Fork of m3pi_ng by
Revision 1:816a80dcc1a3, committed 2010-10-29
- Comitter:
- chris
- Date:
- Fri Oct 29 13:30:11 2010 +0000
- Parent:
- 0:e6020bd04b45
- Child:
- 2:330eb028e85b
- Commit message:
- 1.1 - Added some additional features, including PID demo
Changed in this revision
| m3pi.cpp | Show annotated file Show diff for this revision Revisions of this file |
| m3pi.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/m3pi.cpp Fri Oct 29 13:25:07 2010 +0000
+++ b/m3pi.cpp Fri Oct 29 13:30:11 2010 +0000
@@ -186,7 +186,7 @@
#ifdef MBED_RPC
const rpc_method *m3pi::get_rpc_methods() {
static const rpc_method rpc_methods[] = {{ "forward", rpc_method_caller<m3pi, float, &m3pi::forward> },
- { "backward", rpc_method_caller<m3pi, float, &m3pi::back> },
+ { "backward", rpc_method_caller<m3pi, float, &m3pi::backward> },
{ "left", rpc_method_caller<m3pi, float, &m3pi::left> },
{ "right", rpc_method_caller<m3pi, float, &m3pi::right> },
{ "stop", rpc_method_caller<m3pi, &m3pi::stop> },
--- a/m3pi.h Fri Oct 29 13:25:07 2010 +0000
+++ b/m3pi.h Fri Oct 29 13:30:11 2010 +0000
@@ -177,6 +177,11 @@
*/
void reset_calibration (void);
+ void PID_start(int max_speed, int a, int b, int c, int d);
+
+ void PID_stop();
+
+
/** Locate the cursor on the 8x2 LCD
*
* @param x The horizontal position, from 0 to 7
