Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

bergie/flowcopter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flowcopter Build Status Greenkeeper badge

NoFlo and NodeCopter examples

Installing

Clone this repository and install the dependencies with:

$ npm install

Then you can build the client-side file with:

$ grunt build

Running

Connect your computer to the network provided by your AR.Drone. Then start the server-side process that communicates with your drone with:

$ ./node_modules/.bin/noflo graphs/FlowCopter.fbp

Then open one of the client-side files in your browser. If you want to use the gamepad example, you need a compatible gamepad. We've tested this so far only with a USB-connected XBox controller. Click the Start button to get the drone flying.

WebSocket communications

There is a system for communicating between client-side NoFlo flows and Node.js via WebSockets. This is used in the gamepad example.

The protocol is quite simple. Each command is sent as a JSON object, like the following:

{
  "forward": 0.4
}

or

{
  "land": true
}

There can be multiple commands in the same payload.

About

NoFlo and AR.Drone examples

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •