#Drone Specs
- Flat Area
- Great wifi
- Hopefully High ceilings without any crazy wires (eg. 120ft high ceilings in Berlin)
| var arDrone = require('ar-drone'); | |
| var client = arDrone.createClient(); | |
| client.takeoff(); | |
| client | |
| .after(5000, function() { | |
| this.clockwise(0.5); | |
| }) | |
| .after(3000, function() { |
| map = function() { emit('stats.users', 1) } | |
| red = function(k, vals) { | |
| var i, sum = 0 | |
| for (i in vals) { | |
| sum += vals[i] | |
| } | |
| return sum | |
| } |
| // Generic Object | |
| function Spaceship(){} | |
| Spaceship.prototype.navigate = function(distance, direction){ | |
| console.log(['moved',distance,'miles towards',direction].join(' ')) | |
| return this | |
| } | |
| // Specific Spaceships |
| function test(){ | |
| } |