node-server-ar-drone
Fly a Parrot AR Drone 2.0 using REST calls.
Last updated 4 years ago by sirarsalih .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install node-server-ar-drone 
SYNC missed versions from official npm registry.

node-server-ar-drone

A Node.js Express server for the Parrot AR Drone 2.0. The server uses the node-ar-drone and ardrone-autonomy libraries to fly the drone with REST calls.

Installation

npm install node-server-ar-drone

Usage

Once the drone is turned on, it will send out WiFi signals like a router. Connect your device (laptop, desktop /w wireless WiFi transmitter, tablet or smart phone) to the drone via WiFi. Like a router, the drone uses the IP ```192.168.1.1``` by default. Once connected, simply: ``` var NodeServerArDrone = require('node-server-ar-drone'); var nsArDrone = new NodeServerArDrone(); ``` Start up your browser and go to [http://localhost:1337](http://localhost:1337). Control the drone by sending POST requests to your local node server:
  • http://localhost:1337/takeoff takes off the drone, starts hovering it for 5 seconds and then lands it.
  • http://localhost:1337/takeoffAndSpin takes off the drone, starts hovering it for 4 seconds, spins it clockwise and then lands it after 1 second.
  • http://localhost:1337/land lands the drone immediately.

We can also automate the flight path of the drone, by providing predefined x,y coordinates. You can do this by doing a call to http://localhost:1337/takeoffAndFly and then appending the call with the coordinates. Here is an example:

  • http://localhost:1337/takeoffAndFly?c=8,5&c=4,5 takes off the drone, flies it to x,y coordinates [8,5], [4,5] and then lands it.

Other Topics

* [Using from Source](docs/using-from-source.md)

Current Tags

  • 1.0.8                                ...           latest (4 years ago)

9 Versions

  • 1.0.8                                ...           4 years ago
  • 1.0.7                                ...           4 years ago
  • 1.0.6                                ...           4 years ago
  • 1.0.5                                ...           4 years ago
  • 1.0.4                                ...           4 years ago
  • 1.0.3                                ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 2
This Month 3
Last Day 1
Last Week 1
Last Month 2
Dependencies (7)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |