How to program your drone
We will show you how to program your drone so it takes off, moves around and does a flip. First of you will need to download and install node.js and then download the ar-drone module.
Then the next step is to execute this code:
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(1000, function() { this.stop(); this.land(); });
No comments:
Post a Comment