forked from felixge/node-ar-drone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
28 lines (23 loc) · 771 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
var arDrone = exports;
exports.Client = require('./lib/Client');
exports.UdpControl = require('./lib/control/UdpControl');
exports.PngStream = require('./lib/video/PngStream');
exports.UdpNavdataStream = require('./lib/navdata/UdpNavdataStream');
exports.createClient = function(options) {
var client = new arDrone.Client(options);
client.resume();
return client;
};
exports.createUdpControl = function(options) {
return new arDrone.UdpControl(options);
};
exports.createPngStream = function(options) {
var stream = new arDrone.PngStream(options);
stream.resume();
return stream;
};
exports.createUdpNavdataStream = function(options) {
var stream = new arDrone.UdpNavdataStream(options);
stream.resume();
return stream;
};