class RapiroWrapper::LeftSholderPitch

LeftSholderPitch class for RAPIRO

Constants

DEFAULT
MAX
MIN
NO

Public Class Methods

new(up: nil) click to toggle source
# File lib/rapiro_wrapper/servo_motor/left_sholder_pitch.rb, line 9
def initialize(up: nil)
  if up
    @value = MIN + up
  else
    @value = DEFAULT
  end
  fail ArgumentError unless @value.between?(MIN, MAX)
end