View Single Post
  #5   Spotlight this post!  
Unread 12-02-2011, 09:23
eddie12390's Avatar
eddie12390 eddie12390 is offline
Registered User
AKA: Eddie
FRC #3260 (SHARP)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Pittsburgh
Posts: 285
eddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of light
Re: Have problem on getting analog values from lane tracking sensor

1. Import AnalogChannel

2. Use this is to initialize the sensor:

Code:
AnalogChannel color = new AnalogChannel(channel number);
3. Use this to read the value:

Code:
System.out.println(color.getValue());
That'll probably take a ton of testing to figure out what darkness is what but you'll get there with enough work.
Reply With Quote