|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectkoala.KoalaSensorReading
public class KoalaSensorReading
Class which stores a sensor reading, comprising values from each of the 16 sensors.
| Field Summary | |
|---|---|
int[] |
leftSensors
|
int[] |
rightSensors
|
| Constructor Summary | |
|---|---|
KoalaSensorReading()
|
|
| Method Summary | |
|---|---|
static int |
convertToDistance(int proximity)
Convert a single short-range proximity reading to a distance in mm. |
void |
convertToDistances()
Convert the whole reading to approximate distances in mm. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int[] leftSensors
public int[] rightSensors
| Constructor Detail |
|---|
public KoalaSensorReading()
| Method Detail |
|---|
public void convertToDistances()
public static int convertToDistance(int proximity)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||