class RoboticArm::Gripper

Public Instance Methods

close(seconds=0) click to toggle source
# File lib/robotic-arm.rb, line 320
def close(seconds=0)
  return if @active and @moving == :close
  activate(@switch, @val=0x01, seconds)
  @moving = :close
end
open(seconds=0) click to toggle source
# File lib/robotic-arm.rb, line 314
def open (seconds=0)
  return if @active and @moving == :open
  activate(@switch, @val=0x02, seconds)
  @moving = :open
end