Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read sensors work, but motors control don't. #10

Open
Dtanguy opened this issue Apr 22, 2020 · 0 comments
Open

Read sensors work, but motors control don't. #10

Dtanguy opened this issue Apr 22, 2020 · 0 comments

Comments

@Dtanguy
Copy link

Dtanguy commented Apr 22, 2020

Hi, i a trying to control a roomba create 2 through serial port, the connexion and reading sensors work, but motors control don't.

var robot = require("create-oi");
 
robot.init({ serialport: "/dev/ttyUSB0", version: 2 });

robot.on('ready', function() {
        console.log('Ready');
	this.rotate(100); // This don't
});
 
robot.on('bump', function(bumpEvent) {
    console.log(bumpEvent); // This work
});

Any clue how to make it move ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant