public interface TouchSensor extends HardwareDevice
TouchSensor
models a button.HardwareDevice.Manufacturer
Modifier and Type | Method and Description |
---|---|
double |
getValue()
Represents how much force is applied to the touch sensor; for some touch sensors
this value will only ever be 0 or 1.
|
boolean |
isPressed()
Return true if the touch sensor is being pressed
|
close, getConnectionInfo, getDeviceName, getManufacturer, getVersion, resetDeviceConfigurationForOpMode
double getValue()
boolean isPressed()