Sha256: 2c2c5fbf1078333d59daa5b01a50a848bec6d10e7451bef1e95991fdd14a369f
Contents?: true
Size: 344 Bytes
Versions: 1
Compression:
Stored size: 344 Bytes
Contents
module RapiroWrapper # RightSholderPitch class for RAPIRO class RightSholderPitch < ServoMotor NO = 3 DEFAULT = 130 MIN = 40 MAX = 130 def initialize(up: nil) if up @value = MAX - up else @value = DEFAULT end fail ArgumentError unless @value.between?(MIN, MAX) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rapiro_wrapper-0.1.0 | lib/rapiro_wrapper/servo_motor/right_sholder_pitch.rb |