public class TouchSensor extends Object implements SensorValue
Constructor and Description |
---|
TouchSensor(SensorValue sensorValue) |
Modifier and Type | Method and Description |
---|---|
int |
getAnalogValue()
Analog value returned by sensor, in the range of 0 to 1023.
|
int |
getStatusCode()
Six bit status code from the sensor, as a value from 0 to 63.
|
String |
toString() |
String |
touchStatus() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isEngaged, isPassive, newSensorValue
public TouchSensor(SensorValue sensorValue)
public int getAnalogValue()
SensorValue
getAnalogValue
in interface SensorValue
public int getStatusCode()
SensorValue
getStatusCode
in interface SensorValue
public String touchStatus()
Copyright © 2016–2023. All rights reserved.