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: RemoteIR TextLCD
Diff: main.cpp
- Revision:
- 8:55930d5e00e0
- Parent:
- 7:180130e86bfe
- Child:
- 9:4ee4fcfd6a5c
--- a/main.cpp Wed Jul 29 07:44:09 2020 +0000 +++ b/main.cpp Wed Jul 29 07:46:13 2020 +0000 @@ -57,7 +57,7 @@ int beforeMode; // 前のモード int flag_sp = 0; // スピード変化フラグ Timer viewTimer; // スピ―ド変更時に3秒計測 -float motorSpeed[6] = {0.7, 0.8, 0.9, 0.8, 0.9, 1.0}; +float motorSpeed[9] = {0.7, 0.8, 0.9, 0.75, 0.85, 0.95, 0.8, 0.9, 1.0}; // モーター速度設定(後半はライントレース用) Mutex mutex; // ポートp15を赤外線受信モジュールの接続先に指定 @@ -281,6 +281,14 @@ flag_sp += 3; run = LEFT; break; + case 6: + flag_sp += 6; + run = RIGHT; + break; + case 7: + flag_sp += 6; + run = LEFT; + break; } pc.printf(" line trace\r\n"); ThisThread::sleep_for(30);