Dependencies:   ros_lib_kinetic

Revision:
34:54e9ebe9e87f
Parent:
33:9877ca32e43c
Child:
36:4459be8296e9
--- a/main.cpp	Wed Mar 13 11:59:58 2019 +0000
+++ b/main.cpp	Mon Apr 15 15:12:51 2019 +0000
@@ -76,7 +76,7 @@
                 double maxDistanceToTarget_mm = 0.0;
                 for(short int i=0; i<3; i++) {
                     short int channel = segNum*3+i;
-                    if(channel==8) { // !!!!!!!!!!!!!!!! This is horrible
+                    if(channel>=N_CHANNELS) { // !!!!!!!!!!!!!!!! This is horrible
                         continue;
                     }
                     double dblCurrentPosition_mm = llcomms.positionSensor_mm[channel];