Class: RapiroWrapper::RightSholderRoll

Inherits:
ServoMotor
  • Object
show all
Defined in:
lib/rapiro_wrapper/servo_motor/right_sholder_roll.rb

Overview

RightSholderRoll class for RAPIRO

Constant Summary collapse

NO =
2
DEFAULT =
0
MIN =
0
MAX =
180

Instance Method Summary collapse

Methods inherited from ServoMotor

code, find_servos, #to_code

Constructor Details

#initialize(up: DEFAULT) ⇒ RightSholderRoll

Returns a new instance of RightSholderRoll.



9
10
11
12
# File 'lib/rapiro_wrapper/servo_motor/right_sholder_roll.rb', line 9

def initialize(up: DEFAULT)
  @value = up
  fail ArgumentError unless @value.between?(MIN, MAX)
end