Rui Kato
/
Nucleo_SS2_No2
2号機
Fork of Nucleo_SS2 by
Diff: main.cpp
- Revision:
- 5:ab74616c24b4
- Parent:
- 4:04ca6a211b85
- Child:
- 6:d264f7f2b781
diff -r 04ca6a211b85 -r ab74616c24b4 main.cpp --- a/main.cpp Tue Dec 12 00:34:36 2017 +0000 +++ b/main.cpp Tue Dec 12 00:49:19 2017 +0000 @@ -57,15 +57,14 @@ /*flag.attach(&flg, 1.0);*/ -while(1){ - +while(1) { usensor1.start(); usensor2.start(); - wait(0.2); - dist1=usensor1.get_dist_cm(); - dist2=usensor2.get_dist_cm(); - /*printf("dist1: %ld\n",dist1); */ - printf("dist2: %ld\n",dist2); +wait(0.2); +dist1=usensor1.get_dist_cm(); +dist2=usensor2.get_dist_cm(); +/*printf("dist1: %ld\n",dist1); */ +printf("dist2: %ld\n",dist2); /* switch(timer) @@ -243,4 +242,4 @@ break; } } - } +} }