Skip to content

Instantly share code, notes, and snippets.

@DeviaVir
Created June 3, 2016 20:22
Show Gist options
  • Save DeviaVir/a690ec6703fed464829b4c389cafe348 to your computer and use it in GitHub Desktop.
Save DeviaVir/a690ec6703fed464829b4c389cafe348 to your computer and use it in GitHub Desktop.
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