Sha256: 9d86cea0641053a1afee9f801ea62aae4e74ebba0835827bc0dfd3a90a130fdd
Contents?: true
Size: 714 Bytes
Versions: 26
Compression:
Stored size: 714 Bytes
Contents
require 'artoo/robot' class DroneRobot < Artoo::Robot connection :drone, :adaptor => :ardrone device :drone, :driver => :ardrone #api :host => '127.0.0.1', :port => '8080' work do drone.start after(10.seconds){ drone.take_off drone.hover } after(15.seconds){ drone.turn_right(0.3) } after(25.seconds){ drone.hover } after(30.seconds){ drone.land } end end DRONES = {"192.168.0.43:5556" => "wedge", "192.168.0.44:5556" => "biggs"} robots = [] DRONES.each_key {|p| robots << DroneRobot.new(:connections => {:drone => {:port => p}}) } DroneRobot.work!(robots)
Version data entries
26 entries across 26 versions & 1 rubygems