drone dance

a little code for a little drone dance:

var arDrone = require(‘ar-drone’);
var client = arDrone.createClient();

client.takeoff();

client
.after(5000, function() {
this.clockwise(0.5);
})
.after(3000, function() {
this.animate(‘flipLeft’, 15);
})
.after(3000, function() {
this.animate(‘vzDance’, 15);
})
.after(3000, function() {
this.animate(‘wave’, 15);
})
.after(5000, function() {
this.counterclockwise(1);
})
.after(3000, function() {
this.animate(‘phiDance’, 15);
})
.after(3000, function() {
this.animate(‘flipBehind’, 15);
})
.after(5000, function() {
this.clockwise(0.5);
})
.after(1000, function() {
this.stop();
this.land();
});

Leave a Reply