Git Product home page Git Product logo

drone's Introduction

This is a collection of utilities related to the AR drone

Augmentation

drone augmentation can be found in lib/droner.coffee

events

Adds landed, landing, hovering, flying, batteryChange, and altitudeChange events to the drone. Being pulled into ar-drone core so will be removed

batteryLevel(cb)

returns battery level to callback

safeguard

disables emergency mode on start and adds error handles to prevent your app from crashing and having your drone fly off into space

record(loc)

Records raw video data to location (HD with higher framerate)

You'll need to run ffmpeg -i recording.h264 -vcodec copy recording.mp4 to convert it into an mp4. record will append video to your existing one so you can keep a log of your drone's entire history easily

enableControls(speed=0.5)

Adds controls via stdin to the drone - look below for these

enableFacialRecognition

Adds a processing step to PNG frames for running facial recognition. drone.faces will emit a data event with a PNG buffer that has circles drawn around faces

Controller

Depends on opencv for facial recognition

Run coffee face.coffee to control the drone from the command line with WASD

Controls:

w - forward
a - left
s - backward
d - right

arrow up - up
arrow left - spin left
arrow down - down
arrow right - spin right

<space> - land/takeoff
x - hover
r - disable emergency mode
1/2 - flipAhead/flipLeft

You can view the camera from localhost:8080

Installing node on the drone

(thanks felixge for doing the hard parts on this)

Run this command while connected to the drone's network

npm run-script deploy

REPL

Do you want your drone to control itself? Install ar-drone on it with

npm run-script setup

Now you can go into /data/video/labs where you have ar-drone and a repl.js to launch a repl. Run node repl.js and you're on your way. You can write any ar-drone scripts and run them from the drone itself now.

Now you can telnet into the drone and type node to run the repl

drone's People

Contributors

terenced avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

jlmwebhosting

drone's Issues

Unable to start server (face.coffee)

TypeError: Object # has no method 'listeners'
at Object.exports.attach (/Users/terry/Work/projects/opencvs/drone/node_modules/pulsar/node_modules/protosock/node_modules/engine.io/lib/engine.io.js:108:26)
at new Server (/Users/terry/Work/projects/opencvs/drone/node_modules/pulsar/node_modules/protosock/lib/Server.coffee:63:34)
at Object.ps.createServer (/Users/terry/Work/projects/opencvs/drone/node_modules/pulsar/node_modules/protosock/lib/main.coffee:30:14)
at Object.ps.createServerWrapper as createServer
at Object.module.exports.create (/Users/terry/Work/projects/opencvs/drone/lib/server.coffee:18:22)
at Object. (/Users/terry/Work/projects/opencvs/drone/face.coffee:16:16)
at Object. (/Users/terry/Work/projects/opencvs/drone/face.coffee:56:4)
at Module._compile (module.js:449:26)
at Object.exports.run (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/coffee-script.js:83:25)
at compileScript (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/command.js:177:29)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.