Control your Parrot Bebop drone using JavaScript!
This module allows you to control, receive nav data, and receive video data from the Parrot Bebop WiFi controlled drone.
The implementation attempts to use the same interface as the node-ar-drone node module from @felixge and @rmehner, so it can be mostly NodeCopter compatible.
To get started, install the npm module:
$ npm install node-bebop
This simple example takes off, then lands after 5 seconds:
var bebop = require('node-bebop');
var drone = bebop.createClient();
drone.connect(function() {
drone.takeOff();
setTimeout(function() {
drone.land();
}, 5000);
});
Returns a new Bebop
Connects to the drone and executes the callback when the drone is ready to fly.
Returns a stream of h.264 frames.
Returns a stream of mjpeg images.
Takes a picture and saves the image to the internal storage.
Starts recording video to the internal storage.
Stops a previously started recording and saves to internal storage.
Tell the drone to lift off the ground. Executes the callback when the drone is in the air.
Land the drone. Executes the callback when the drone is on the ground.
Tell the drone to hover in place.
Tell the drone to drop like a stone.
Cause the drone to increase in altitude at 0-100 speed
Cause the drone to decrease in altitude at 0-100 speed
Cause the drone to move to the right at 0-100 speed
Cause the drone to move to the left at 0-100 speed
Cause the drone to move forward at 0-100 speed
Cause the drone to move backward at 0-100 speed
Cause the drone to spin in a clockwise direction at 0-100 speed
Cause the drone to spin in a counter clockwise direction at 0-100 speed
Tell the drone to do a front flip
Tell the drone to do a back flip
Tell the drone to do a flip to the right
Tell the drone to do a flip to the left
The node-bebop
module supports both the above NodeCopter-compatible interface, as well as the full Parrot 3.x API command and events set. For info on the full API, please check out the docs directory here:
https://github.com/hybridgroup/node-bebop/blob/master/docs/
0.6.0 Update for new 3.2.x drone firmware
0.5.0 Refactor Bebop command builder
0.4.0 Initial support for full Bebop command set
0.3.0 Add getVideoStream, getMjpegStream, picture taking and video recording methods
0.2.0 Add flip commands, implement ack processes, emit flying state and battery events
0.1.0 Initial release
Copyright (c) 2015-2016 The Hybrid Group. Licensed under the MIT license.