mbed_robotcar / Mbed OS avoidance

Files at this revision

API Documentation at this revision

Comitter:
nishimura_taku_pet
Date:
Mon Jul 27 05:01:04 2020 +0000
Parent:
9:5f197f0fa9bd
Child:
11:8fe62237a6a6
Commit message:
add watchsurrounding

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Jul 27 01:43:23 2020 +0000
+++ b/main.cpp	Mon Jul 27 05:01:04 2020 +0000
@@ -98,6 +98,7 @@
 /* 障害物回避走行 */
 void avoidance(void const *argument){
     while(1){
+        watchsurrounding();
         if(flag == 0){                      // 障害物がない場合
             run = ADVANCE;                  // 前進
         }