Class: Rumba::Sensor::OIMode

Inherits:
Object
  • Object
show all
Defined in:
lib/rumba/sensors.rb

Class Method Summary collapse

Class Method Details

.convert(v) ⇒ Object



31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/rumba/sensors.rb', line 31

def self.convert(v)
  case v
    when 0
      :off
    when 1
      :passive
    when 2
      :safe
    when 3
      :full
  end
end