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: DriveConroller IMU MDD Mycan Odometer PID RotaryEncoder UART USS mbed
Fork of AR_MastarNode by
Diff: main.cpp
- Revision:
- 13:0479a4f3e997
- Parent:
- 12:91218718ae75
- Child:
- 14:8334c241bb0a
- Child:
- 18:268ab2ab0b2a
--- a/main.cpp Sat Sep 15 00:16:35 2018 +0000 +++ b/main.cpp Sat Sep 15 06:48:13 2018 +0000 @@ -91,13 +91,17 @@ odm.x = 0; timer.start(); - changeToBlueZone(); - while(1) { riseUssTriger(); can.read(); + int sw[9]; + for(int i = 0; i < 9; i++) + sw[i] = can.get(2, i + 1); + if(sw[8] == 0) + changeToBlueZone(); + //目指すべきロボットの状態を取得 state tar_state = getTargetState();