From cef5a85310870cb34cbc1e47dfcb1898ef46c13b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Franco=20Uechi?= Date: Wed, 28 May 2014 17:47:32 -0300 Subject: [PATCH] Update leap_ardrone.markdown --- examples/leap_ardrone/leap_ardrone.markdown | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/leap_ardrone/leap_ardrone.markdown b/examples/leap_ardrone/leap_ardrone.markdown index ec0352e..29122e7 100644 --- a/examples/leap_ardrone/leap_ardrone.markdown +++ b/examples/leap_ardrone/leap_ardrone.markdown @@ -10,6 +10,7 @@ Now that we have Cylon imported, we can start defining our robot Let's define the connections and devices: +``` connections: [ { name: 'leapmotion', adaptor: 'leapmotion', port: '127.0.0.1:6437' }, { name: 'ardrone', adaptor: 'ardrone', port: '192.168.1.1' }, @@ -21,14 +22,14 @@ Let's define the connections and devices: { name: 'leapmotion', driver: 'leapmotion', connection:'leapmotion' }, { name: 'keyboard', driver: 'keyboard', connection:'keyboard'} ], +``` Now that Cylon knows about the necessary hardware we're going to be using, we'll tell it what work we want to do: work: function(my) { - my.leapmotion.on('frame', function(frame) { - frame.hands.length > 0 ? my.led.turnOn() : my.led.turnOff(); - }); + // TODO + } Now that our robot knows what work to do, and the work it will be doing that