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 9:674a1131da7b, committed 2018-08-10
- Comitter:
- kurikuri
- Date:
- Fri Aug 10 18:13:43 2018 +0000
- Parent:
- 8:01fdbe4e967a
- Commit message:
- ????????????????
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Aug 10 18:09:43 2018 +0000 +++ b/main.cpp Fri Aug 10 18:13:43 2018 +0000 @@ -292,8 +292,8 @@ pc.printf("%f\n\r",dirN0); } +//方角だす void compass(){ - while(1){ int16_t mx, my, mz; float magX, magY, magZ, mag; int theta; @@ -305,5 +305,4 @@ theta = (int)(180.0 * atan2(magY, magX) / 3.14) + 180; // 角度の表示 pc.printf("%d\n\r", theta); - } } \ No newline at end of file