-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfly.js
More file actions
34 lines (31 loc) · 740 Bytes
/
fly.js
File metadata and controls
34 lines (31 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/**
* Created with JetBrains WebStorm.
* User: andy
* Date: 6/13/13
* Time: 9:55 PM
* To change this template use File | Settings | File Templates.
*/
var arDrone = require('ar-drone');
var client = arDrone.createClient();
//client.calibrate(0);
client.takeoff();
client
.after(5000, function() {
this.up(0.5);
})
.after(2000, function() {
this.stop();
this.clockwise(0.5);
})
.after(5000, function() {
this.counterClockwise(0.5);
//this.animate('flipLeft', 15);
})
.after(5000, function(){
this.animateLeds('snakeGreenRed', 5, 5);
this.animate('yawDance', 5);
})
.after(5000, function() {
this.stop();
this.land();
});