Iterated on square example; fixed Infinity issue

Esse commit está contido em:
Laurent Eschenauer
2013-06-25 21:50:43 +02:00
commit da65f748dd
2 arquivos alterados com 19 adições e 14 exclusões
+9 -5
Ver Arquivo
@@ -68,28 +68,32 @@ async.waterfall([
},
function(cb){
console.log("Going to base position");
ctrl.go({x: 0, y: 0}, cb);
ctrl.go({x: 0, y:0, z: 1.5}, cb);
},
function(cb){
console.log("Going to 1");
ctrl.go({x: 1, y: 0}, cb);
ctrl.go({x: 2, y: 0}, cb);
},
function(cb) {
console.log("Going to 2");
ctrl.go({x: 1, y: 1}, cb);
ctrl.go({x: 2, y: 2}, cb);
},
function(cb) {
console.log("Going to 3");
ctrl.go({x: 0, y: 1}, cb);
ctrl.go({x: 0, y: 2}, cb);
},
function(cb) {
console.log("Going back to 0");
ctrl.go({x: 0, y: 0}, cb);
},
function(cb) {
console.log("Waiting 1 sec");
setTimeout(cb, 1000);
},
function(cb) {
console.log("Landing...");
ctrl.disable();
client.land();
client.land(cb);
}
], function (err, result) {
if (err) {