Laurent Eschenauer 6338d5e416 Fixed nodestream client
2013-05-20 21:41:12 +02:00
2013-05-20 21:41:12 +02:00
2013-05-20 12:17:13 +02:00
2013-05-18 21:29:50 +02:00
2013-05-18 22:36:51 +02:00
2013-05-18 21:29:50 +02:00
2013-05-18 21:29:50 +02:00
2013-05-18 21:29:50 +02:00
2013-05-18 21:29:50 +02:00
2013-05-18 21:29:50 +02:00
2013-05-20 22:33:48 +03:00

ardrone-webflight

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).

If you encounter an issue; please submit it to the issue tracker! You can also catch up with me (eschnou) on twitter or on #freenode (channel #nodecopter).

This branch is the development branch, there are no packaged release yet.

Built-in plugins

  • video-png stream the video to the browser through static image loading, works great in every browser.

  • video-stream use 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.

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

  1. Copy the config.js.sample to config.js and edit to select your plugins
  2. Connect to the drone's wifi
  3. Run node app.js
  4. Point your browser to http://localhost:3000/

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.

I would like to maintain a list of user plugins. If you hack something, please let me know and I'll add you to the list.

Thanks

This work is based on the integration of nodecopter-cockpit and drone-browser, refactored in a plugin architecture.

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!

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.

S
Descrição
Descrição não fornecida
Readme MIT 1,4 MiB
Linguagens
JavaScript 90.2%
CSS 6.1%
EJS 2.6%
Shell 1.1%