Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: ros_lib_kinetic
Diff: main.cpp
- Revision:
- 34:54e9ebe9e87f
- Parent:
- 33:9877ca32e43c
- Child:
- 36:4459be8296e9
diff -r 9877ca32e43c -r 54e9ebe9e87f main.cpp
--- 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];