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:
- 10:0a4bf8c82493
- Parent:
- 9:d1fc0805ec7d
- Child:
- 11:af917eb0e624
--- a/main.cpp Wed Oct 14 13:44:32 2015 +0000 +++ b/main.cpp Thu Nov 26 08:14:41 2015 +0000 @@ -1,4 +1,8 @@ -//@todo ソフトウェアシリアルの確認 +//@todo timerの精度の確認 + +//@todo Initのコマンドモード化 + +//@todo ソフトウェアシリアルの確認等 //@todo androidとの通信 //@todo xbeeとの通信 @@ -33,6 +37,7 @@ void pc_rx(){ while(pc.readable()==1){ + //コマンドモードのon,offはここに入れる char buf = (char)pc.getc(); Global::queue.put((char*)buf); } @@ -48,6 +53,7 @@ void controlTask(void const *pvParameters){ while(1){ + //この中でprintfはしないほうがいいみたい(9600bpsだと遅延が起こります) trim.update(); controllerManager.update(); servoManager.update(); @@ -72,7 +78,7 @@ void displayTask(void const *pvParameters){ while(1){ display.update(); - Thread::wait(500); + Thread::wait(100); } }