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
Revision 1:307e6821d26f, committed 2017-03-20
- Comitter:
- bobolee1239
- Date:
- Mon Mar 20 15:49:39 2017 +0000
- Parent:
- 0:aa69084e1cae
- Commit message:
- Motor
Changed in this revision
ID_motor.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/ID_motor.cpp Mon Mar 20 15:32:29 2017 +0000 +++ b/ID_motor.cpp Mon Mar 20 15:49:39 2017 +0000 @@ -122,9 +122,13 @@ rotation_speed_1 = (float)speed_count_1*100.0f/ 12.0f* 60.0f/ 29.0f ; // unit: rpm speed_count_1 = 0 ; // initialize for another time pc.printf("Wm1 = %f (rpm) \n", rotation_speed_1) ; // Serial print to know Wm + // read Data to Matlab + // pc.printf("%f ",rotation_speed_1); // monitor for motor 2 rotation_speed_2 = (float)speed_count_2*100.0f/ 12.0f* 60.0f/ 29.0f ; // unit: rpm speed_count_2 = 0 ; // initialize for next time pc.printf("Wm2 = %f (rpm) \n", rotation_speed_2) ; // Serial print to know Wm +// read Data to Matlab +//pc.printf("%f ", rotation_speed_2) ; } \ No newline at end of file