View Single Post
  #4   Spotlight this post!  
Unread 20-02-2011, 13:01
PranavSathy PranavSathy is offline
Team Captain
AKA: Pranav Sathyanarayanan
FRC #0263 (Sachem Aftershock)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Holbrook, New York
Posts: 27
PranavSathy is an unknown quantity at this point
Re: Programming Light Sensor

I just want to point out though that your signal return, a.k.a the DigitalInput->Get() on the sensor will vary depending on which wire you put for the digital input, the Black (light out), or White(dark out), the code above would work for the white wire, Dark out, which will return 1 if it is on the line, and 0 if it is not. Good luck!
Reply With Quote