Class Commands::UltrasonicSensor
In: lib/commands/ultrasonic_sensor.rb
Parent: Object

Implements the "Ultrasonic Sensor" block in NXT-G


distance   logic   new   port=   set_mode  


comparison  [RW] 
mode  [RW] 
port  [R] 
trigger_point  [RW] 

Public Class methods

Public Instance methods

returns distance in requested mode (:inches or :centimeters)

returns true or false based on comparison and trigger point

sets up the sensor port