Class: RapiroWrapper::RightSholderRoll
- Inherits:
-
ServoMotor
- Object
- ServoMotor
- RapiroWrapper::RightSholderRoll
- 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
-
#initialize(up: DEFAULT) ⇒ RightSholderRoll
constructor
A new instance of RightSholderRoll.
Methods inherited from ServoMotor
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 |