View Single Post
  #2   Spotlight this post!  
Unread 19-02-2013, 21:04
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 588
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: How do i initialize the GearTooth sensor

Try replacing the setupSource() method with start(). This will start the GearToothSensor listening on port 3 for the counts.

You don't need to set up the port since you are passing the channel number (3 in your case) to the constructor. The GearToothSensor object will allocate a the port for you.

Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote