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: ForceRead.cpp
- Revision:
- 9:7d6fa62f9022
- Parent:
- 8:a435e7aa7a02
- Child:
- 10:3fcaf50f528f
--- a/ForceRead.cpp Fri Mar 29 01:29:39 2019 +0000 +++ b/ForceRead.cpp Tue Jun 25 02:10:31 2019 +0000 @@ -115,22 +115,22 @@ force_R[2] = force_R3.read(); force_R[3] = force_R4.read(); - //bt.printf("%1.3f,%1.3f,%1.3f,%1.3f,%1.3f,%1.3f,%1.3f,%1.3f\n", force_L[0],force_L[1],force_L[2],force_L[3],force_R[0],force_R[1],force_R[2],force_R[3]); - bt.putc('<'); - bt.putc('F'); - bt.putc('O'); - bt.putc('T'); - bt.putc((char)((unsigned int)(force_L[0]*127))); - bt.putc((char)((unsigned int)(force_L[1]*127))); - bt.putc((char)((unsigned int)(force_L[2]*127))); - bt.putc((char)((unsigned int)(force_L[3]*127))); - bt.putc((char)((unsigned int)(force_R[0]*127))); - bt.putc((char)((unsigned int)(force_R[1]*127))); - bt.putc((char)((unsigned int)(force_R[2]*127))); - bt.putc((char)((unsigned int)(force_R[3]*127))); - bt.putc('>'); - bt.putc('\r'); - bt.putc('\n'); + bt.printf("%1.3f,%1.3f,%1.3f,%1.3f\n",force_R[0],force_R[1],force_R[2],force_R[3]); +// bt.putc('<'); +// bt.putc('F'); +// bt.putc('O'); +// bt.putc('T'); +// bt.putc((char)((unsigned int)(force_L[0]*127))); +// bt.putc((char)((unsigned int)(force_L[1]*127))); +// bt.putc((char)((unsigned int)(force_L[2]*127))); +// bt.putc((char)((unsigned int)(force_L[3]*127))); +// bt.putc((char)((unsigned int)(force_R[0]*127))); +// bt.putc((char)((unsigned int)(force_R[1]*127))); +// bt.putc((char)((unsigned int)(force_R[2]*127))); +// bt.putc((char)((unsigned int)(force_R[3]*127))); +// bt.putc('>'); +// bt.putc('\r'); +// bt.putc('\n');