Thread: RPM calculator
View Single Post
  #12   Spotlight this post!  
Unread 28-02-2012, 23:00
ProgrammerMatt ProgrammerMatt is offline
Programmer-Electrical-Mechanical
FRC #0228 (Gus)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Southington
Posts: 138
ProgrammerMatt is just really niceProgrammerMatt is just really niceProgrammerMatt is just really niceProgrammerMatt is just really nice
Re: RPM calculator

Does it output analog or digital? if its digital try using the Counter class, if its analog then use something like
Code:
int count
if(encoder.getVoltage() >"voltage when ticked") {
count = count + 1; // or count ++;
P.S i would think it is digital but if its not try that /\
Reply With Quote