Class Commands::TouchSensor
In: lib/commands/touch_sensor.rb
Parent: Object

Implements the "Touch Sensor" block in NXT-G

Methods

action=   logic   method_missing   new   port=   raw_value   reset   set_mode  

Attributes

action  [R] 
port  [R] 

Public Class methods

Public Instance methods

returns true or false based on action type

attempt to return the input_value requested

returns the raw value of the sensor

resets the value_scaled property, use this to reset the sensor when in :bumped mode

sets up the sensor port

[Validate]