lossing connection
Opened this issue · 0 comments
Hello,
I we are using this module in our senior project to make the drone autonomously track a target .However , I tried the provided sample code and the drone kind of losing connection after taking off ,what happens exactly is that after executing the script the drone takes off and keeps taking off or sometimes just hanging in the air without executing the land command . This causes us a serious problem since we loose the control on the drone and the only way to stop it is by physically forcing it to land and that causes it to enter kind of emergency state .
We are new to the Drones field any advices or recommendations will be highly appreciated.
In addition we are looking for detailed documentation on how to use this module or any previous projects done using it .
Thank you in advance.
var bebop = require('node-bebop');
var drone = bebop.createClient();
drone.connect(function() {
drone.takeOff();
setTimeout(function() {
drone.land();
}, 5000);
});