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

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

Source:- codingsec

SHARE

About the Author: Roni Mondal

About Roni Mondal : Beyond blogging and digital marketing , Roni Mondal is an entrepreneur at heart who has made his hobby turned passion. Becoming a blogger, It was the most important part of his journey.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment