ar-drone-fleet

Control multiple ar drones using Node.js, module wraps @felixge's https://github.com/felixge/node-ar-drone module.

ar-drone-fleet

Control multiple ar drones using Node.js, module wraps @felixge's https://github.com/felixge/node-ar-drone module.

Api wraps all of Felixge's Client api library.

Still under heavy development and not completly tested, still waiting to get together with multiple drones.

npm install ar-drone-fleet
  • takeoff
  • land
  • up/down
  • clockwise/counterClockwise
  • front/back
  • left/right
  • stop
  • config
  • animate
  • animateLeds
  • disableEmergency

With each wrapped function it supports calling it with the intended parameters felixge's library looks for as well as prepending the drone index to only control one drone out of the group.

var ArDroneFleet = require('ar-drone-fleet');
 
// Supply constructor with the client options, this is used by arDrone.createClient() 
var fleet = new ArDroneFleet({
    drone1 : {ip : "192.168.1.2"},
    drone2 : {ip : "192.168.1.3"}
});
 
fleet.up(1);
fleet.up('drone1',2); // Use object name 
 
fleet.on('takeoff',function(data){
    console.log(data.drone " tookoff");
});
 
// Or alternately supply the constructor with array of client options. 
var fleet = new ArDroneFleet([
    {ip : "192.168.1.2"},
    {ip : "192.168.1.3"}
]);
 
fleet.up(1);
fleet.up(1,2); // Using index of supplied drones 
 
fleet.on('takeoff',function(data){
    console.log(data.drone " tookoff");
});