sparkfun / SparkFun_MLX90640_Arduino_Example

Controlling and reading from the MLX90640 IR array thermal imaging sensor
https://www.sparkfun.com/
Other
122 stars 35 forks source link

MLXHeatCam Array Error #13

Open tmsd2001 opened 5 years ago

tmsd2001 commented 5 years ago

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.