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

Implements the "Ultrasonic Sensor" block in NXT-G

Methods

distance   logic   new   port=   set_mode  

Attributes

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

[Validate]