|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#13
|
|||||
|
|||||
|
Re: Rockwell sensor as a encoder/counter
We use the "getPeriod()" method in the Counter class. Something (in Java) like:
Code:
public final static double kTicksPerRevolution = 2.0;
private Counter counter;
double getRPM()
{
return 60.0/(counter.getPeriod()*kTicksPerRevolution);
}
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|