Drone Controller Sample
Item logo image for Drone Controller Sample

Drone Controller Sample

Developer Tools9 users
Item media 1 screenshot

Overview

Parrot AR.Drone 2.0 Controller This app uses the Gamepad API and the chrome.socket API to communicate with a Parrot AR.Drone 2.0.…

Parrot AR.Drone 2.0 Controller This app uses the Gamepad API and the chrome.socket API to communicate with a Parrot AR.Drone 2.0. The SDK specifies that there are 4 socket connections: UDP 5554: Receiving navdata, i.e. battery, velocities, control state TCP 5555: Receiving H264 video [not implemented] UDP 5556: Sending AT commands for tilt, rotation and elevation UDP 5559: Sending Admin commands The app connects to port 5556 and sends commands to the Drone depending on which buttons are pressed on the gamepad. The commands themselves are AT commands, which are essentially strings in a specific format. The command strings are concatenated and converted to an ArrayBuffer and sent over the socket connection. Since the protocol in use is UDP there is no guarantee of packet delivery so all commands are sent approximately every 30ms. When data comes back in it is parsed according to the navdata specification in the Drone SDK documentation. The navdata comes back in as an ArrayBuffer from which numbers are read from fixed byte positions. This includes data on the control state of the drone (flying, hovering, landing, taking off), the battery percentage, its angles, altitudes and velcocities. Please note: this has only been tested with an Xbox 360 controller See the source code at https://github.com/GoogleChrome/chrome-app-samples/tree/master/parrot-ar-drone

0 out of 5No ratings

Google doesn't verify reviews. Learn more about results and reviews.

Details

  • Version
    0.3
  • Updated
    April 3, 2015
  • Offered by
    Chrome App Samples
  • Size
    66.68KiB
  • Languages
    English (United States)
  • Non-trader
    This developer has not identified itself as a trader. For consumers in the European Union, please note that consumer rights do not apply to contracts between you and this developer.

Privacy

The developer has not provided any information about the collection or usage of your data.

Support

For help with questions, suggestions, or problems, visit the developer's support site

Google apps