View Single Post
  #1   Spotlight this post!  
Unread 19-02-2013, 20:42
Gmercer Gmercer is offline
Registered User
None #1631
 
Join Date: Jan 2013
Location: Las Vegas
Posts: 15
Gmercer is an unknown quantity at this point
How do i initialize the GearTooth sensor

I just received a GearTooth sensor today to program into the robot in order to keep track of RPM, but i have no clue how to set up the gearTooth. I read the documentation on the class but couldn't figure out what to do, here is what i currently have:

Declaration:
Code:
GearTooth shootSensor = new GearTooth(3);
in the robot initialize function:
Code:
shootSensor.setupSource(3);
my data function(called every two seconds in the main loop):
Code:
SmartDashboard.putNumber("Test:",shootSensor.getPeriod());
no values though, what could i be doing wrong?
Reply With Quote