|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
significance of encoder function getRaw()
Does anybody know what the value being returned by getRaw() actually signifies? and how is it distinct from get()?
|
|
#2
|
||||
|
||||
|
Re: significance of encoder function getRaw()
Quote:
Search for get() and getRaw() and look at the comment section preceding each method. |
|
#3
|
||||
|
||||
|
Re: significance of encoder function getRaw()
Code:
/**
* Read the current counter value.
* Read the value at this instant. It may still be running, so it reflects the current value. Next
* time it is read, it might have a different value.
*/
public int get() {
return m_counter.readOutput_Value();
}
Code:
/**
* Gets the raw value from the encoder.
* The raw value is the actual count unscaled by the 1x, 2x, or 4x scale
* factor.
* @return Current raw count from the encoder
*/
public int getRaw() {
int value;
if (m_counter != null) {
value = m_counter.get();
} else {
value = m_encoder.readOutput_Value();
}
return value;
}
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|