Fly and Control a Drone Using JavaScript

Whilst the video is only a sneak peek of a Code School tutorial, you can puzzle the pieces together yourself. The key part is the rolling-spider Node package which uses Bluetooth to communicate with the drone.

var RollingSpider = require('rolling-spider');
var temporal = require('temporal');
var rollingSpider = new RollingSpider({
    uuid: 'Mambo_434915'
});

rollingSpider.connect(function() {
  rollingSpider.setup(function() {
    rollingSpider.flatTrim();
    rollingSpider.startPing();
    rollingSpider.flatTrim();

    temporal.queue([
      {
        delay: 5000,
        task: function () {
          rollingSpider.takeOff();
          rollingSpider.flatTrim();
        }
      },
      {
        delay: 3000,
        task: function () {
          rollingSpider.forward({steps: 12});
        }
      },
      {
        delay: 5000,
        task: function () {
          rollingSpider.land();
        }
      },
      {
        delay: 5000,
        task: function () {
          temporal.clear();
          process.exit(0);
        }
      }
    ]);
  });
});

Flying a drone using JavaScript →
rolling-spider (GitHub) →

Quite sure this can be rebuilt using the Web Bluetooth API, bypassing the need for a Node server.

Lily – The Camera That Follows You

Lily is the world’s first throw-and-shoot camera. It lets anyone create cinematic footage previously reserved for professional filmmakers. Lily is waterproof, ultra-portable, and shoots stunning HD pictures and videos.

Just throw it in the air and it’ll start flying. Easy.

Lily – The Camera That Follows You →

In other recent drone-news, DJI announced the Phantom Vision 3. The camera looks like a huge improvement when compared to the Phantom Vision 2 Plus (which I own). A very affordable device, especially when compared the DJI Inspire 1.