Skip to content

Instantly share code, notes, and snippets.

@pchinjr
Created February 14, 2018 15:30
Show Gist options
  • Save pchinjr/80274f11b36c2de0a6be21ecf6875c4c to your computer and use it in GitHub Desktop.
Save pchinjr/80274f11b36c2de0a6be21ecf6875c4c to your computer and use it in GitHub Desktop.
const RollingSpider = require('rolling-spider');
const rollingSpider = new RollingSpider();
rollingSpider.connect( function() {
rollingSpider.setup( function () {
rollingSpider.flatTrim();
rollingSpider.startPing();
rollingSpider.flatTrim();
console.log('Connected to drone ', rollingSpider.name);
console.log(rollingSpider.status);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment