Quote:
Originally Posted by MisterL
This is all helpful, I only wish I had more expertise in Java. This is still kind of a new thing for me to learn so I am completely out of my league. Thank you for your help! If you are able to help a little more on the
if(middle.get())
concept that would help. I can't help but feel I am missing something here.
|
The line sensors send true if a line is underneath and false if there is not a line underneath. The get method return that value. Basically, middle is the digital input plugged in to slot 1. if(middle.get()) checks to see if there is a line underneath that sensor. That's my impression of it, anyway. We only used line sensors temporarily, since we aren't sure if we'll even have a functioning arm to use with them.