|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.krisharris.mpk.AnalogIn
public class AnalogIn
Used for cacheing and calabrating the Analog inputs
| Constructor Summary | |
|---|---|
AnalogIn()
|
|
| Method Summary | |
|---|---|
float |
getFloatValue()
If you've set calabration beware: this value COULD go below 0 or above 1. |
int |
getValue()
|
void |
setCalabration(float min,
float max)
Sets the calabration for getFloatValue() |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnalogIn()
| Method Detail |
|---|
public void setCalabration(float min,
float max)
min - number in the range of (0..1023) repersenting the zero valuemax - number in the range of (0..1023) repersenting the maximum
valuepublic int getValue()
public float getFloatValue()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||