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: mbed
Diff: MotorControl.cpp
- Revision:
- 15:e5e34512a00e
- Parent:
- 14:d059d99e9b5e
- Child:
- 19:67584cb64b9c
--- a/MotorControl.cpp Wed Jul 03 08:39:20 2019 +0000 +++ b/MotorControl.cpp Thu Jul 04 07:02:38 2019 +0000 @@ -205,13 +205,14 @@ bt.printf("%dth: %1.4f\r\n",onewayNum,s); -// if(!nFaultFlag) -// { + if(!nFaultFlag) + { + return; // enable = 0; // nreset = 0; // p1=0; // p2=0; -// } + } if(s>=0) { enable = 1; @@ -243,11 +244,15 @@ enable = 0; nreset = 0; timer3.detach(); - bt.putc('<'); - bt.putc('M'); - bt.putc('E'); - bt.putc('>'); - bt.putc('\r'); + + bt.puts("<ME>\r\n"); + +// bt.putc('<'); +// bt.putc('M'); +// bt.putc('E'); +// bt.putc('>'); +// bt.putc('\r'); +// bt.putc('\n'); } }