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.
Diff: main.cpp
- Revision:
- 2:fdd8a3074d79
- Parent:
- 1:bab46c2f0263
- Child:
- 3:809e6c637f91
diff -r bab46c2f0263 -r fdd8a3074d79 main.cpp --- a/main.cpp Fri Sep 20 08:56:56 2019 +0000 +++ b/main.cpp Fri Sep 20 09:05:47 2019 +0000 @@ -25,12 +25,16 @@ //エンコーダ値格納用変数 static double y; + //エンコーダの値(生)の取得 y=(double)wheel.getPulses(); + //エンコーダの値を角度に変換 y=y*360/(ROTATE_PER_REVOLUTIONS); + //エンコーダ値(角度)の表示(TeraTerm) printf("%f\r\n",y); + //待機時間(1ミリ秒) wait(delt_ms);