No description
Find a file
Rick Companje c83d16323b readme
2018-03-24 22:03:07 +01:00
.gitignore added code 2018-03-24 21:58:06 +01:00
bg.png added code 2018-03-24 21:58:06 +01:00
README.md readme 2018-03-24 22:03:07 +01:00
Robot.pde added code 2018-03-24 21:58:06 +01:00
Scorbot_Grid.pde added code 2018-03-24 21:58:06 +01:00
screenshot.jpg resize image 2018-03-24 21:58:37 +01:00

Scorbot

Processing code to control Scorbot-ER V plus by using the mouse. Next step is have the robot pick-up en place marbles on a grid to play the Game Of Life.

float xx = map(mouseX, 0, width, -1, 1);
float yy = map(mouseY, 0, height, 1, -1);
coordinate = new PVector(xx, yy);
coordinate.rotate(radians(-236));
coordinate.mult(3947); //= straal = dist(0,0,1,0)
coordinate.limit(3947);
//...
cmd("setpvc 1 x "+round(coordinate.x));
cmd("setpvc 1 y "+round(coordinate.y));
cmd("move 1");
//...

Screenshot