Program displays live camera view with overlay of detected color blobs (no crash).
Crash when “AUTO” button is pressed, image is used to calculate changes to Pan/Tilt servers as well as Forward/Reverse/Turn PWM electronic speed control. Crash occurs when attempting IOIO pulse width on a NULL object. I set breakpoints in setup() {which should catch when IOIO is powerd-on}, but they never trip, so the object is never instantiated.
java.lang.Thread.run(Thread.java:818) 01-08 06:11:27.158 15300-15588/
com.abr_followleader E/AndroidRuntime: FATAL EXCEPTION: Thread-1573
Process: com.abr_followleader, PID: 15300
java.lang.NullPointerException: Attempt to invoke interface method
void ioio.lib.api.PwmOutput.setPulseWidth(int)' on a null object reference
com.abr_followleader.IOIO_thread.turn(IOIO_thread.java:112)
com.abr_followleader.Main_activity.onCameraFrame(Main_activity.java:296)