25326
Dependencies: QEI WS2812 PixelArray DFPlayerMini MODSERIAL PCA9685_ pca9685
Revision 9:4bc77e4c090e, committed 2019-08-23
- Comitter:
- turumputum
- Date:
- Fri Aug 23 16:58:47 2019 +0000
- Parent:
- 8:8f09c13d5138
- Commit message:
- 123
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sat Aug 03 14:47:46 2019 +0000 +++ b/main.cpp Fri Aug 23 16:58:47 2019 +0000 @@ -373,10 +373,10 @@ { pc.printf("\t %d",dist[i]); dist_tmp[i][0]=dist[i]; - if (abs(sensorsZeros[i]-dist_tmp[i][0])>DELTA && - abs(sensorsZeros[i]-dist_tmp[i][1])>DELTA && - abs(sensorsZeros[i]-dist_tmp[i][2])>DELTA && - abs(sensorsZeros[i]-dist_tmp[i][3])>DELTA ) { + if ((sensorsZeros[i]-dist_tmp[i][0])>DELTA && + (sensorsZeros[i]-dist_tmp[i][1])>DELTA && + (sensorsZeros[i]-dist_tmp[i][2])>DELTA && + (sensorsZeros[i]-dist_tmp[i][3])>DELTA ) { activated=sensormap[i]; }