User:Givememyusername/ENES-100/Project 2/CDIO

Problem
Connect Ar.Drone 1.0 to Os X 10.8.2

Control Ar.Drone via Ps3/Xbox Controller.

[http://www.youtube.com/watch?v=g2ZEBCeQkuc Video of Ar.Drone working with TooTallNates software. ]

Required Installations
Homebrew

Node.Js

tootallnates -node-drone-video

tootallnates -node-drone-joystick

Homebrew on OsX
-Paste the command prompt in the terminal of a mac. ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)" -It is then recommended to run a diagnostics on Homebrew by typing brew doctor -Several files may need to be moved or deleted depending on previous installs that are on your mac machine. Follow the steps given under the command prompt after you have ran brew doctor e.g tkim-mac:~ dsmith$ brew doctor /usr/local/Library/Homebrew/global.rb:65: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777 /usr/local/Library/Homebrew/global.rb:95: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777

Error: You have Macports or Fink installed. This can cause trouble. You don't have to uninstall them, but you may like to try temporarily moving them away, eg.

sudo mv /opt/local ~/macports tkim-mac:~ tkim$ ls -la /opt ls: /opt: No such file or directory tkim-mac:~ tkim$ -After reading the instructions Homebrew gave me after the command brew doctor was given I deleted MacPorts from my machine. This was done by copying and pasting this command into the terminal %% sudo port -fp uninstall installed
 * A more detailed tutorial of a Macport unintall can be found here

-Once everything is installed a update is recommended this can be done by typing in the command prompt brew update

Installing Node J.s
Pre-Built installers can be found here

Installing node-drone-video

 * Dependencies within Homebrew.

-Using Homebrew you must install ffmpeg and ffplay

These can both be installed by typing the following the command prompt. $ brew install ffmpeg --with-ffplay
 * Installations within NPM.

ERROR. TooTallNates installation of this software calls for a npm intall when the following command is inserted into the terminal npm install -g drone-video -This error message is given.


 * SOLUTION - Manual install is required this can be done with the following steps provided below.
 * 1) A zip file of all the compiled scripts of the software must be downloaded this can be found here
 * 2) Extract the files into /users/"username"/node_modules

Next steps
- Attempt to connect video feed through personal Mac machine.

Drone-Joystick Install
The Drone-Joystick has several dependancies within the install.
 * Dependencies within NPM

The following will list the dependancies and have the command prompt required underneath them.

1. Ar-Drone-A node.js client for controlling Parrot AR Drone 2.0 quad-copters. npm install ar-drone Buffy-Buffy is a module to read / write binary data and streams. npm install buffy 2. Commander-The complete solution for node.js command-line programs npm install commander Keypress-Make any Node ReadableStream emit "keypress" events npm install keypress 3. Debug-Small debugging utility npm install debug 4. SDL npm install sdl -Once all dependencies are fulfilled the following command prompt can be used to install Drone Joystick. npm install drone-joystick
 * Dependencies within Ar-drone
 * Dependencies within Commander.

-A successful install will look like this

Next Steps
Connection between Controller/Mac/Ar.drone must be verified. The command prompts for turning on the video stream and controlling the Ar.drone must be found and reviewed.