lib/drone.js
function takeOff(options, callback) {
  if (typeof options === 'function') {
    callback = options;
    options = {};
  }
  this.logger('RollingSpider#takeOff');

  if (this.status.battery < 10) {
    this.logger('!!! BATTERY LEVEL TOO LOW !!!');
  }
  if (!this.status.flying) {
    this.writeTo(
      'fa0b',
      new Buffer([0x02, ++this.steps.fa0b & 0xFF, 0x02, 0x00, 0x01, 0x00])
    );
    this.status.flying = true;
  }

  this.on('flyingStatusChange', function(newStatus) {
    if (newStatus === 2) {
      if (typeof callback === 'function') {
        callback();
      }
    }
  });

}
function takeOff(options, callback) {
  if (typeof options === 'function') {
    callback = options;
    options = {};
  }
  this.logger('RollingSpider#takeOff');

  if (this.status.battery < 10) {
    this.logger('!!! BATTERY LEVEL TOO LOW !!!');
  }
  if (!this.status.flying) {
    this.writeTo(
      'fa0b',
      new Buffer([0x02, ++this.steps.fa0b & 0xFF, 0x02, 0x00, 0x01, 0x00])
    );
    this.status.flying = true;
  }

  this.on('flyingStatusChange', function(newStatus) {
    if (newStatus === 2) {
      if (typeof callback === 'function') {
        callback();
      }
    }
  });

}
function takeOff ( options , callback ) { if ( typeof options === 'function' ) { callback = options ; options = { } ; } this . logger ( 'RollingSpider#takeOff' ) ; if ( this . status . battery < 10 ) { this . logger ( '!!! BATTERY LEVEL TOO LOW !!!' ) ; } if ( ! this . status . flying ) { this . writeTo ( 'fa0b' , new Buffer ( [ 0x02 , ++ this . steps . fa0b & 0xFF , 0x02 , 0x00 , 0x01 , 0x00 ] ) ) ; this . status . flying = true ; } this . on ( 'flyingStatusChange' , function ( newStatus ) { if ( newStatus === 2 ) { if ( typeof callback === 'function' ) { callback ( ) ; } } } ) ; }
Operational Functions Multiple use cases provided to support initial build API as well as NodeCopter API and parity with the ar-drone library. 
Instructs the drone to take off if it isn't already in the air
Operational Functions Multiple use cases provided to support initial build API as well as NodeCopter API and parity with the ar - drone library . Instructs the drone to take off if it isn t already in the air