Hey Laurent,

yeah I played quite a bit with this and calling stop immediately seems to
achieve a much better flight feeling.

I am happy if you replace the existing one with this and will fix the
double defined /pilot/animate. Sry about that.

Cheers


On Mon, Sep 30, 2013 at 3:29 PM, Laurent Eschenauer <
notifications@github.com> wrote:

> In plugins/tim-kos-pilot/index.js:
>
> > +      return typeof deps.client[_name = cmd.action] === "function" ? deps.client[_name]() : void 0;
> > +    });
> > +    socket.on('/pilot/animate', function (cmd) {
> > +      var _name;
> > +      console.log("drone", cmd);
> > +      return typeof deps.client.animate(cmd.action, cmd.duration);
> > +    });
> > +    socket.on('/pilot/calibrate', function (cmd) {
> > +      console.log("calibrate", cmd);
> > +      return deps.client.calibrate(cmd.device_num);
> > +    });
> > +    socket.on('/pilot/ftrim', function () {
> > +      console.log("flat trim");
> > +      return deps.client.ftrim();
> > +    });
> > +    socket.on('/pilot/animate', function (cmd) {
>
> Weird, /pilot/animate defined twice?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/eschnou/ardrone-webflight/pull/40/files#r6657194>
> .
>



-- 
Practicing and Teaching the Art of Web Engineering

Tim Koschützki
Director
www.debuggable.com

Debuggable Limited
Friedrichstr. 171
Einstein Palais
10117 Berlin
Mob: +49 (151) 19161166

Commercial Register:  HRB 112594 B  (Charlottenburg, Berlin)
Directors: Tim Koschützki, Felix Geisendörfer
VAT-ID: DE263164617