Skip to content

Commit

Permalink
MiP robot drafts
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgolov committed Oct 28, 2018
1 parent c2445e3 commit 132c2c1
Show file tree
Hide file tree
Showing 4 changed files with 867 additions and 0 deletions.
28 changes: 28 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
var wowweemip = require("wowweemip");
var mipFinder = new wowweemip.Finder();

console.log("mipFinder:", mipFinder);

console.log("Trying to scan...");
mipFinder.scan(function(err, robots) {
if (err != null) {
console.log(err);
return;
}

//connect to first mip
var selectedMip = robots[0];
mipFinder.connect(selectedMip, function(err) {
if (err != null) {
console.log(err);
return;
}

console.log("connected");

//move toward
selectedMip.driveDistanceByCm(20, 0, function(err) {
console.log("moving toward");
});
});
});
Loading

0 comments on commit 132c2c1

Please sign in to comment.