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...

How to program your drone

Wednesday, May 06, 2015 Sensei Fedon 0 Comments

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();
  });

0 comments: