Created
November 9, 2012 23:04
-
-
Save jimweirich/4048898 to your computer and use it in GitHub Desktop.
Ruby in Flight - Rock the Cradle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'argus' | |
# Video at: http://youtu.be/6V7hTH35xWw | |
drone = Argus::Drone.new | |
drone.start | |
drone.take_off | |
sleep 5 | |
2.times do | |
drone.left(0.3) | |
sleep 1 | |
drone.right(0.3) | |
sleep 1 | |
end | |
drone.hover | |
sleep 1 | |
drone.land | |
sleep 5 | |
drone.stop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is awesome.