![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
アナログ出力ボールセンサー
Revision 2:7c4a8e9f7db8, committed 2018-08-26
- 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 |
diff -r 2323498aeca2 -r 7c4a8e9f7db8 main.cpp --- 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; }