hybridgroup / node-bebop

A Node.js client for controlling Parrot Bebop & Bebop2 quadcopters.
http://nodebebop.com
MIT License
146 stars 60 forks source link

Piloting #64

Closed Mastuerso closed 6 years ago

Mastuerso commented 6 years ago

I have this code:


var bebop = require('node-bebop');
var drone = bebop.createClient();
var movement = new Object();
movement.dX = 0;
movement.dY = 0;
movement.dZ = 0;
movement.dPsi = 3.1416;

drone.connect(function () {
    drone.Piloting.takeOff();
    setTimeout(function() {
        drone.Piloting.moveBy(movement);
    }, 5000);
    setTimeout(function() {
        drone.Piloting.landing();
        console.log("LAND");
    }, 15000);
});

The drone takes off Does nothing Lands I was wondering if there is a way to fix that because according to http://developer.parrot.com/docs/reference/bebop/index.html#move-the-drone-to-a-relative-position which is supportted since 3.3.0, currently my drone is running the 4.4.0

muf commented 6 years ago

@Mastuerso
moveBy function seems like not implemented yet.. only Draft :) link : https://github.com/hybridgroup/node-bebop/blob/master/docs/commands.md#pilotingmovebyobj