public class NXTUltrasonicSensor.PingMode extends java.lang.Object implements SensorMode
| Constructor and Description | 
|---|
| PingMode() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | fetchSample(float[] sample,
           int offset)Fetches a sample from a sensor or filter. | 
| java.lang.String | getName()return a string description of this sensor mode | 
| int | sampleSize()Returns the number of elements in a sample. The number of elements does not change during runtime. | 
public int sampleSize()
SampleProvidersampleSize in interface SampleProviderpublic void fetchSample(float[] sample,
                        int offset)
SampleProviderfetchSample in interface SampleProvidersample - The array to store the sample in.offset - The elements of the sample are stored in the array starting at the offset position.public java.lang.String getName()
SensorModegetName in interface SensorMode