Created
June 3, 2016 20:22
-
-
Save DeviaVir/a690ec6703fed464829b4c389cafe348 to your computer and use it in GitHub Desktop.
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
var Cylon = require('cylon'), | |
after = require('after'); | |
Cylon.robot({ | |
connections: { | |
crazyflie: { adaptor: 'crazyflie', port: 'radio://1/10/250KPS' } | |
}, | |
devices: { | |
drone: { driver: 'crazyflie' } | |
}, | |
work: function(my) { | |
my.drone.takeoff(); | |
after((10).seconds(), function() { | |
my.drone.land(); | |
}); | |
after((15).seconds(), function() { | |
my.drone.stop(); | |
}); | |
} | |
}).start(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment