アナログ出力ボールセンサー

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
tajiri1999
Date:
Sun Aug 26 18:56:03 2018 +0000
Parent:
1:2323498aeca2
Commit message:
2

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sun Aug 26 18:43:49 2018 +0000
+++ b/main.cpp	Sun Aug 26 18:56:03 2018 +0000
@@ -33,7 +33,7 @@
     while(1){
         double Ball[16] = {0,0,0,0,0,0,0,0,0,0,0,0};
         
-        for(int i = 1; i < rate; i++){//サンプリング
+        for(int i = 1; i <= rate; i++){//サンプリング
             if(IR0 == 1){
                 Ball[0] += 1;
                 }