Pilot the AR.Drone 2.0 directly from your browser. Extend the application with plugins to add features such as video recording, autonomous flight, face recognition, and more. It makes it a very friendly environment to quickly build and experiment with your drone (e.g. during a nodecopter event).
Built-in plugins
video-png stream the video to the browser through static image loading, works great in every browser.
video-stream uses node-dronestream to stream the raw h264 video feed via webscokets and rendering in Javascript. Need a modern browser and CPU.
hud to visualize a head-up display with artificial horizon, compass, altimeter, etc. Based on nodecopter-cockpit
pilot to control the drone remotely using the keyboard. Based on drone-browser.
blackbox records all mission data (raw video, navdata, etc.) on the disk.
replay replays a mission by injecting the data at the client level. Makes it a very friendly tool to code/test/debug when you can't fly.
Additional plugins
If you have written your own webflight plugins, please add them to this list by editing this page.
copterface detect faces and track them by rotating the drone. A port of the copterface project to the webflight environment.
traffic Air traffic overlay plugin for ardrone-webflight that uses ADS-B data.
gamepad controls the drone with a gamepad for much smoother flights.
Install
WebFlight requires a recent nodejs (built and tested with node > 0.10) as well as npm and bower for dependency management.
git clone git@github.com:eschnou/ardrone-webflight
cd ardrone-webflight
npm install
bower install
Usage
- Copy the config.js.sample to config.js and edit to select your plugins
- Connect to the drone's wifi
- Run
node app.js
- Point your browser to http://localhost:3000/
Remote control
If you have enabled the pilot plugin, you can fly the drone with the following keys. Yes, these are azerty bindings :-) If you need qwerty ones, just hack the plugin. I'll need to find a way to provide custome configuration etc.
Use Z, S, Q, D
to move front, back and sideways. Use your cursors
to go up/down or turn
clockwise/counter clockwise. Use t
to takeoff and l
for landing.
Adding your own plugin
There is no tutorial yet, in the meanwhile, just have a look at the built in plugins, it is faily straightforward.
Support
If you encounter issues, please add them to the issue tracker. You can find me on twitter (@eschnou) or on the #nodecopter IRC channel on #freenode.
Thanks
This work is based on the integration of nodecopter-cockpit and drone-browser, refactored in a plugin architecture. Thanks to @bkw and @functino for sharing!
Also a big thank you to @felixge for his node-ar-drone library which pushed me into buying a drone and become crazy about these little flying robots!
Donate
If you like this project, please consider donating. The less time I need to work, the more I can spend on open source projects :-)
Please Donate To Bitcoin Address: [[address]]
License
The MIT License
Copyright (c) 2013 by the AUTHORS
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.