Skip to content

Instantly share code, notes, and snippets.

View saval's full-sized avatar

Alex Savchenko saval

  • Inventory Planner by Sage
View GitHub Profile
@saval
saval / dronefly.js
Last active June 24, 2018 19:13 — forked from agrublev/dronefly.js
drone FORK!
const pdrone = require('pdrone');
const drone = pdrone({id: 'mambo', debug: false});
/** Helper function */
function sleep(ms) {
return new Promise(a => setTimeout(a, ms));
}
drone.on('connected', async () => {
// drone.flatTrim(); // use flatTrim() everytime you want the drone to calm down