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 SpeedController Encoder CruizCore_R1370P
Diff: main.cpp
- Revision:
- 5:36cefeaeb594
- Parent:
- 4:6a8cd13da02d
- Child:
- 6:5f7db16f8ade
--- a/main.cpp Thu Mar 05 07:09:27 2020 +0000 +++ b/main.cpp Thu Mar 05 07:17:44 2020 +0000 @@ -1,3 +1,4 @@ + #include "mbed.h" #include "EC.h" #include "SpeedController.h" @@ -156,6 +157,7 @@ } int main() { + printf("a"); gyro.initialize(); //main関数の最初に一度だけ実行 gyro.acc_offset(); printf("start\r\n"); @@ -218,7 +220,7 @@ motor[j].Sc(0); } wait(2); - ticker.attach(motorOut,0.05); + ticker.attach(motorOut,0.05); } }