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:
GearTooth shootSensor = new GearTooth(3);
in the robot initialize function:
shootSensor.setupSource(3);
my data function(called every two seconds in the main loop):
SmartDashboard.putNumber("Test:",shootSensor.getPeriod());
no values though, what could i be doing wrong?