SparkFun_MLX90640_Arduino_Example icon indicating copy to clipboard operation
SparkFun_MLX90640_Arduino_Example copied to clipboard

MLXHeatCam Array Error

Open tmsd2001 opened this issue 6 years ago • 0 comments

When I use the processing sketch (MLXHeatCam.pde) I get an Error: ArrayIndexOutOfBoundsException: 687 If I use the debug tool and start each frame by hand, there is no Error. I fix this Error with change Line 96 and 108 to: for(int q = 0; q < splitString.length; q++){ I use the cam indoor Temp from 24°C to 38°C. If I change the location to outdoor, Temp from 2°C to 15°C I get the other Error on Line 113: ArrayIndexOutOfBoundsException: 768 This Error I fix with change Line 96 and 108 to: for(int q = 0; q < (splitString.length - 1); q++){ I thing this cames from the last "," in the "myString" variable.

tmsd2001 avatar Mar 31 '19 12:03 tmsd2001