lib/drone.js
function frontFlip(options, callback) {
  if (typeof options === 'function') {
    callback = options;
    options = {};
  }
  this.logger('RollingSpider#frontFlip');
  if (this.status.flying) {
    this.writeTo(
      'fa0b',
      new Buffer([0x02, ++this.steps.fa0b & 0xFF, 0x02, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]),
      callback
    );
  } else {
    this.logger('Calling RollingSpider#frontFlip when it\'s not in the air isn\'t going to do anything');
    if (typeof callback === 'function') {
      callback();
    }
  }
  if (callback) {
    callback();
  }
}
function frontFlip(options, callback) {
  if (typeof options === 'function') {
    callback = options;
    options = {};
  }
  this.logger('RollingSpider#frontFlip');
  if (this.status.flying) {
    this.writeTo(
      'fa0b',
      new Buffer([0x02, ++this.steps.fa0b & 0xFF, 0x02, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]),
      callback
    );
  } else {
    this.logger('Calling RollingSpider#frontFlip when it\'s not in the air isn\'t going to do anything');
    if (typeof callback === 'function') {
      callback();
    }
  }
  if (callback) {
    callback();
  }
}
function frontFlip ( options , callback ) { if ( typeof options === 'function' ) { callback = options ; options = { } ; } this . logger ( 'RollingSpider#frontFlip' ) ; if ( this . status . flying ) { this . writeTo ( 'fa0b' , new Buffer ( [ 0x02 , ++ this . steps . fa0b & 0xFF , 0x02 , 0x04 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 ] ) , callback ) ; } else { this . logger ( 'Calling RollingSpider#frontFlip when it\'s not in the air isn\'t going to do anything' ) ; if ( typeof callback === 'function' ) { callback ( ) ; } } if ( callback ) { callback ( ) ; } }
Instructs the drone to do a front flip.

It will only do this if it's in the air
Instructs the drone to do a front flip .