function dance(name, deps) {
    'use strict';

    // deps.client.on('navdata', function(data) {
    //     console.log(JSON.stringify(data, null, 4));
    // });

    deps.io.sockets.on('connection', function(socket) {

        socket.on('/dance/dance1', function(params) {
            console.log("dance1")
            deps.io.sockets.emit('/message', params);
            //deps.client.animate(params.name, params.duration);


            deps.client.takeoff();

            deps.client
                .after(3000, function() {
                    this.hover();
                }).after(5000, function() {
                    this.clockwise();
                }).after(5000, function() {
                    this.stop();
                    this.land();
                })
        });

    });
}

module.exports = dance;

@@ -427,32 +427,34 @@
 );%0A%0A%0A           
+//
  deps.client.tak
@@ -557,14 +557,32 @@
 his.
-hover(
+animateLeds('fire', 2, 3
 );%0A 
@@ -638,26 +638,26 @@
             
-  
+//
 this.clockwi
@@ -659,16 +659,73 @@
 ockwise(
+.5);%0A                   this.animateLeds('redSnake', 6, 4
 );%0A     
@@ -778,24 +778,26 @@
             
+//
  this.stop()
@@ -814,24 +814,26 @@
             
+//
 this.land();
@@ -900,8 +900,538 @@
  dance;%0A
+%0A// Flying commands, values are between 0 and 1%0A// takeoff(),stop(),land(),up(.3), down(.2), clockwise(.5),front(.1), back(.2), counterClockwise(.3)%0A// animateLeds takes name, hz cycles per seconds, and duration in seconds%0A// values for animateLeds%0A// blinkGreenRed,blinkGreen,blinkRed,blinkOrange,fire,standard,red,green,redSnake,blank,%0A// rightMissile,leftMissile,doubleMissile,frontLeftGreenOthersRed,frontRightGreenOthersRed,%0A// rearRightGreenOthersRed,rearLeftGreenOthersRed,leftGreenRightRed,leftRedRightGreen,blinkStandard%0A

add animateLeds instructions