Go to Post just a gentle reminder not to limit yourself to just one viewpoint - every problem can and should be examined from different angles - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Spotlight this post!  
Unread 19-02-2011, 16:47
ArchVince's Avatar
ArchVince ArchVince is offline
Registered User
FRC #1290 (Si Se Puede)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Chandler High School
Posts: 26
ArchVince will become famous soon enough
Re: Autonomous Photosensor Programming

Quote:
Originally Posted by MisterL View Post
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.
__________________
PETA wants your help finding Schrödinger.
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 13:24.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi