0.2.5 • Published 11 years ago

qrar v0.2.5

Weekly downloads
2
License
-
Repository
github
Last release
11 years ago

qrar

You can use this package to decode any QR codes spotted by your Parrot AR.Drone's camera.

Prerequisites

The QR code module used requires Cairo and FFmpeg; I used Homebrew to install both of these on Mac OS X:

brew install cairo ffmpeg

Example

This program outputs all of the decoded QR codes to the console:

var QRAR = require('qrar');
var drone = require('ar-drone');

var codes = new QRAR(drone);

codes.on('qrcode', function (code) {
  console.log(code);
});

codes.start();

This program starts an ar-drone REPL:

var arDrone = require('ar-drone');
arDrone.createClient().createRepl();

So if you pipe the output of the first program (decode.js) to the second (repl.js):

node decode.js | node repl.js

Then you can show QR codes like these to your drone and it will obey!

takeoff()

takeoff()

land()

land()

See felixge/node-ar-drone for the available commands. There are lots of free QR code generators online and apps that work from a smartphone (in fact you can just tweak the above image URLs to get started).

0.2.5

11 years ago

0.2.4

11 years ago

0.2.3

11 years ago

0.2.2

12 years ago

0.2.1

12 years ago

0.2.0

12 years ago

0.1.0

12 years ago