Anyone interested in updating this project to Android Studio with current
IOIO version?
https://github.com/UCI-ABR/ABR_FollowLeader
I have been trying for a week, but my limited knowledge of Android and IOIO
have left me guessing.
Android based Autonomous Robot: navigate, Identify, and manipulate objects
OpenCV identifies centroid HSV blob moves pan/tilt & drive/turn to track
object
minSDK 19, Target SDK 23
Android device connects to IOIO via bluetooth
Hardware includes Ackerman steering with 2 DOF w/ Pan&Tilt gamble
I've updated to IOIO firmware 506, and IOIOLib 5.07
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)
--
You received this message because you are subscribed to the Google Groups
"ioio-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/ioio-users.
For more options, visit https://groups.google.com/d/optout.